Adding pom version number to the Artifactory repository path

165 Views Asked by At

How can I add the pom.xml (maven) version number to the Artifactory repository path in the pipeline.

resource_types:
  - name: artifactory
    type: docker-image
    source:
      repository: pivotalservices/artifactory-resource

resources:
  - name: artifactory-racer-webapi-app
    type: artifactory
    check_every: 167h
    source:
      endpoint: https://artifactory.xxxx/artifactory
      repository: "/xxx-libs-releases/xxxx-webapi-app/<version>"
      regex: xxx-webapi-app-(?<version>.*).jar
      username: ((username))

Same idea as I did with the regex.

0

There are 0 best solutions below