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
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
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