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 }}: ...@@ -144,6 +144,10 @@ deploy-{{ machine }}:
extends: .deploy-rsync extends: .deploy-rsync
{% if CI_COMMIT_TAG is defined %} {% if CI_COMMIT_TAG is defined %}
stage: Deploy SoftwareStore stage: Deploy SoftwareStore
rules:
- if: $DEPLOY_RELEASE_TARGET
when: manual
allow_failure: true
variables: variables:
MACHINE: {{ machine }} MACHINE: {{ machine }}
DEPLOY_SOURCE: ${RELEASE_NAME} DEPLOY_SOURCE: ${RELEASE_NAME}
...@@ -151,6 +155,10 @@ deploy-{{ machine }}: ...@@ -151,6 +155,10 @@ deploy-{{ machine }}:
DEPLOY_TARGET_LINK: ${DEPLOY_RELEASE_TARGET_LINK}/${RELEASE_NAME} DEPLOY_TARGET_LINK: ${DEPLOY_RELEASE_TARGET_LINK}/${RELEASE_NAME}
{% else %} {% else %}
stage: Deploy SoftwareStore Internal stage: Deploy SoftwareStore Internal
rules:
- if: $DEPLOY_INTERNAL_RELEASE_TARGET
when: manual
allow_failure: true
variables: variables:
MACHINE: {{ machine }} MACHINE: {{ machine }}
DEPLOY_SOURCE: ${RELEASE_NAME} DEPLOY_SOURCE: ${RELEASE_NAME}
...@@ -185,10 +193,6 @@ import-alphaplan-data-{{ machine }}: ...@@ -185,10 +193,6 @@ import-alphaplan-data-{{ machine }}:
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
# Stage: Deploy FTP # 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" {% if SIMULATE_BUILD is defined and SIMULATE_BUILD == "true"
or CI_COMMIT_TAG is defined %} or CI_COMMIT_TAG is defined %}
...@@ -197,6 +201,10 @@ ftp-{{ machine }}: ...@@ -197,6 +201,10 @@ ftp-{{ machine }}:
stage: Deploy FTP stage: Deploy FTP
tags: tags:
- ftp - ftp
rules:
- if: $DEPLOY_FTP_TARGET
when: manual
allow_failure: true
variables: variables:
MACHINE: {{ machine }} MACHINE: {{ machine }}
DEPLOY_SOURCE: ${RELEASE_NAME} DEPLOY_SOURCE: ${RELEASE_NAME}
...@@ -210,7 +218,6 @@ ftp-{{ machine }}: ...@@ -210,7 +218,6 @@ ftp-{{ machine }}:
- job: build-version - job: build-version
{% endif %} {% endif %}
{% endif %}
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
...@@ -223,7 +230,9 @@ azure-{{ machine }}: ...@@ -223,7 +230,9 @@ azure-{{ machine }}:
extends: .deploy-azure extends: .deploy-azure
stage: Deploy Azure stage: Deploy Azure
rules: 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 when: manual
allow_failure: true allow_failure: true
variables: variables:
...@@ -250,21 +259,27 @@ azure-{{ machine }}: ...@@ -250,21 +259,27 @@ azure-{{ machine }}:
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
# Stage: Confluence # 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" {% if SIMULATE_BUILD is defined and SIMULATE_BUILD == "true"
or CI_COMMIT_TAG is defined %} or CI_COMMIT_TAG is defined %}
.confluence-rules:
rules:
- if: $CONFLUENCE_PARENT_ID =~ /^./ && $CONFLUENCE_SPACE =~ /^./
when: manual
allow_failure: true
generate-confluence-page: generate-confluence-page:
extends: extends:
- .generate-confluence-page - .generate-confluence-page
- .confluence-rules
variables: variables:
PAGE_TEMPLATE: .gitlab-ci/confluence-page.xml.jinja2 PAGE_TEMPLATE: .gitlab-ci/confluence-page.xml.jinja2
publish-confluence-page: publish-confluence-page:
extends: extends:
- .publish-confluence-page - .publish-confluence-page
- .confluence-rules
{% endif %} {% endif %}
{% endif %}
{% endif %} # if MACHINES {% endif %} # if MACHINES
...@@ -46,6 +46,8 @@ generate-build-pipeline: ...@@ -46,6 +46,8 @@ generate-build-pipeline:
SIMULATE_BUILD: "true" SIMULATE_BUILD: "true"
ci-test-pipeline: ci-test-pipeline:
extends:
- .full_build_pipeline
stage: trigger stage: trigger
needs: [] needs: []
trigger: trigger:
......