Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Last active December 21, 2021 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickboldt/1a296d4b56b5ff7b04500192bfe463fa to your computer and use it in GitHub Desktop.
Save nickboldt/1a296d4b56b5ff7b04500192bfe463fa to your computer and use it in GitHub Desktop.
check kerb ticket then load a fresh ticket
// testing hack 1919 / 1626 for x86_64-rhel8-dyn nodes
withCredentials([file(credentialsId: 'crw_crw-build-keytab', variable: 'CRW_KEYTAB')]) {
sh('''
klist
''')
sh('curl -sSLO https://raw.githubusercontent.com/redhat-developer/codeready-workspaces/' + MIDSTM_BRANCH + '/product/util.groovy')
def util1 = load "${WORKSPACE}/util.groovy"
util1.kinit(true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment