Skip to content

Commit

Permalink
FABN-997 Update pipeline script
Browse files Browse the repository at this point in the history
Change-Id: I49eabaf784b81f55f4606651b8e563b35cacbbef
Signed-off-by: rameshthoomu <rameshbabu.thoomu@gmail.com>
  • Loading branch information
rameshthoomu committed Nov 6, 2018
1 parent f23b47a commit d3ada6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ node ('hyp-x') { // trigger build on x86_64 node
if (env.GERRIT_EVENT_TYPE == "change-merged") {
publishNpm()
} else {
echo -e "\033[32m ------> Dont publish npm modules from verify job" "\033[0m"
echo "------> Don't publish npm modules from VERIFY job"
}

// Publish API Docs from merged job only
if (env.GERRIT_EVENT_TYPE == "change-merged") {
apiDocs()
} else {
echo -e ""\033[32m" ------> Don't publish API Docs from verify job" "\033[0m"
echo "------> Don't publish API Docs from VERIFY job"
}

} finally { // Code for coverage report
Expand Down
4 changes: 3 additions & 1 deletion Jenkinsfile.z
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ node('hyp-z') {
}
// clean environment and get env data
stage("Clean Environment - Get Env Info") {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
try {
dir("${ROOTDIR}/$PROJECT_DIR/fabric-sdk-node/scripts/Jenkins_Scripts") {
sh './CI_Script.sh --clean_Environment --env_Info'
Expand All @@ -49,6 +50,7 @@ node('hyp-z') {
throw err
}
}
}

// Pull fabric, fabric-ca Docker Images
stage("Pull Docker Images") {
Expand Down Expand Up @@ -85,7 +87,7 @@ node('hyp-z') {
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.log'
if (env.GERRIT_EVENT_TYPE == 'change-merged') {
if (currentBuild.result == 'FAILURE') { // Other values: SUCCESS, UNSTABLE
rocketSend channel: "Build Notification - STATUS: ${currentBuild.result} - BRANCH: ${env.GERRIT_BRANCH} - PROJECT: ${env.PROJECT} - BUILD_URL: (<${env.BUILD_URL}|Open>)"
rocketSend "Build Notification - STATUS: ${currentBuild.result} - BRANCH: ${env.GERRIT_BRANCH} - PROJECT: ${env.PROJECT} - BUILD_URL: (<${env.BUILD_URL}|Open>)"
}
}
} // finally block end here
Expand Down

0 comments on commit d3ada6f

Please sign in to comment.