Harden Jenkins Pipelines (#1447)

This commit is contained in:
Danny Skubak 2018-04-05 11:55:37 -04:00 committed by Daniel Ternyak
parent 7ac5a4e242
commit a5b7ae7b2c
3 changed files with 54 additions and 6 deletions

View File

@ -5,13 +5,27 @@ pipeline {
} }
} }
stages { stages {
stage('Build') { stage('Install') {
environment { environment {
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES = 1 AWS_ACCESS_KEY_ID = 'REDACTED'
AWS_SECRET_ACCESS_KEY = 'REDACTED'
ETH_SIGNING_KEY = 'REDACTED'
S3_BUCKET_NAME = 'REDACTED'
} }
steps { steps {
sh 'rm -rf node_modules' sh 'rm -rf node_modules'
sh 'npm install' sh 'npm install'
}
}
stage('Build') {
environment {
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES = 1
AWS_ACCESS_KEY_ID = 'REDACTED'
AWS_SECRET_ACCESS_KEY = 'REDACTED'
ETH_SIGNING_KEY = 'REDACTED'
S3_BUCKET_NAME = 'REDACTED'
}
steps {
sh 'npm run jenkins:build:mac' sh 'npm run jenkins:build:mac'
} }
} }

View File

@ -7,13 +7,27 @@ pipeline {
} }
} }
stages { stages {
stage('Build') { stage('Install') {
environment { environment {
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES = 1 AWS_ACCESS_KEY_ID = 'REDACTED'
AWS_SECRET_ACCESS_KEY = 'REDACTED'
ETH_SIGNING_KEY = 'REDACTED'
S3_BUCKET_NAME = 'REDACTED'
} }
steps { steps {
sh 'rm -rf node_modules' sh 'rm -rf node_modules'
sh 'npm install' sh 'npm install'
}
}
stage('Build') {
environment {
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES = 1
AWS_ACCESS_KEY_ID = 'REDACTED'
AWS_SECRET_ACCESS_KEY = 'REDACTED'
ETH_SIGNING_KEY = 'REDACTED'
S3_BUCKET_NAME = 'REDACTED'
}
steps {
sh 'npm run jenkins:build:linux' sh 'npm run jenkins:build:linux'
} }
} }

View File

@ -7,17 +7,37 @@ pipeline {
} }
} }
stages { stages {
stage('Build') { stage('Install') {
environment { environment {
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES = 1 AWS_ACCESS_KEY_ID = 'REDACTED'
AWS_SECRET_ACCESS_KEY = 'REDACTED'
ETH_SIGNING_KEY = 'REDACTED'
S3_BUCKET_NAME = 'REDACTED'
CSC_LINK = 'REDACTED'
CSC_KEY_PASSWORD = 'REDACTED'
} }
steps { steps {
sh 'rm -rf node_modules' sh 'rm -rf node_modules'
sh 'npm install' sh 'npm install'
}
}
stage('Build') {
environment {
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES = 1
AWS_ACCESS_KEY_ID = 'REDACTED'
AWS_SECRET_ACCESS_KEY = 'REDACTED'
ETH_SIGNING_KEY = 'REDACTED'
S3_BUCKET_NAME = 'REDACTED'
}
steps {
sh 'npm run jenkins:build:linux' sh 'npm run jenkins:build:linux'
} }
} }
stage('Upload') { stage('Upload') {
environment {
CSC_LINK = 'REDACTED'
CSC_KEY_PASSWORD = 'REDACTED'
}
steps { steps {
sh 'npm run jenkins:upload' sh 'npm run jenkins:upload'
} }