File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -880,6 +880,24 @@ requirements_json_test:
880
880
package-oci :
881
881
needs : [ build ]
882
882
883
+ override_verify_maven_central :
884
+ image : registry.ddbuild.io/images/base/gbi-ubuntu_2204:release
885
+ stage : publish
886
+ needs : [ ]
887
+ rules :
888
+ - if : ' $POPULATE_CACHE'
889
+ when : never
890
+ - when : manual
891
+ allow_failure : true
892
+ script :
893
+ - touch OVERRIDE_MAVEN_VERIFY
894
+ cache : # Cache is used to signal between the override_verify_maven_central and verify_maven_central_deployment jobs
895
+ - key : $CI_PIPELINE_ID-OVERRIDE_SIGNAL
896
+ paths :
897
+ - OVERRIDE_MAVEN_VERIFY
898
+ policy : push
899
+ unprotect : true
900
+
883
901
# Verify Maven Central deployment is publicly available before publishing OCI images
884
902
verify_maven_central_deployment :
885
903
image : registry.ddbuild.io/images/base/gbi-ubuntu_2204:release
@@ -892,7 +910,14 @@ verify_maven_central_deployment:
892
910
when : on_success
893
911
- when : manual
894
912
allow_failure : true
913
+ cache : # Cache is used to signal between the override_verify_maven_central and verify_maven_central_deployment jobs
914
+ - key : $CI_PIPELINE_ID-OVERRIDE_SIGNAL
915
+ paths :
916
+ - OVERRIDE_MAVEN_VERIFY
917
+ policy : pull
918
+ unprotect : true
895
919
script :
920
+ - if [ -f OVERRIDE_MAVEN_VERIFY ]; then echo "SKIPPING MAVEN VERIFICATION"; exit 0; fi
896
921
- |
897
922
export VERSION=${CI_COMMIT_TAG##v}
898
923
ARTIFACT_URLS=(
You can’t perform that action at this time.
0 commit comments