I want to extract project version number from my pom.xml and pass it to the curl command in my bitbucket pipeline file.
For example :
Extract version number from the following lines
<project><version>1.1.7</version><packaging>pom</packaging></project>
and pass it to curl command
- curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@xyz-version.jar"
and the curl command is in bitbucket-pipelines.yml file
It looks like you're new here. Sign in or register to get started.