]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Test CI_COMMIT_REF_NAME
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 31 Aug 2020 06:25:22 +0000 (09:25 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 31 Aug 2020 06:25:22 +0000 (09:25 +0300)
gitlab #79

.gitlab-ci.yml

index 473d3853762fc90db4c0aa251a64685bb11148b6..ee2765ee5a4eb1f5ee2c609cc445212a42de2b84 100644 (file)
@@ -5,9 +5,9 @@ variables:
   MAVEN_CLI_OPTS: "--show-version"
   BUNDLED_JRE_VERSION: jre11-hotspot
   PUBLISH_ADDRESS: www.simantics.org
-  PUBLISH_BASE_DIR: /var/www/http-www.simantics.org/download/${CI_COMMIT_REF_NAME}/sysdyn
-  PUBLISH_P2_DIR: ${PUBLISH_BASE_DIR}/p2.site
-  PUBLISH_PRODUCT_DIR: ${PUBLISH_BASE_DIR}/products
+  PUBLISH_BASE_DIR: "/var/www/http-www.simantics.org/download/${CI_COMMIT_REF_NAME}/sysdyn"
+  PUBLISH_P2_DIR: "${PUBLISH_BASE_DIR}/p2.site"
+  PUBLISH_PRODUCT_DIR: "${PUBLISH_BASE_DIR}/products"
 
 image: registry.simupedia.com/ci-images/maven-eclipse-adoptopenjdk-11:latest
 
@@ -41,6 +41,9 @@ review:
 build:
   stage: build
   script:
+    - export
+    - echo "${PUBLISH_P2_DIR}"
+    - echo "${PUBLISH_PRODUCT_DIR}"
     - mvn ${MAVEN_CLI_OPTS} -B clean verify -Dbuild-products=true
     - curl -s http://www.simantics.org/download/jre/$BUNDLED_JRE_VERSION.zip -o $BUNDLED_JRE_VERSION.zip
     - 7z x -bd $BUNDLED_JRE_VERSION.zip
@@ -100,9 +103,8 @@ publish-installer:
   before_script:
     - *initialize_ssh_connection
   script:
-    - echo "${PUBLISH_PRODUCT_DIR}"
-    #- ssh -i $GITLAB_PRIVATE_KEY $GITLAB_USERNAME@$PUBLISH_ADDRESS mkdir -p "${PUBLISH_PRODUCT_DIR}"
-    #- rsync -e "ssh -i $GITLAB_PRIVATE_KEY" -v *.exe $GITLAB_USERNAME@$PUBLISH_ADDRESS:${PUBLISH_PRODUCT_DIR}/
+    - ssh -i $GITLAB_PRIVATE_KEY $GITLAB_USERNAME@$PUBLISH_ADDRESS mkdir -p "${PUBLISH_PRODUCT_DIR}"
+    - rsync -e "ssh -i $GITLAB_PRIVATE_KEY" -v *.exe $GITLAB_USERNAME@$PUBLISH_ADDRESS:${PUBLISH_PRODUCT_DIR}/
   rules:
     - when: manual