An error occurred while loading the file. Please try again.
-
manoj v authored70aaaa36
#!groovy
node('docker') {
currentBuild.result = "SUCCESS"
try {
stage('Checkout'){
checkout scm
}
stage('Build'){
env.NODE_ENV = "build"
print "Environment will be : ${env.NODE_ENV}"
sh('chmod 777 ./content/services/js-services/content_service/build.sh')
sh('./content/services/js-services/content_service/build.sh')
}
stage('Publish'){
echo 'Push to Repo'
sh 'ls -al ~/'
sh('chmod 777 ./content/services/js-services/content_service/dockerPushToRepo.sh')
sh 'ARTIFACT_LABEL=bronze ./content/services/js-services/content_service/dockerPushToRepo.sh'
}
stage('Deploy to Dev'){
sh('chmod 777 ./content/services/js-services/content_service/deploy.sh')
sh 'ARTIFACT_LABEL=bronze ENV=dev ./content/services/js-services/content_service/deploy.sh'
}
}
catch (err) {
currentBuild.result = "FAILURE"
throw err
}
}