Given the following script block in a stage (Declarative pipeline), how can I access the repoName variable?
stages { stage("...") { script { for (String repoName: repoList) { sshagent (credentials: [ 'e276113e-0ec9-4eaa-88f9-a7db5c9635b6']) { sh """ git clone -b master git@****.com:****/repoName.git cd repoName .... """ } } } } } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d9d247a5-8ab9-4154-99c5-8c77b0861ec2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.