Skip to content
Snippets Groups Projects
Commit f2b1f0fa authored by dgelessus's avatar dgelessus
Browse files

Remove unnecessary copy of built repository

parent 1a60e668
Branches
Tags
No related merge requests found
Pipeline #113325 passed
......@@ -12,10 +12,9 @@ build:
- ./gradlew downloadCli
- ./gradlew collectDependencies
- mvn -f de.prob.parent/pom.xml install
- ./gradlew collectArtifacts
artifacts:
paths:
- updatesite
- de.prob.repository/target/repository
deploy:
stage: deploy
......@@ -26,4 +25,4 @@ deploy:
- apk update
- apk add lftp openssh-client
script:
- LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/prob1/nightly/; mirror -vvv -R updatesite ."
- LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/prob1/nightly/; put -e index.html; mirror -vvv -R de.prob.repository/target/repository ."
......@@ -89,15 +89,3 @@ task downloadCli {
completeInstall.dependsOn downloadCli
completeInstall.dependsOn subprojects.setClassPath
task deleteOldArtifacts(type: Delete) {
String updateSite = workspacePath + 'updatesite'
delete updateSite
}
task collectArtifacts(type: Copy) {
from workspacePath + groupID + '.repository/target/repository/'
into workspacePath + 'updatesite'
from workspacePath + "index.html"
into workspacePath + 'updatesite'
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment