File tree Expand file tree Collapse file tree 1 file changed +34
-6
lines changed Expand file tree Collapse file tree 1 file changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -884,15 +884,18 @@ package-oci:
884
884
verify_maven_central_deployment :
885
885
image : registry.ddbuild.io/images/base/gbi-ubuntu_2204:release
886
886
stage : publish
887
- needs : [ deploy_to_maven_central ]
887
+ # needs: [ deploy_to_maven_central ]
888
888
rules :
889
889
- if : ' $POPULATE_CACHE'
890
890
when : never
891
- - if : ' $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
892
- when : on_success
891
+ # - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
892
+ # when: on_success
893
+ - when : manual
894
+ allow_failure : true
893
895
script :
894
896
- |
895
- export VERSION=${CI_COMMIT_TAG##v}
897
+ export VERSION=1.51.2
898
+ # export VERSION=${CI_COMMIT_TAG##v}
896
899
ARTIFACT_URLS=(
897
900
"https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
898
901
"https://repo1.maven.org/maven2/com/datadoghq/dd-trace-api/${VERSION}/dd-trace-api-${VERSION}.jar"
@@ -921,11 +924,36 @@ verify_maven_central_deployment:
921
924
fi
922
925
sleep $DELAY
923
926
done
927
+ # TODO: remove this
928
+ echo "The job was successful, but what does test-job do if this job fails?"
929
+ exit 1
924
930
925
- publishing-gate :
931
+ test-job :
932
+ stage : publish
926
933
needs :
927
934
- job : verify_maven_central_deployment
928
- optional : true # Allow job to run even if the verify_maven_central_deployment job fails
935
+ optional : true
936
+ rules :
937
+ - if : ' $POPULATE_CACHE'
938
+ when : never
939
+ - if : ' $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
940
+ when : on_success
941
+ - when : manual
942
+ allow_failure : true
943
+ script :
944
+ - echo "Hello, world!"
945
+
946
+ # publishing-gate:
947
+ # needs:
948
+ # - job: verify_maven_central_deployment
949
+ # optional: true
950
+ # rules:
951
+ # - if: '$POPULATE_CACHE'
952
+ # when: never
953
+ # - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
954
+ # when: on_success
955
+ # - when: manual
956
+ # allow_failure: true
929
957
930
958
configure_system_tests :
931
959
variables :
You can’t perform that action at this time.
0 commit comments