Sign inSign up

lorands/maven-stage-resource

By lorands

•Updated almost 7 years ago

Concourse resource to stage maven artifacts.

Image
0

1M+

lorands/maven-stage-resource repository overview

⁠maven-stage-resource

Concourse resource to copy maven resources from one repository to another.

This resource assumes that the the source and target repositories are hosted within the same server, thus same authorization applies.

Theget will download the resources and if not defined otherwise (download_only set to true) it will upload it to target repository.

⁠Source Configuration

  • source_url: Required. The source maven repository location.
  • target_url: Required. The target maven repository location.
  • artifact: Required. The artifact coordinates in the form of groupId:artifactId:type[:classifier]
  • username: Optional. The username used to authenticate.
  • password: Optional. The password used to authenticate.
  • verbose: Optional. True to write intensive log.

⁠Check: Check if there is new version in source repository

Checks for new versions of the artifact by retrieving the maven-metadata.xml from the source repository.

⁠Get (in): Download the artifact and deploy it to target repository

Download the source artifact from repository and puts it to target. It will create the following files in the target directory:

  • pom file
  • archive file (usually jar)
  • version file named version containing the given version

Parameters:

  • version: Optional Make ability to provide version instead of getting the latest. If the version is a file, the version will be read from the file.
  • download_only: Optional If true will only download, and will not upload. Defaults to false.

⁠Put (out): Nothing.

Undefined.

⁠Pipeline example

resource_types:
  - name: maven-stage-resource
    type: docker-image
    source:
      repository: lorands/maven-stage-resource
resources:
  - name: stage-to-uat
    type: maven-stage-resource
    source:
      source_url: https://mynexus.example.com/repository/develop
      target_url: https://mynexus.example.com/repository/uat
      artifact: my.group:my-artifact:jar
      username: myUser
      password: myPass
jobs:
  - name: merge-dev-to-uat
    plan:
    - get: dev-artifact

Tag summary

Content type

Image

Digest

Size

88.9 MB

Last updated

almost 7 years ago

docker pull lorands/maven-stage-resource