Get secrets from Vault in bash ENV format
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
465 B

node {
checkout scm
def tag = env.TAG_NAME
if ( tag != null ) {
stage("Build binary") {
sh "docker run --rm -v jenkins_jenkins-data:/var/jenkins_home golang:1.15 /bin/sh -c 'cd ${WORKSPACE} && go build '"
}
stage("Build deb package") {
sh "./build/package/build.sh"
archiveArtifacts "vault-envs-${tag}.deb"
sh "mv *.deb /var/packages/"
}
stage("Deploy") {
echo "No deploy"
}
}
}