Skip to content

Commit

Permalink
Use latest builder image with yarn properly setup - jenkins-infra/hel…
Browse files Browse the repository at this point in the history
  • Loading branch information
halkeye committed Jan 6, 2022
1 parent 40856f8 commit 9a69bca
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Jenkinsfile_k8s
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: "jnlp"
image: "jenkinsciinfra/builder"
imagePullPolicy: Always
image: "jenkinsciinfra/builder:2.0.3"
resources:
limits: {}
requests:
Expand All @@ -68,8 +67,6 @@ spec:
TZ = "UTC"
GET_CONTENT = "true"
NODE_ENV = "production"
HOME = "/tmp"
PATH = "/tmp/.npm-packages/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}

triggers {
Expand All @@ -84,16 +81,6 @@ spec:
}

stages {
stage('Setup NPM and Yarn') {
steps {
sh '''
mkdir "${HOME}/.npm-packages"
npm config set prefix "${HOME}/.npm-packages"
npm install --global yarn
'''
}
}

stage('NPM Install') {
steps {
sh 'NODE_ENV=development yarn install'
Expand Down

0 comments on commit 9a69bca

Please sign in to comment.