Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12964

Rundeck plugin returns no artifacts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: rundeck-plugin
    • Labels:
      None
    • Environment:
      software
    • Similar Issues:

      Description

      I'm trying to use rundeck to promote builds from Jenkins.

      I'm using Jenkins version 1.452 and rundeck plugin version 2.11

      To make the promotion seamless I'm trying to use the artifact variables to grab the name of the last artifact built but I get no options back.

      I've tried both via the build url:

      http://JENKINS:8080/plugin/rundeck/options/artifact?project=<jenkins project name>
      

      And by passing the options from jenkins:
      warname=$ARTIFACT_NAME

      {.*\.war}

      The url returns an empty array:

      []

      Passing the options returns:

      %7B.*.war%7D
      

      Let me know if there is any extra information required.

      Thanks,
      Pierre

        Attachments

          Activity

          Hide
          pjelar Pierre Larsson added a comment -

          The problem has been resolved. We were storing our artifacts in a nexus repository. Enabling the project to store the artifacts locally has meant they are now showing up as options.

          Perhaps there could be an added feature to select artifacts from an external repository?

          Show
          pjelar Pierre Larsson added a comment - The problem has been resolved. We were storing our artifacts in a nexus repository. Enabling the project to store the artifacts locally has meant they are now showing up as options. Perhaps there could be an added feature to select artifacts from an external repository?
          Hide
          vbehar Vincent Behar added a comment -

          Hi,

          I'm glad you solved your problem.
          If you want to retrieve artifacts from Nexus, there is a plugin here : https://github.com/vbehar/nexus-rundeck-plugin

          Vincent

          Show
          vbehar Vincent Behar added a comment - Hi, I'm glad you solved your problem. If you want to retrieve artifacts from Nexus, there is a plugin here : https://github.com/vbehar/nexus-rundeck-plugin Vincent

            People

            Assignee:
            vbehar Vincent Behar
            Reporter:
            pjelar Pierre Larsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: