The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

artifact-promotion

artifactPromotion: ArtifactPromotionStep

  • groupId : String
  • artifactId : String
  • classifier : String
  • version : String
  • stagingRepository : String
  • stagingUser : String
  • stagingPW : String
  • releaseUser : String
  • releasePW : String
  • releaseRepository : String
  • promoterClass : String
  • debug : boolean
  • extension : String (optional)
  • skipDeletion : boolean (optional)

step([$class: 'ArtifactPromotionBuilder']): Single Artifact Promotion

Here you can configure the artifact promotion plugin for single artifacts. In the first section (Artifact Information) you enter the coordinates of your artifact.
In the Staging Repository Information section you tell there your source repository is, e.g. http://192.168.56.24/nexus/content/repositories/staging/.
In the following section Release Repository Information, you enter the information about the target repository, e.g. http://192.168.56.24/nexus/content/repositories/releases/. In both sections, you can add user credentials. If you do, the connection to the repository servers will be done using these credentials. If you don't suppot credentials, the access will be done without any authentication.
Both repositorys should be release repositories, not snapshot repos! The password(s) will be saved currently using the standard Jenkins functionality to save those. It's planned to use in the future the credentials plugin.
  • groupId : String
  • artifactId : String
  • classifier : String
  • version : String
  • extension : String
  • stagingRepository : String
  • stagingUser : String
  • stagingPW : String
  • releaseUser : String
  • releasePW : String
  • releaseRepository : String
  • promoterClass : String
  • debug : boolean
  • skipDeletion : boolean

    'Skip deletion' option preserves the files in the staging repository.

    Untick 'Skip deletion' only after you've promoted all the relevant files in previous steps.


Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.