Hi Daniel, may be i misunderstand a thing....if i do the job creationg like this:

job {
    name 'DSL-maven-job'
    jdk("JDK-1.7-u40")
    scm {
        git('g...@github.com:khmarbaise/artifactor-maven-plugin.git')
    }
    triggers {
        scm('H/15 * * * *')
    }
      steps {
            maven {
                mavenInstallation("Maven 3.0.5")
                goals("-B -Prun-its clean verify")
                localRepository(LocalToWorkspace)
            }
            maven {
                mavenInstallation("Maven 3.1.1")
                goals("-B -Prun-its clean verify")
                localRepository(LocalToWorkspace)
            }
      }
}

it works as expected but if i change the code to the following:

def existingMavenInstallations = [ "Maven 3.0.5", "Maven 3.1.1" ]
job {
    name 'DSL-maven-job'
    jdk("JDK-1.7-u40")
    scm {
        git('g...@github.com:khmarbaise/artifactor-maven-plugin.git')
    }
    triggers {
        scm('H/15 * * * *')
    }
    steps {
      existingMavenInstallations.each {
          maven {
              mavenInstallation(it)
              goals("-B -Prun-its clean verify")
              localRepository(LocalToWorkspace)
         }
      }
    }
}

it might be a Groovy problem on my site ?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to