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:
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
893+ - when : manual
894+ allow_failure : true
893895 script :
894896 - |
895- export VERSION=${CI_COMMIT_TAG##v}
897+ export VERSION=1.51.2
898+ # export VERSION=${CI_COMMIT_TAG##v}
896899 ARTIFACT_URLS=(
897900 "https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar"
898901 "https://repo1.maven.org/maven2/com/datadoghq/dd-trace-api/${VERSION}/dd-trace-api-${VERSION}.jar"
@@ -921,11 +924,36 @@ verify_maven_central_deployment:
921924 fi
922925 sleep $DELAY
923926 done
927+ # TODO: remove this
928+ echo "The job was successful, but what does test-job do if this job fails?"
929+ exit 1
924930
925- publishing-gate :
931+ test-job :
932+ stage : publish
926933 needs :
927934 - 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
929957
930958configure_system_tests :
931959 variables :
You can’t perform that action at this time.
0 commit comments