Merge pull request #3104 from g7/slfo-staging-wait
gocd: slfo-stagings: wait for product to be built before enabling images
This commit is contained in:
commit
d0b5f1c2a8
@ -59,6 +59,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -128,6 +139,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -197,6 +219,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -266,6 +299,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -335,6 +379,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -404,6 +459,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -473,6 +539,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -542,6 +619,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -611,6 +699,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -680,6 +779,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
@ -749,6 +859,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
|
@ -60,6 +60,17 @@ pipelines:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- Build.product:
|
||||||
|
resources:
|
||||||
|
- staging-bot
|
||||||
|
tasks:
|
||||||
|
- script: |-
|
||||||
|
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=product&flag=build"
|
||||||
|
export PYTHONPATH=$PWD/scripts
|
||||||
|
while ! ./scripts/gocd/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r product; do
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
- Enable.images.repo:
|
- Enable.images.repo:
|
||||||
resources:
|
resources:
|
||||||
- staging-bot
|
- staging-bot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user