MyCrypto/jenkins/Jenkinsfile.linux.develop

40 lines
1.2 KiB
Plaintext

pipeline {
agent {
dockerfile {
filename 'Dockerfile'
dir 'jenkins/Docker'
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'
}
}
stages {
stage('Install') {
environment {
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'
}
}
stage('Upload') {
steps {
sh 'npm run jenkins:upload'
}
}
}
}