File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -884,18 +884,17 @@ 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
893
- when : manual
894
894
allow_failure : true
895
895
script :
896
896
- |
897
- export VERSION=1.51.2
898
- # export VERSION=${CI_COMMIT_TAG##v}
897
+ export VERSION=${CI_COMMIT_TAG##v}
899
898
ARTIFACT_URLS=(
900
899
"https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
901
900
"https://repo1.maven.org/maven2/com/datadoghq/dd-trace-api/${VERSION}/dd-trace-api-${VERSION}.jar"
@@ -924,12 +923,8 @@ verify_maven_central_deployment:
924
923
fi
925
924
sleep $DELAY
926
925
done
927
- # TODO: remove this
928
- echo "The job was successful, but what does test-job do if this job fails?"
929
- exit 1
930
926
931
- test-job :
932
- stage : publish
927
+ publishing-gate :
933
928
needs :
934
929
- job : verify_maven_central_deployment
935
930
optional : true
@@ -940,20 +935,6 @@ test-job:
940
935
when : on_success
941
936
- when : manual
942
937
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
957
938
958
939
configure_system_tests :
959
940
variables :
You can’t perform that action at this time.
0 commit comments