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

Option to use a variable for 'container' reference

XMLWordPrintable

      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.

            Unassigned Unassigned
            alex_dixon Alex Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: