Added Jenkinsfile 7
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -22,11 +22,11 @@ THE SOFTWARE.
|
||||
|
||||
node {
|
||||
|
||||
sh 'git name-rev --name-only HEAD > GIT_BRANCH'
|
||||
sh 'git rev-parse --short HEAD > GIT_BRANCH'
|
||||
sh 'cat GIT_BRANCH'
|
||||
git_branch = readFile('GIT_BRANCH').trim().substring(0, 10)
|
||||
env.GIT_BRANCH = git_branch
|
||||
sh 'rm GIT_BRANCH'
|
||||
//sh 'rm GIT_BRANCH'
|
||||
|
||||
env.NODEJS_HOME = "${tool 'node14'}"
|
||||
env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}"
|
||||
|
||||
Reference in New Issue
Block a user