Re: Remote Access API - REST API in Jenkins

2017-07-30 Thread Michael Pailloncy
> > > I tried it and it is asking for mode? I am not sure what is the mode I > should provide for creating new job. I tried passing mode=create and it > did not work. > Can you share the command line which you've tried please ? > >> However, what do you mean by "for creating jobs based on a

Re: Accessing a variable in shell

2017-07-30 Thread Joachim Nilsson
As I understand, it is written in Groovy. That means you can access a variable in a (Groovy)string using dollar and optionally curly brackets. " variable value is ${variable} " Skaffa Outlook för Android Från: Idan Adar Skickat: söndag 30 juli 13:56 Ämne: Accessing a

Jenkins deployment of a particular build through code

2017-07-30 Thread Deepu Sundar
Hi Team, Need your expert advice on the below query, appreciate your help. We have a Jenkins CI/CD process in place for deploying AWS lambda functions into cloud and it is fully automated. Now we are building a service portal to manage all aspects of the services being deployed. One of the

Accessing a variable in shell

2017-07-30 Thread Idan Adar
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']) {