Loading .gitlab-ci.yml +28 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ variables: REPO_PREFIX: "https://labs.etsi.org/rep/top/ide/-/jobs" REPO_PATH: "artifacts/raw/updatesite/org.etsi.mts.tdl.updatesite/target/repository/" PACKAGE_NAME: "TOP IDE Interim Build" BETA_PATH: "public/updatesite/beta" # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. MAVEN_OPTS: >- -Xmx2048m Loading Loading @@ -213,6 +214,33 @@ upload: # - | # curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${LIB_JAR} ${PACKAGE_REGISTRY_URL}/${LIB_JAR} pages: stage: upload needs: - job: prepare artifacts: true - job: build-job artifacts: true rules: - !reference [.default_rules, rules] script: # Get the previous GitLab Pages content # - set +e # - curl --fail "$CI_PAGES_URL/content.zip" -o "content.zip" # - if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi # - set -e # Add/update content - mkdir -p $BETA_PATH - cp -r -f $SITE_PATH/* $BETA_PATH # Zip the content and publish the zip again - zip -r "content.zip" "public" - mv "content.zip" "public/" artifacts: paths: - public only: - tags release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest Loading @@ -238,4 +266,3 @@ release: # --assets-link "{\"name\":\"${WINDOWS_GUI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${WINDOWS_GUI_JAR}\"}" \ # --assets-link "{\"name\":\"${CLI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CLI_JAR}\"}" \ # --assets-link "{\"name\":\"${LIB_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${LIB_JAR}\"}" Loading
.gitlab-ci.yml +28 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ variables: REPO_PREFIX: "https://labs.etsi.org/rep/top/ide/-/jobs" REPO_PATH: "artifacts/raw/updatesite/org.etsi.mts.tdl.updatesite/target/repository/" PACKAGE_NAME: "TOP IDE Interim Build" BETA_PATH: "public/updatesite/beta" # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. MAVEN_OPTS: >- -Xmx2048m Loading Loading @@ -213,6 +214,33 @@ upload: # - | # curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${LIB_JAR} ${PACKAGE_REGISTRY_URL}/${LIB_JAR} pages: stage: upload needs: - job: prepare artifacts: true - job: build-job artifacts: true rules: - !reference [.default_rules, rules] script: # Get the previous GitLab Pages content # - set +e # - curl --fail "$CI_PAGES_URL/content.zip" -o "content.zip" # - if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi # - set -e # Add/update content - mkdir -p $BETA_PATH - cp -r -f $SITE_PATH/* $BETA_PATH # Zip the content and publish the zip again - zip -r "content.zip" "public" - mv "content.zip" "public/" artifacts: paths: - public only: - tags release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest Loading @@ -238,4 +266,3 @@ release: # --assets-link "{\"name\":\"${WINDOWS_GUI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${WINDOWS_GUI_JAR}\"}" \ # --assets-link "{\"name\":\"${CLI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CLI_JAR}\"}" \ # --assets-link "{\"name\":\"${LIB_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${LIB_JAR}\"}"