Skip to content

Commit

Permalink
refactor:move the files in different location
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmendrak committed Jul 22, 2021
1 parent 1fbfc29 commit 582151a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 0 additions & 9 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def archiveCoreCaseDataDefinitions() {

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

Expand All @@ -69,9 +66,6 @@ def archiveCoreCaseDataDefinitions() {

dir("${WORKSPACE}/build") {
steps.archiveArtifacts artifacts: "ccd-release-config/civil-ccd-preview.xlsx"
sh """
cp "ccd-release-config/civil-ccd-preview.xlsx" "github-release/civil-ccd-preview.xlsx"
"""
}
} else {
dir("${WORKSPACE}/bin") {
Expand All @@ -83,9 +77,6 @@ def archiveCoreCaseDataDefinitions() {

dir("${WORKSPACE}/build") {
steps.archiveArtifacts artifacts: "ccd-release-config/civil-ccd-${env.ENVIRONMENT}.xlsx"
sh """
cp "ccd-release-config/civil-ccd-${env.ENVIRONMENT}.xlsx" "github-release/civil-ccd-${env.ENVIRONMENT}.xlsx"
"""
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions bin/build-release-ccd-definition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ fi
root_dir=$(realpath $(dirname ${0})/..)
config_dir=${root_dir}/ccd-definition
build_dir=${root_dir}/build/ccd-release-config
github_dir=${root_dir}/build/github-release
release_definition_output_file=${build_dir}/civil-ccd-${environment}.xlsx
github_file=${github_dir}/civil-ccd-${environment}.xlsx

mkdir -p ${build_dir}

# build the ccd definition file
${root_dir}/bin/utils/process-definition.sh ${config_dir} ${release_definition_output_file} "${excludedFilenamePatterns}"

cp release_definition_output_file github_file
2 changes: 1 addition & 1 deletion bin/create-github-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ fi
zip -r civil-ccd-definition.zip ccd-definition
zip -r civil-e2e.zip e2e codecept.conf.js package.json steps.d.ts yarn.lock saucelabs.conf.js
zip -r civil-screenshots.zip output
ls -lash
cp build/github-release/civil-ccd-aat.xlsx civil-ccd-aat.xlsx
cp build/github-release/civil-ccd-prod.xlsx civil-ccd-prod.xlsx

az login --identity
releaseId=$(createNewRelease civil-ccd-definition)

Expand Down

0 comments on commit 582151a

Please sign in to comment.