From 49ae128be4890e510e9151971e8bc1ec4221ae26 Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Tue, 24 Jan 2023 11:02:32 +0100 Subject: [PATCH] gocd: Add parametrized pipeline for automatic release --- gocd/sp.target.gocd.yaml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gocd/sp.target.gocd.yaml b/gocd/sp.target.gocd.yaml index c7ad63b7..46390578 100644 --- a/gocd/sp.target.gocd.yaml +++ b/gocd/sp.target.gocd.yaml @@ -164,3 +164,50 @@ pipelines: - staging-bot tasks: - script: osc -A https://api.suse.de release SUSE:SLE-15-SP5:GA:TEST + + SLE15.SP5.ReleaseScc: + parameters: + product: sle15sp5 + target: MyTarget + build: "0.0" + materials: + scripts: + auto_update: true + git: https://github.com/openSUSE/openSUSE-release-tools.git + whitelist: + - DO_NOT_TRIGGER + destination: scripts + stages: + # "ratt" is an alias for the internal IP of the API, only available on botmaster. + - Release.Images.Update: + approval: manual + roles: + - SLE + resources: + - staging-bot + tasks: + - script: curl --verbose --max-time 3600 "http://ratt:5000/update?product=#{product}&target=#{target}&build=#{build}" + - Release.Images.Rename: + approval: manual + roles: + - SLE + resources: + - staging-bot + tasks: + - script: curl --verbose --max-time 3600 "http://ratt:5000/rename?product=#{product}&target=#{target}" + - Release.Images.Update: + approval: manual + roles: + - SLE + resources: + - staging-bot + tasks: + - script: curl --verbose --max-time 3600 "http://ratt:5000/sync?product=#{product}&target=#{target}" + - Release.Images.Update: + approval: manual + roles: + - SLE + resources: + - staging-bot + tasks: + - script: curl --verbose --max-time 3600 "http://ratt:5000/release?product=#{product}"