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
    • Type: String
  • artifactId
    • Type: String
  • classifier
    • Type: String
  • version
    • Type: String
  • stagingRepository
    • Type: String
  • stagingUser
    • Type: String
  • stagingPW
    • Type: String
  • releaseUser
    • Type: String
  • releasePW
    • Type: String
  • releaseRepository
    • Type: String
  • promoterClass
    • Type: String
  • debug
    • Type: boolean
  • extension (optional)
    • Type: String
  • skipDeletion (optional)
    • Type: boolean

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
    • Type: String
  • artifactId
    • Type: String
  • classifier
    • Type: String
  • version
    • Type: String
  • extension
    • Type: String
  • stagingRepository
    • Type: String
  • stagingUser
    • Type: String
  • stagingPW
    • Type: String
  • releaseUser
    • Type: String
  • releasePW
    • Type: String
  • releaseRepository
    • Type: String
  • promoterClass
    • Type: String
  • debug
    • Type: boolean
  • skipDeletion

    '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.

    • Type: boolean

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.