diff --git a/Jenkinsfile b/Jenkinsfile index d8ee478f4741cd0ab3173bdb7bfe5cb2cabe27a3..be170ffb4d2d89034a0bf88affadf3ed9d6e3a52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,10 +24,15 @@ node('docker') { 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' - + sh 'ls -al ~/' + + dir('./content/services/js-services/content_service') { + sh('chmod 777 ./dockerPushToRepo.sh) + sh 'ARTIFACT_LABEL=bronze ./dockerPushToRepo.sh' + sh './metadata.sh > metadata.json' + sh 'cat metadata.json' + archive includes: "metadata.json" + } } } @@ -36,4 +41,4 @@ node('docker') { throw err } -} \ No newline at end of file +} diff --git a/metadata.sh b/metadata.sh new file mode 100644 index 0000000000000000000000000000000000000000..73d9fdab602e8f4de21915bca339d2e81c6a9336 --- /dev/null +++ b/metadata.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# return version +echo '{"name":"content_service","version":"0.0.1","org":"sunbird","hubuser":"purplesunbird"}'