gocd: slfo-stagins: Minor syntax hot fix.
This commit is contained in:
parent
962b5d399b
commit
6d47929e19
@ -9,7 +9,7 @@ pipelines:
|
|||||||
group: SLFO.Stagings
|
group: SLFO.Stagings
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
timer:
|
timer:
|
||||||
spec: "0 0 * 0-23 * SUN"
|
spec: "0 0 0-23 ? * SUN"
|
||||||
materials:
|
materials:
|
||||||
scripts:
|
scripts:
|
||||||
auto_update: true
|
auto_update: true
|
||||||
@ -30,7 +30,7 @@ pipelines:
|
|||||||
sleep 60
|
sleep 60
|
||||||
done
|
done
|
||||||
- Freeze.stagings:
|
- Freeze.stagings:
|
||||||
# 6 hours (at most 30 minutes per staging)
|
## 6 hours (at most 30 minutes per staging)
|
||||||
timeout: 360
|
timeout: 360
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -39,7 +39,7 @@ pipelines:
|
|||||||
set -eu
|
set -eu
|
||||||
export PYTHONPATH=$PWD/scripts
|
export PYTHONPATH=$PWD/scripts
|
||||||
for letter in A B C D E F G H S V Y ; do
|
for letter in A B C D E F G H S V Y ; do
|
||||||
# if the staging was frozen today, skip it
|
## if the staging was frozen today, skip it
|
||||||
if ! osc -A $STAGING_API meta attribute "${SLFO_PROJECT}:Staging:${letter}" --attribute OSRT:FreezeTime | grep $(date +%Y-%m-%d); then
|
if ! osc -A $STAGING_API meta attribute "${SLFO_PROJECT}:Staging:${letter}" --attribute OSRT:FreezeTime | grep $(date +%Y-%m-%d); then
|
||||||
osc -A $STAGING_API staging freeze -p $SLFO_PROJECT $letter
|
osc -A $STAGING_API staging freeze -p $SLFO_PROJECT $letter
|
||||||
else
|
else
|
||||||
|
@ -10,7 +10,7 @@ pipelines:
|
|||||||
group: SLFO.Stagings
|
group: SLFO.Stagings
|
||||||
lock_behavior: unlockWhenFinished
|
lock_behavior: unlockWhenFinished
|
||||||
timer:
|
timer:
|
||||||
spec: "0 0 * 0-23 * SUN"
|
spec: "0 0 0-23 ? * SUN"
|
||||||
materials:
|
materials:
|
||||||
scripts:
|
scripts:
|
||||||
auto_update: true
|
auto_update: true
|
||||||
@ -31,7 +31,7 @@ pipelines:
|
|||||||
sleep 60
|
sleep 60
|
||||||
done
|
done
|
||||||
- Freeze.stagings:
|
- Freeze.stagings:
|
||||||
# 6 hours (at most 30 minutes per staging)
|
## 6 hours (at most 30 minutes per staging)
|
||||||
timeout: 360
|
timeout: 360
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -40,7 +40,7 @@ pipelines:
|
|||||||
set -eu
|
set -eu
|
||||||
export PYTHONPATH=$PWD/scripts
|
export PYTHONPATH=$PWD/scripts
|
||||||
for letter in <% stagings.each do |letter| %><%= letter %> <% end -%>; do
|
for letter in <% stagings.each do |letter| %><%= letter %> <% end -%>; do
|
||||||
# if the staging was frozen today, skip it
|
## if the staging was frozen today, skip it
|
||||||
if ! osc -A $STAGING_API meta attribute "${SLFO_PROJECT}:Staging:${letter}" --attribute OSRT:FreezeTime | grep $(date +%Y-%m-%d); then
|
if ! osc -A $STAGING_API meta attribute "${SLFO_PROJECT}:Staging:${letter}" --attribute OSRT:FreezeTime | grep $(date +%Y-%m-%d); then
|
||||||
osc -A $STAGING_API staging freeze -p $SLFO_PROJECT $letter
|
osc -A $STAGING_API staging freeze -p $SLFO_PROJECT $letter
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user