Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Issue #127: Create 'latest' folder to store the latest build (#128)
Browse files Browse the repository at this point in the history
* Create 'latest' folder to store the latest build
  • Loading branch information
josephca authored Jun 28, 2019
1 parent 011329a commit ab9f325
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ pipeline {
sh '''
if [ -z $CHANGE_ID ]; then
UPLOAD_DIR="$GIT_BRANCH/$BUILD_ID"
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/$GIT_BRANCH/latest
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/$GIT_BRANCH/latest
scp -r ${WORKSPACE}/dev/ant_build/artifacts/* [email protected]:/home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/$GIT_BRANCH/latest
else
UPLOAD_DIR="pr/$CHANGE_ID/$BUILD_ID"
fi
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/${UPLOAD_DIR}
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/${UPLOAD_DIR}
scp -r ${WORKSPACE}/dev/ant_build/artifacts/* [email protected]:/home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/${UPLOAD_DIR}
scp -r ${WORKSPACE}/dev/ant_build/artifacts/* [email protected]:/home/data/httpd/download.eclipse.org/codewind/codewind-eclipse/${UPLOAD_DIR}
'''
}
}
Expand Down

0 comments on commit ab9f325

Please sign in to comment.