Commit c1974b70 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In ".gitlab-ci-templates.yml", added job template ".template_deploy_branch"...

In ".gitlab-ci-templates.yml", added job template ".template_deploy_branch" which uses CI variables to create unique names and use this template in ".gitlab-ci.yml".
parent efe682dc
Pipeline #89109 failed
...@@ -49,14 +49,7 @@ ...@@ -49,14 +49,7 @@
- "Tools/ContinuousIntegration/run_seed_comparison_test.d/output" - "Tools/ContinuousIntegration/run_seed_comparison_test.d/output"
expire_in: 1 week expire_in: 1 week
.template_deploy: .template_deploy_branch:
stage: deploy stage: deploy
only:
refs:
- master
- configure_ci_setup
script: script:
- mvn clean - echo "scp VadereSimulator/target/vadere-console.jar di49mur@webdev-mwn.lrz.de:~/webserver/htdocs/builds/branches/vadere-console.$CI_COMMIT_REF_NAME.$CI_COMMIT_SHORT_SHA.$CI_ENVIRONMENT_NAME.jar"
- mvn -Dmaven.test.skip=true package
- scp -v -i ~/.ssh/id_rsa VadereSimulator/target/vadere-console.jar di49mur@webdev-mwn.lrz.de:~/webserver/htdocs/builds/vadere_latest.jar
...@@ -17,20 +17,22 @@ ...@@ -17,20 +17,22 @@
# #
# - https://docs.gitlab.com/ee/ci/yaml/README.html # - https://docs.gitlab.com/ee/ci/yaml/README.html
# Variable Definitions
VADERE_DEPLOYMENT_BASE_URL=http://www.vadere.org/builds
# Stage Definitions
stages: stages:
- deploy - deploy
include: .gitlab-ci-templates.yml include: .gitlab-ci-templates.yml
# Job Definitions
deploy_on_linux:
extends: .template_deploy
tags:
- linux
# Jobs for Windows runner (which is labelled with tag "windows") # Jobs for Windows runner (which is labelled with tag "windows")
deploy_on_windows: deploy_branch_on_windows:
extends: .template_deploy extends: .template_deploy_branch
tags: tags:
- windows - windows
environment:
name: windows
url: $VADERE_DEPLOYMENT_BASE_URL/branches/vadere-latest.$CI_COMMIT_REF_NAME.$CI_COMMIT_SHORT_SHA.$CI_ENVIRONMENT_NAME.jar
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment