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

Option to use a variable for 'container' reference

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      For example, I will define all my containers in yaml and then I would like to make the container reference a variable.

       
      stage("Build") {
          steps {
              script {
                  container (${imageName}) {
       
      This will make it easier to template JenkinsFiles for multiple builds that require a separate image.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              csanchez Carlos Sanchez
              Reporter:
              alex_dixon Alex Dixon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: