From 8d9943486562b3c2b6ddce764a680d37f9f45469 Mon Sep 17 00:00:00 2001 From: manoj v <manojv@ilimi.in> Date: Thu, 13 Jul 2017 11:04:13 +0530 Subject: [PATCH] Issue #6 feat : Jenkinsfile and build.sh for content service is added --- Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ba5b66a..d42f799 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,36 +1,36 @@ #!groovy -node(‘docker’) { +node('docker') { currentBuild.result = “SUCCESS†try { - stage(‘Checkout’){ + stage('Checkout'){ checkout scm } - stage(‘Build’){ + stage('Build'){ env.NODE_ENV = “build†print “Environment will be : ${env.NODE_ENV}†- sh(‘./content/services/js-services/content_service/build.sh’) + sh('./content/services/js-services/content_service/build.sh') } - stage(‘Publish’){ + stage('Publish'){ - echo ‘Push to Repo’ - sh ‘ls -al ~/’ - sh ‘ARTIFACT_LABEL=bronze ./content/services/js-services/content_service/dockerPushToRepo.sh’ + echo 'Push to Repo' + sh 'ls -al ~/'' + sh 'ARTIFACT_LABEL=bronze ./content/services/js-services/content_service/dockerPushToRepo.sh' } - stage(‘Deploy to Dev’){ + stage('Deploy to Dev'){ - sh ‘ARTIFACT_LABEL=bronze ENV=dev ./content/services/js-services/content_service/deploy.sh’ + sh 'ARTIFACT_LABEL=bronze ENV=dev ./content/services/js-services/content_service/deploy.sh' } } -- GitLab