[release] another fix for rel notes
@@ -251,7 +251,8 @@ pipeline {
dir("${BASE_DIR}"){
script {
echo "Waiting for the release notes to be available"
- return "https://www.elastic.co/guide/en/apm/agent/java/current/release-notes-${BRANCH_DOT_X}.html".toURL().getText().contains("${TAG_VER}")
+ def ret = sh(script: "curl -fs https://www.elastic.co/guide/en/apm/agent/java/current/release-notes-${BRANCH_DOT_X}.html | grep ${TAG_VER}", returnStatus: true)
+ return ret == 0
}
}
}
