Skip to content

Instantly share code, notes, and snippets.

@baumato
Created April 4, 2019 15:38
Show Gist options
  • Save baumato/63da5e00cde43a1c6d384cbd4aa2ae20 to your computer and use it in GitHub Desktop.
Save baumato/63da5e00cde43a1c6d384cbd4aa2ae20 to your computer and use it in GitHub Desktop.
Jenkinsfile: Use environment to read credentials
pipeline {
environment {
ARTIFACTORY_TOKEN = credentials('Artifactory_Jenkins_Token')
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment