Skip to content

Commit

Permalink
fix: update Jenkinsfile docker args (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibodeauJF authored Feb 21, 2022
1 parent e7a5b73 commit 64aa5f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion JenkinsfileProductionRelease
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
library(
identifier: "jenkins-common-lib@master",
retriever: modernSCM(github(credentialsId: "github-app-dev", repository: "jenkins-common-lib", repoOwner: "coveo")),
changelog: false
)

node('linux && docker') {
def commitHash = params.packageName.substring(params.packageName.lastIndexOf('/') + 1)

Expand All @@ -8,7 +14,7 @@ node('linux && docker') {
userRemoteConfigs: [[credentialsId: 'github-app-dev', url: 'https://github.com/coveo/ui-kit']]
])

withDockerContainer(image: 'node:16', args: '-u=root -e HOME=/tmp -e NPM_CONFIG_PREFIX=/tmp/.npm') {
dockerUtils.withDocker(image: 'node:16', args: '-e HOME=/tmp -e NPM_CONFIG_PREFIX=/tmp/.npm') {
stage('Setup') {
sh 'npm run setup'
}
Expand Down
8 changes: 7 additions & 1 deletion JenkinsfileQARelease
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
library(
identifier: "jenkins-common-lib@master",
retriever: modernSCM(github(credentialsId: "github-app-dev", repository: "jenkins-common-lib", repoOwner: "coveo")),
changelog: false
)

node('linux && docker') {
def commitHash = params.packageName.substring(params.packageName.lastIndexOf('/') + 1)

Expand All @@ -8,7 +14,7 @@ node('linux && docker') {
userRemoteConfigs: [[credentialsId: 'github-app-dev', url: 'https://github.com/coveo/ui-kit']]
])

withDockerContainer(image: 'node:16', args: '-u=root -e HOME=/tmp -e NPM_CONFIG_PREFIX=/tmp/.npm') {
dockerUtils.withDocker(image: 'node:16', args: '-e HOME=/tmp -e NPM_CONFIG_PREFIX=/tmp/.npm') {

stage('Npm publish') {
withCredentials([
Expand Down

0 comments on commit 64aa5f6

Please sign in to comment.