Skip to content

Commit

Permalink
Merge "FABN-997 Update pipeline scripts"
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisob authored and Gerrit Code Review committed Nov 6, 2018
2 parents c93efbc + 1bbeea6 commit 9e81f4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile.x
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ node ('hyp-x') { // trigger build on x86_64 node
}

// Publish npm modules from merged job
if (env.GERRIT_EVENT_TYPE == "change-merged") {
if (env.JOB_NAME == "fabric-sdk-node-merge-x86_64") {
publishNpm()
} else {
echo "------> Don't publish npm modules from VERIFY job"
}

// Publish API Docs from merged job only
if (env.GERRIT_EVENT_TYPE == "change-merged") {
if (env.JOB_NAME == "fabric-sdk-node-merge-x86_64") {
apiDocs()
} else {
echo "------> Don't publish API Docs from VERIFY job"
Expand All @@ -98,7 +98,7 @@ if (env.GERRIT_EVENT_TYPE == "change-merged") {
} finally { // Code for coverage report
step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/cobertura-coverage.xml', failUnhealthy: false, failUnstable: false, failNoReports: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.log'
if (env.GERRIT_EVENT_TYPE == "change-merged") {
if (env.JOB_NAME == "fabric-sdk-node-merge-x86_64") {
if (currentBuild.result == 'FAILURE') { // Other values: SUCCESS, UNSTABLE
rocketSend "Build Notification - STATUS: ${currentBuild.result} - BRANCH: ${env.GERRIT_BRANCH} - PROJECT: ${env.PROJECT} - BUILD_URL: (<${env.BUILD_URL}|Open>)"
}
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.z
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ node('hyp-z') {
}
} finally { // log artifacts
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.log'
if (env.GERRIT_EVENT_TYPE == 'change-merged') {
if (env.JOB_NAME == "fabric-sdk-node-merge-s390x") {
if (currentBuild.result == 'FAILURE') { // Other values: SUCCESS, UNSTABLE
rocketSend "Build Notification - STATUS: ${currentBuild.result} - BRANCH: ${env.GERRIT_BRANCH} - PROJECT: ${env.PROJECT} - BUILD_URL: (<${env.BUILD_URL}|Open>)"
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/Jenkins_Scripts/Publish_API_Docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ gulp doc
SDK_COMMIT=$(git rev-parse --short HEAD)
echo "-------> SDK_COMMIT:" $SDK_COMMIT
TARGET_REPO=$NODE_SDK_USERNAME.github.io.git
git config user.email "fabricsdknode@gmail.com"
git config user.name "fabricsdknode"
# Clone SDK_NODE API doc repository
git clone https://github.com/$NODE_SDK_USERNAME/$TARGET_REPO
# Copy API docs to target repository & push to gh-pages URL
Expand Down

0 comments on commit 9e81f4a

Please sign in to comment.