This repository was archived by the owner on Nov 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ pipeline {
40
40
41
41
sh '''
42
42
export REPO_NAME="codewind-openapi-eclipse"
43
+ export OUTPUT_NAME="codewind-openapi-eclipse"
43
44
export OUTPUT_DIR="$WORKSPACE/dev/ant_build/artifacts"
44
45
export DOWNLOAD_AREA_URL="https://download.eclipse.org/codewind/$REPO_NAME"
45
46
export LATEST_DIR="latest"
46
- export BUILD_INFO="build.info "
47
+ export BUILD_INFO="build_info.properties "
47
48
export sshHost="[email protected] "
48
49
export deployDir="/home/data/httpd/download.eclipse.org/codewind/$REPO_NAME"
49
50
@@ -56,11 +57,9 @@ pipeline {
56
57
cp $OUTPUT_DIR/$REPO_NAME-*.zip $OUTPUT_DIR/$REPO_NAME.zip
57
58
scp $OUTPUT_DIR/$REPO_NAME.zip $sshHost:$deployDir/$GIT_BRANCH/$LATEST_DIR/$REPO_NAME.zip
58
59
59
- echo "# Build Url :" >> $OUTPUT_DIR/$BUILD_INFO
60
- echo "$BUILD_URL" >> $OUTPUT_DIR/$BUILD_INFO
61
- echo "" >> $OUTPUT_DIR/$BUILD_INFO
62
- echo "# SHA-1 :" >> $OUTPUT_DIR/$BUILD_INFO
63
- sha1sum $OUTPUT_DIR/$REPO_NAME.zip >> $OUTPUT_DIR/$BUILD_INFO
60
+ echo "build_info.url=$BUILD_URL" >> $OUTPUT_DIR/$BUILD_INFO
61
+ SHA1=$(sha1sum ${OUTPUT_DIR}/${OUTPUT_NAME}.zip | cut -d ' ' -f 1)
62
+ echo "build_info.SHA-1=${SHA1}" >> $OUTPUT_DIR/$BUILD_INFO
64
63
65
64
unzip $OUTPUT_DIR/$REPO_NAME-*.zip -d $OUTPUT_DIR/repository
66
65
scp -r $OUTPUT_DIR/repository $sshHost:$deployDir/$GIT_BRANCH/$LATEST_DIR/repository
You can’t perform that action at this time.
0 commit comments