Skip to content
Snippets Groups Projects
Commit f4aa0048 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

Hide FTP stage if DEPLOY_FTP_TARGET not set

This makes the variable HIDE_FTP_UPLOAD_STAGE obsolete, because we can
hide the FTP stage now by setting DEPLOY_FTP_TARGET to an empty string.
parent 409c4f27
No related branches found
No related tags found
1 merge request!340Hide stages if corresponding variables are not set
......@@ -185,10 +185,6 @@ import-alphaplan-data-{{ machine }}:
# --------------------------------------------------------------------------------------
# Stage: Deploy FTP
# --------------------------------------------------------------------------------------
# FIXME: This is a workaround to prevent customer releases being uploaded to our
# public FTP area. It should be removed as soon as we support uploading to different
# FTP target folders.
{% if HIDE_FTP_UPLOAD_STAGE is not defined or not HIDE_FTP_UPLOAD_STAGE %}
{% if SIMULATE_BUILD is defined and SIMULATE_BUILD == "true"
or CI_COMMIT_TAG is defined %}
......@@ -197,6 +193,10 @@ ftp-{{ machine }}:
stage: Deploy FTP
tags:
- ftp
rules:
- if: $DEPLOY_FTP_TARGET
when: manual
allow_failure: true
variables:
MACHINE: {{ machine }}
DEPLOY_SOURCE: ${RELEASE_NAME}
......@@ -210,7 +210,6 @@ ftp-{{ machine }}:
- job: build-version
{% endif %}
{% endif %}
# --------------------------------------------------------------------------------------
......@@ -250,7 +249,6 @@ azure-{{ machine }}:
# --------------------------------------------------------------------------------------
# Stage: Confluence
# --------------------------------------------------------------------------------------
{% if HIDE_FTP_UPLOAD_STAGE is not defined or not HIDE_FTP_UPLOAD_STAGE %}
{% if SIMULATE_BUILD is defined and SIMULATE_BUILD == "true"
or CI_COMMIT_TAG is defined %}
......@@ -265,6 +263,5 @@ publish-confluence-page:
- .publish-confluence-page
{% endif %}
{% endif %}
{% endif %} # if MACHINES
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment