diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7f1035ade61f0fdbcb6cd036f0365d92aad04b4..50e157cb72f8c9a1147c82674c5098353cb84dbe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 ." diff --git a/build.gradle b/build.gradle index e3c6db136bcffd562e026283a5fe1cf905fd7de1..83eb0711477954f2155ab2337278798507094299 100644 --- a/build.gradle +++ b/build.gradle @@ -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' -}