Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • seco-ne/yocto/infrastructure/gitlab-ci
1 result
Show changes
Commits on Source (5)
......@@ -144,6 +144,10 @@ deploy-{{ machine }}:
extends: .deploy-rsync
{% if CI_COMMIT_TAG is defined %}
stage: Deploy SoftwareStore
rules:
- if: $DEPLOY_RELEASE_TARGET
when: manual
allow_failure: true
variables:
MACHINE: {{ machine }}
DEPLOY_SOURCE: ${RELEASE_NAME}
......@@ -151,6 +155,10 @@ deploy-{{ machine }}:
DEPLOY_TARGET_LINK: ${DEPLOY_RELEASE_TARGET_LINK}/${RELEASE_NAME}
{% else %}
stage: Deploy SoftwareStore Internal
rules:
- if: $DEPLOY_INTERNAL_RELEASE_TARGET
when: manual
allow_failure: true
variables:
MACHINE: {{ machine }}
DEPLOY_SOURCE: ${RELEASE_NAME}
......@@ -185,10 +193,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 +201,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 +218,6 @@ ftp-{{ machine }}:
- job: build-version
{% endif %}
{% endif %}
# --------------------------------------------------------------------------------------
......@@ -223,7 +230,9 @@ azure-{{ machine }}:
extends: .deploy-azure
stage: Deploy Azure
rules:
- if: $AZURE_CONTAINER_NAME && $AZURE_TARGET_FOLDER
# "=~ /^./" is the GitLab way of checking whether a variable is set and not empty.
# See for reference: https://gitlab.com/gitlab-org/gitlab/-/issues/321371
- if: $AZURE_CONTAINER_NAME =~ /^./ && $AZURE_TARGET_FOLDER =~ /^./
when: manual
allow_failure: true
variables:
......@@ -250,21 +259,27 @@ 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 %}
.confluence-rules:
rules:
- if: $CONFLUENCE_PARENT_ID =~ /^./ && $CONFLUENCE_SPACE =~ /^./
when: manual
allow_failure: true
generate-confluence-page:
extends:
- .generate-confluence-page
- .confluence-rules
variables:
PAGE_TEMPLATE: .gitlab-ci/confluence-page.xml.jinja2
publish-confluence-page:
extends:
- .publish-confluence-page
- .confluence-rules
{% endif %}
{% endif %}
{% endif %} # if MACHINES
......@@ -46,6 +46,8 @@ generate-build-pipeline:
SIMULATE_BUILD: "true"
ci-test-pipeline:
extends:
- .full_build_pipeline
stage: trigger
needs: []
trigger:
......