An error occurred while loading the file. Please try again.
-
manoj v authored9f3d16ff
#!groovy
node('build-slave') {
currentBuild.result = "SUCCESS"
try {
stage('Checkout'){
checkout scm
}
stage('Build'){
env.NODE_ENV = "build"
print "Environment will be : ${env.NODE_ENV}"
sh('chmod 777 build.sh')
sh('./build.sh')
}
stage('Publish'){
echo 'Push to Repo'
sh 'ls -al ~/'
dir('.') {
sh('chmod 777 ./dockerPushToRepo.sh')
sh 'ARTIFACT_LABEL=bronze ./dockerPushToRepo.sh'
sh './src/metadata.sh > metadata.json'
sh 'cat metadata.json'
archive includes: "metadata.json"
}
}
}
catch (err) {
currentBuild.result = "FAILURE"
throw err
}
}