Re: Script groovy in Active Choice Parameter

2020-06-17 Thread Antonio Gomez
Yes and it works fine, the problem is when when I add a script in the Active Choice Parameters plugin. I think inside the plugin I can't use readJson, but I'm going to try it. Thank you El mié., 17 jun. 2020 a las 21:36, Mahima Mishra (<02.mah...@gmail.com>) escribió: > Have you tried readJSON fr

Re: Setting up DNS for my Jenkins

2020-06-17 Thread Antonio Gomez
This url depends on the publication port of the application server where Jenkins is published. You can change it there, or mount a reverse proxy in front of the jenkins server El mié., 17 jun. 2020 a las 17:10, Kari Atari () escribió: > Is there a configuration setting to show the application wit

Script groovy in Active Choice Parameter

2020-06-17 Thread Antonio Gomez
Hello, I am trying to display json file content as multiselect within Choice Active Parameter. This is my code: //import groovy.json.JsonSlurperClassic import groovy.json.JsonSlurper //def parseJsonText(String jsonText) { // final slurper = new JsonSlurperClassic() // return slurper.parseTex

Re: ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

2020-06-16 Thread Antonio Gomez
Hello, In global tools configuration check in JDK instalations if java path is correct. Check also $PATH from user that run this jobs El mar., 16 jun. 2020 a las 19:41, Jagadeesh YENNE () escribió: > Hi All, > > > While I am running sonar-scanner job, I am getting below error, could someone > su

Load parameter choice from file

2020-05-29 Thread Antonio Gomez
Hello, I am loading a choice type parameter from a file. It works fine, but the first time it loads, all the values ​​on one line appear in the dropdown. It is solved entering configuration and returning to save the pipeline. Do you have any solution for it? Thanks -- You received this message

Re: Jenkinsfile and parameters

2020-04-07 Thread Antonio Gomez
for (Server in ParamServer) { echo Server } Sorry I have made a mistake in the above El martes, 7 de abril de 2020, 13:30:46 (UTC+2), Antonio Gomez escribió: > > Hello, > I have the same case and I have solved it lke this: > > def ParamServer = "${params.Server}".to

Re: Jenkinsfile and parameters

2020-04-07 Thread Antonio Gomez
Hello, I have the same case and I have solved it lke this: def ParamServer = "${params.Server}".tokenize(",") Recover values from parameter and I separate them by commas, after yo can acces that a simple array for (Server in ParamServer) { echo "foo" } El martes, 7 de abril de 2020, 12:46:0

Get lists tool through API

2020-03-27 Thread Antonio Gomez
Hi Teams, I am fighting with the jenkins API, but I don't see the way to get the list of configured tools. Is it possible to obtain this information? In the issue talk about change defaultVisibility of ExportedToolInstallation, default is 1, a