Commit ade92b14 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ updated ci configuration

parent b1f3679a
Loading
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@
variables:
  # CI_TARGET_BRANCH: $CI_DEFAULT_BRANCH
  CI_TARGET_BRANCH: "ttf-022-maven"
  DEV_CI_TARGET_BRANCH: "dev"
  MAIN_CI_TARGET_BRANCH: "master"
  SITE_LOCATION: "updatesite/org.etsi.mts.tdl.updatesite/target"
  ARCHIVE_NAME: "org.etsi.mts.tdl.updatesite-1.0.0-SNAPSHOT.zip"
  SITE_ARCHIVE: "${SITE_LOCATION}/${ARCHIVE_NAME}"
@@ -37,6 +39,11 @@ variables:
  REPO_PATH: "artifacts/raw/updatesite/org.etsi.mts.tdl.updatesite/target/repository/"
  PACKAGE_NAME: "TOP IDE Interim Build"
  BETA_PATH: "public/updatesite/beta"
  BETA_PAGE: "https://top.etsi.org/ide/updatesite/beta"
  STANDALONE_LOCATION: "plugins/org.etsi.mts.tdl.standalone/target"
  STANDALONE_NAME: "org.etsi.mts.tdl.standalone-1.0.0-SNAPSHOT-shadow.jar"
  STANDALONE_PATH: "${STANDALONE_LOCATION}/${STANDALONE_NAME}"

  # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
  MAVEN_OPTS: >-
    -Xmx2048m
@@ -144,6 +151,7 @@ build-job: # This job runs in the build stage, which runs first.
    paths:
      - $SITE_ARCHIVE
      - $SITE_PATH
      - $STANDALONE_PATH 

# unit-test-job:   # This job runs in the test stage.
  # stage: test    # It only starts when the job in the build stage completes successfully.
@@ -199,6 +207,8 @@ upload:
    - echo "${PACKAGE_REGISTRY_URL}/${ARCHIVE_NAME}"
    - |
      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${SITE_ARCHIVE} ${PACKAGE_REGISTRY_URL}/${ARCHIVE_NAME}
    - |
      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${STANDALONE_LOCATION} ${PACKAGE_REGISTRY_URL}/${STANDALONE_NAME}
    # - |
      # curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${SITE_ARCHIVE} ${PACKAGE_LATEST_URL}/${ARCHIVE_NAME}
    # - |
@@ -235,7 +245,7 @@ pages:
    # Zip the content and publish the zip again
    # - zip -r "content.zip" "public"
    # - mv "content.zip" "public/"
    - mv $SITE_ARCHIVE $BETA_PATH/content.zip
    # - mv $SITE_ARCHIVE $BETA_PATH/content.zip
  artifacts:
    paths:
      - public
@@ -264,6 +274,8 @@ release:
        --ref $CI_COMMIT_SHA \
        --assets-link "{\"name\":\"${PACKAGE_NAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${ARCHIVE_NAME}\",\"filepath\":\"/repository-archive\"}" \
        --assets-link "{\"name\":\"${PACKAGE_NAME} (latest repository (exipres in 7 days))\",\"url\":\"${REPO_PREFIX}/${BUILD_JOB_ID}/${REPO_PATH}\",\"filepath\":\"/repository\"}" \
        --assets-link "{\"name\":\"${PACKAGE_NAME} (latest beta (permalink))\",\"url\":\"${BETA_PAGE}\"}" \
        --assets-link "{\"name\":\"${PACKAGE_NAME} (latest standalone (exipres in 7 days))\",\"url\":\"${PACKAGE_REGISTRY_URL}/${STANDALONE_NAME}\"}" \
        # --assets-link "{\"name\":\"${PACKAGE_NAME} (latest)\",\"url\":\"${PACKAGE_LATEST_URL}/${ARCHIVE_NAME}\"}" \
        # --assets-link "{\"name\":\"${MACOS_GUI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${MACOS_GUI_JAR}\"}" \
        # --assets-link "{\"name\":\"${WINDOWS_GUI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${WINDOWS_GUI_JAR}\"}" \