I am looking to ensure my jenkins logs only output WARNING or above and so I am using the logging.properties file. I don't actually want to change the logging format but this seems to have happened and now I am trying to change it to how it was. I have this so far in my logging.properties file:
.level = WARNING handlers= java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=WARNING java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS.%1$tL %4$s %2$s %5$s%6$s%n
This shows the following log
2020-05-20 21:42:35.772 SEVERE org.datadog.jenkins.plugins.datadog.clients.DatadogHttpClient getInstance Datadog API Key is not set properly
On another jenkins where this is unchanged it shows
2020-05-20 20:50:56.485+0000 [id=301210] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Datadog Counters Publisher. 5 ms
This is what I want, i.e. the id, same format etc. Does anyone know how to do that?
Hello All. I'm facing this issue on mac. I connected mac as slave/worker node using "Launch agent by connecting it to master" method. Very frequently, Jenkins master says the node is disconnected. But when I login to mac and see in the terminal, the java program will be running without errors and it says connected. To connect it back, I have to stop the program by cntl+c and then run the program again. May I know what could be the issue ?
Any help please ?
Can anyone help me here please ?
ElvenlordNext: According to the snippet generator on my instance,
buildwaits for completion, unless you pass
Hello all, I am looking for documentation on how to launch the Jenkins to support accessing remote resources with groovy scripts.
I am running some very simple test code that, when I run it in a test instance of Jenkins that I launch using the war file on my local desktop, it runs fine. But when I run it from our official Jenkins server it seems to hang. I am pretty sure that some sort of privilege lowering is involved, but am not sure.
process = [ 'cmd.exe', '/c', "curl -v -k -u read-artifacts-user:secretpwd -X GET https://company.jfrog.io/company/epicname/ProjName/?list" ].execute()
text = process.text
def result = (text =~ /\d+.\d+.\d+.\d+/).findAll()
result = result.unique()
When I run this on http://localhost:8080 it returns:
Result: [184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11]
and it can be used in easily in an Active Choice Parameter (the real goal here ;0)
I am really just getting going, but my searches have not been very successful. Any pointers appreciated.