Harden Jenkins Pipelines (#1447)
This commit is contained in:
parent
7ac5a4e242
commit
a5b7ae7b2c
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue