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:
884884verify_maven_central_deployment :
885885 image : registry.ddbuild.io/images/base/gbi-ubuntu_2204:release
886886 stage : publish
887- # needs: [ deploy_to_maven_central ]
887+ needs : [ deploy_to_maven_central ]
888888 rules :
889889 - if : ' $POPULATE_CACHE'
890890 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
893893 - when : manual
894894 allow_failure : true
895895 script :
896896 - |
897- export VERSION=1.51.2
898- # export VERSION=${CI_COMMIT_TAG##v}
897+ export VERSION=${CI_COMMIT_TAG##v}
899898 ARTIFACT_URLS=(
900899 "https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
901900 "https://repo1.maven.org/maven2/com/datadoghq/dd-trace-api/${VERSION}/dd-trace-api-${VERSION}.jar"
@@ -924,12 +923,8 @@ verify_maven_central_deployment:
924923 fi
925924 sleep $DELAY
926925 done
927- # TODO: remove this
928- echo "The job was successful, but what does test-job do if this job fails?"
929- exit 1
930926
931- test-job :
932- stage : publish
927+ publishing-gate :
933928 needs :
934929 - job : verify_maven_central_deployment
935930 optional : true
@@ -940,20 +935,6 @@ test-job:
940935 when : on_success
941936 - when : manual
942937 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
957938
958939configure_system_tests :
959940 variables :
You can’t perform that action at this time.
0 commit comments