2018-03-19 15:42:42 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
|
|
|
dir 'jenkins/Docker'
|
2018-03-29 17:34:58 +00:00
|
|
|
args '--env ETH_SIGNING_KEY=$ETH_SIGNING_KEY --env S3_BUCKET_NAME=$S3_BUCKET_NAME --env AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY'
|
2018-03-19 15:42:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
2018-04-05 15:55:37 +00:00
|
|
|
stage('Install') {
|
2018-03-19 15:42:42 +00:00
|
|
|
environment {
|
2018-04-05 15:55:37 +00:00
|
|
|
AWS_ACCESS_KEY_ID = 'REDACTED'
|
|
|
|
AWS_SECRET_ACCESS_KEY = 'REDACTED'
|
|
|
|
ETH_SIGNING_KEY = 'REDACTED'
|
|
|
|
S3_BUCKET_NAME = 'REDACTED'
|
2018-03-19 15:42:42 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf node_modules'
|
2018-04-13 16:33:49 +00:00
|
|
|
sh 'yarn'
|
2018-04-05 15:55:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2018-03-19 15:42:42 +00:00
|
|
|
sh 'npm run jenkins:build:linux'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Upload') {
|
|
|
|
steps {
|
|
|
|
sh 'npm run jenkins:upload'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|