Skip to content

Instantly share code, notes, and snippets.

@ridakk
Last active August 16, 2019 12:20
Show Gist options
  • Save ridakk/3ddcd045d7aa52b1de5e3d1af2bd0a8f to your computer and use it in GitHub Desktop.
Save ridakk/3ddcd045d7aa52b1de5e3d1af2bd0a8f to your computer and use it in GitHub Desktop.
read package.json version in jenkinsfile
stage('Version') {
env.Version=readJSON(file: 'package.json').version
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment