Skip to content

Commit

Permalink
refactor:correct the archive steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmendrak committed Jul 21, 2021
1 parent 10345b1 commit c267cea
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def archiveCoreCaseDataDefinitions() {
./build-release-ccd-definition.sh ${PROD_ENV}
"""
}

dir("${WORKSPACE}/build") {
steps.archiveArtifacts artifacts: "ccd-release-config/civil-ccd-${PROD_ENV}.xlsx"
}
}

} else if ( env.ENVIRONMENT == 'preview') {
Expand All @@ -59,17 +63,21 @@ def archiveCoreCaseDataDefinitions() {
./build-release-ccd-definition.sh preview
"""
}

dir("${WORKSPACE}/build") {
steps.archiveArtifacts artifacts: "ccd-release-config/civil-ccd-preview.xlsx"
}
} else {
dir("${WORKSPACE}/bin") {
sh """
eval \$(./variables/load-${ENVIRONMENT}-environment-variables.sh)
./build-release-ccd-definition.sh ${ENVIRONMENT}
"""
}
}

dir("${WORKSPACE}/build") {
steps.archiveArtifacts artifacts: "ccd-release-config/civil-ccd-${env.ENVIRONMENT}.xlsx"
dir("${WORKSPACE}/build") {
steps.archiveArtifacts artifacts: "ccd-release-config/civil-ccd-${env.ENVIRONMENT}.xlsx"
}
}
}

Expand Down

0 comments on commit c267cea

Please sign in to comment.