File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ TAG := # make sure tag is never injectable as an env var
15
15
ifdef CI
16
16
ifneq ($(NIGHTLY_TAG ) ,)
17
17
TAG := $(NIGHTLY_TAG )
18
+ else ifneq ($(RELEASE_TAG),)
19
+ TAG := $(RELEASE_TAG )
18
20
endif
19
21
endif
20
22
Original file line number Diff line number Diff line change @@ -588,6 +588,8 @@ openshift_ci_mods() {
588
588
589
589
handle_nightly_runs
590
590
591
+ handle_release_runs
592
+
591
593
info " Status after mods:"
592
594
" $ROOT /status.sh" || true
593
595
@@ -650,6 +652,18 @@ handle_nightly_runs() {
650
652
fi
651
653
}
652
654
655
+ handle_release_runs () {
656
+ if ! is_OPENSHIFT_CI; then
657
+ die " Only for OpenShift CI"
658
+ fi
659
+
660
+ local base_ref
661
+ base_ref=" $( get_base_ref) "
662
+ if is_tagged && [[ " $base_ref " =~ ^release- ]]; then
663
+ ci_export RELEASE_TAG " $( git tag --sort=creatordate --contains | tail -1) "
664
+ fi
665
+ }
666
+
653
667
store_test_results () {
654
668
if [[ " $# " -ne 2 ]]; then
655
669
die " missing args. usage: store_test_results <from> <to>"
You can’t perform that action at this time.
0 commit comments