Re: How to add active choice parameter as input in one of the stage rather then start of pipeline

2021-02-22 Thread Amit Chettri
Any Jenkins expert can help me with this query? On Tue, Feb 23, 2021 at 12:22 AM Amit Chettri wrote: > Hello Team, > > > After look all the around in the web and not be able to get the solution i am > reaching out here. > > As of now I have code a test pipeline with 2 stages > > *A) stage-1 to

Re: Variable indirection in a pipeline?

2021-02-22 Thread zil...@gmail.com
It's println "${env."${env.BUILD_ENV}_deployed"}" On Monday, February 22, 2021 at 9:25:50 PM UTC-5 zil...@gmail.com wrote: > In my Jenkins system configuration page, I have 3 variables defined, > namely, sandbox_deployed, staging_deployed, and production_deployed. In > my pipeline, I want to

Variable indirection in a pipeline?

2021-02-22 Thread zil...@gmail.com
In my Jenkins system configuration page, I have 3 variables defined, namely, sandbox_deployed, staging_deployed, and production_deployed. In my pipeline, I want to access one of these variables, based on a pipeline property, BUILD_ENV, defined in the job's configuration page. IOW, in my

How to add active choice parameter as input in one of the stage rather then start of pipeline

2021-02-22 Thread Amit Chettri
Hello Team, After look all the around in the web and not be able to get the solution i am reaching out here. As of now I have code a test pipeline with 2 stages *A) stage-1 to scan for the available server from a file in remote remote* * B) Stage-2 list all the server as option to select

Re: [JCasC] job parameters lost when re-starting docker container / reloading existing configuration

2021-02-22 Thread 'Björn Pedersen' via Jenkins Users
Yes, this seems like a general chicken-and-egg problem when specifying parameter-config in the Jenkinsfile. It also affects any updated Jenkinsfile that adds a new parameter/changes a parameter , as these changes only take effect *after * the job is started. The only really working solution

remove square bracket regexp in ansible playbook

2021-02-22 Thread sakshira...@gmail.com
hi all, i am new to ansible and need some advise. i am merging 2 lists from 2 different files and i am getting result which is seperated by square bracket. how i can remove square bracket from the file using regexp in ansible playbook. please advise. i am using lineinfile module for regep: