Harden Jenkins Pipelines (#1447)
This commit is contained in:
parent
7ac5a4e242
commit
a5b7ae7b2c
|
@ -5,13 +5,27 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
stage('Install') {
|
||||
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 'rm -rf node_modules'
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,13 +7,27 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
stage('Install') {
|
||||
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 'rm -rf node_modules'
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,17 +7,37 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
stage('Install') {
|
||||
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 {
|
||||
sh 'rm -rf node_modules'
|
||||
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'
|
||||
}
|
||||
}
|
||||
stage('Upload') {
|
||||
environment {
|
||||
CSC_LINK = 'REDACTED'
|
||||
CSC_KEY_PASSWORD = 'REDACTED'
|
||||
}
|
||||
steps {
|
||||
sh 'npm run jenkins:upload'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue