Skip to content

Commit

Permalink
Merge pull request #3150 from gleidi-suse/auto_freeze_slfo
Browse files Browse the repository at this point in the history
gocd: slfo-stagins: Minor syntax hot fix.
  • Loading branch information
gleidi-suse committed Aug 30, 2024
2 parents c4b86e7 + 6d47929 commit 82f193b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gocd/slfo-stagings.gocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipelines:
group: SLFO.Stagings
lock_behavior: unlockWhenFinished
timer:
spec: "0 0 * 0-23 * SUN"
spec: "0 0 0-23 ? * SUN"
materials:
scripts:
auto_update: true
Expand All @@ -30,7 +30,7 @@ pipelines:
sleep 60
done
- Freeze.stagings:
# 6 hours (at most 30 minutes per staging)
## 6 hours (at most 30 minutes per staging)
timeout: 360
resources:
- staging-bot
Expand All @@ -39,7 +39,7 @@ pipelines:
set -eu
export PYTHONPATH=$PWD/scripts
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
osc -A $STAGING_API staging freeze -p $SLFO_PROJECT $letter
else
Expand Down
6 changes: 3 additions & 3 deletions gocd/slfo-stagings.gocd.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipelines:
group: SLFO.Stagings
lock_behavior: unlockWhenFinished
timer:
spec: "0 0 * 0-23 * SUN"
spec: "0 0 0-23 ? * SUN"
materials:
scripts:
auto_update: true
Expand All @@ -31,7 +31,7 @@ pipelines:
sleep 60
done
- Freeze.stagings:
# 6 hours (at most 30 minutes per staging)
## 6 hours (at most 30 minutes per staging)
timeout: 360
resources:
- staging-bot
Expand All @@ -40,7 +40,7 @@ pipelines:
set -eu
export PYTHONPATH=$PWD/scripts
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
osc -A $STAGING_API staging freeze -p $SLFO_PROJECT $letter
else
Expand Down

0 comments on commit 82f193b

Please sign in to comment.