Skip to content

lorands/maven-stage-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Copy maven resources from one repository to another.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published