Skip to content
Snippets Groups Projects
Commit 1b735512 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

component CI

parent 1fceb848
No related branches found
No related tags found
No related merge requests found
Pipeline #9047 failed
stages:
- builder-container
- component
- test
- release
include:
# include the component located in the current project from the current SHA
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/vs22-cmake@$CI_COMMIT_SHA
inputs:
stage: component
.template-docker-windows:
tags:
- cgg
......@@ -58,4 +70,27 @@ x64-vs2022:
# TOOLSET: "v142" # 142: VS 2019
# TOOLSET: "v143" # 143: VS 2022
ensure-job-added:
stage: test
image: badouralix/curl-jq
script:
- |
route="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs"
count=`curl --silent "$route" | jq 'map(select(.name | contains("component job of vs22-cmake"))) | length'`
if [ "$count" != "1" ]; then
echo "Count $count"
exit 1; else
echo "Component Job present"
fi
# If the pipeline is for a new tag with a semantic version, and all previous jobs succeed,
# create the release.
create-release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script: echo "Creating release $CI_COMMIT_TAG"
rules:
- if: $CI_COMMIT_TAG
release:
tag_name: $CI_COMMIT_TAG
description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"
visual studio based CI builds.
# BuildBox-Windows (experimental)
## Containers
- VS 2022 based on servercore:ltsc2022 container
## Components
This project also publishes CI components to build cmake based projects.
### vs22-cmake
- ninja and msbuild based build
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