Skip to content

Commit

Permalink
updated Jenkinsfile for job migration
Browse files Browse the repository at this point in the history
2 changes:
1. adapted the nodejs version to "nodejs-lts" which will use the latest LTS version configured in Jenkins
2. added parameter "--no-yarn" to the vsce call which enforces that yarn is NOT used (workaround for issue microsoft/vscode-vsce#494 introduced in vsce 1.81.0)
lhein authored Oct 5, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8637f82 commit 5fef215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ node('rhel8'){
}

stage('Install requirements') {
def nodeHome = tool 'nodejs-10.9.0'
def nodeHome = tool 'nodejs-lts'
env.PATH="${env.PATH}:${nodeHome}/bin"
sh "npm install -g typescript vsce"
}
@@ -17,7 +17,7 @@ node('rhel8'){
env.PATH="${env.JAVA_HOME}/bin:${env.PATH}"
sh "java -version"

sh "npm ci"
sh "npm ci"
sh "npm run vscode:prepublish"
}

@@ -32,7 +32,7 @@ node('rhel8'){

stage('Package') {
def packageJson = readJSON file: 'package.json'
sh "vsce package -o vscode-apache-camel-${packageJson.version}-${env.BUILD_NUMBER}.vsix"
sh "vsce package -o vscode-apache-camel-${packageJson.version}-${env.BUILD_NUMBER}.vsix --no-yarn"
sh "npm pack && mv vscode-apache-camel-${packageJson.version}.tgz vscode-apache-camel-${packageJson.version}-${env.BUILD_NUMBER}.tgz"
}

0 comments on commit 5fef215

Please sign in to comment.