Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Including files support #1

Closed
wants to merge 1 commit into from
Closed

Including files support #1

wants to merge 1 commit into from

Conversation

aegershman
Copy link

@aegershman aegershman commented Nov 28, 2017

(Updated & ready for actual consideration)

In our deployments, we'd like to include files, such as javadoc or sources or stubs. I was inspired by this issue on Patrick's upstream repository.

You can get artifacts auxiliary to the primary artifact:

jobs:
- name: my-job
  plan:
  - get: source-code
  - get: artifact
    trigger: true
    params:
      artifactItems:
        javadoc: jar
        stubs: jar
        diagram: pdf

You can put artifact files auxiliary to the primary artifact:

- put: maven-milestone
      params:
        # matches only on some-artifact-name-0-0-1.beta.12.jar
        file: artifact/my-artifact-*[0-9].*[0-9].*[0-9]-beta.*[0-9].jar
        files:
          javadoc: artifact/my-artifact-*-javadoc.jar
          sources: artifact/my-artifact-*-sources.jar
        pom_file: project/pom.xml
        version_file: version/version

This will only check on the "primary" artifact specified in source.

Here's the docker image I'm using for my changes: https://hub.docker.com/r/aegershman/maven-resource-with-classifiers/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant