Merge pull request #3148 from nilxam/letter_staging_leap_16_2
gocd: use Leap as pipeline group and fix the format error
This commit is contained in:
commit
4114946ad2
@ -1168,12 +1168,13 @@ pipelines:
|
|||||||
done
|
done
|
||||||
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
|
||||||
"Leap.Staging.A":
|
"Leap.Staging.A":
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:A
|
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:A
|
||||||
STAGING_API: https://api.opensuse.org
|
STAGING_API: https://api.opensuse.org
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: Leap.16.0.pkglistgen
|
group: Leap
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
materials:
|
materials:
|
||||||
stagings:
|
stagings:
|
||||||
@ -1207,18 +1208,25 @@ pipelines:
|
|||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
"Leap.Staging.B":
|
"Leap.Staging.B":
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:B
|
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:B
|
||||||
STAGING_API: https://api.opensuse.org
|
STAGING_API: https://api.opensuse.org
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: Leap.16.0.pkglistgen
|
group: Leap
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
materials:
|
materials:
|
||||||
stagings:
|
stagings:
|
||||||
@ -1252,18 +1260,25 @@ pipelines:
|
|||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
"Leap.Staging.C":
|
"Leap.Staging.C":
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:C
|
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:C
|
||||||
STAGING_API: https://api.opensuse.org
|
STAGING_API: https://api.opensuse.org
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: Leap.16.0.pkglistgen
|
group: Leap
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
materials:
|
materials:
|
||||||
stagings:
|
stagings:
|
||||||
@ -1297,10 +1312,16 @@ pipelines:
|
|||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
||||||
- Enable.images.repo:
|
|
||||||
resources:
|
- Enable.images.repo:
|
||||||
- staging-bot
|
resources:
|
||||||
tasks:
|
- staging-bot
|
||||||
- script: |-
|
tasks:
|
||||||
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
|
|
||||||
|
@ -92,13 +92,13 @@ pipelines:
|
|||||||
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
<% end %>
|
<% end %>
|
||||||
<% leap_stagings = %w(A B C) -%>
|
<% leap_stagings = %w(A B C) -%>
|
||||||
<% leap_stagings.each do |letter| -%>
|
<% leap_stagings.each do |letter| %>
|
||||||
"Leap.Staging.<%= letter %>":
|
"Leap.Staging.<%= letter %>":
|
||||||
environment_variables:
|
environment_variables:
|
||||||
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:<%= letter %>
|
STAGING_PROJECT: openSUSE:Leap:16.0:Staging:<%= letter %>
|
||||||
STAGING_API: https://api.opensuse.org
|
STAGING_API: https://api.opensuse.org
|
||||||
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
OSC_CONFIG: /home/go/config/oscrc-staging-bot
|
||||||
group: Leap.16.0.pkglistgen
|
group: Leap
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
materials:
|
materials:
|
||||||
stagings:
|
stagings:
|
||||||
@ -132,10 +132,16 @@ pipelines:
|
|||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:16.0 -s $STAGING_PROJECT
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
tasks:
|
tasks:
|
||||||
- script: |-
|
- script: |-
|
||||||
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while osc -A $STAGING_API api "/build/$STAGING_PROJECT/_result?view=summary&repository=images" | grep 'dirty=.true.'; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
./scripts/gocd/report-status.py -A $STAGING_API -p $STAGING_PROJECT -n images:enabled -r standard -s success
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user