by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 22:50
    batmat review_requested #3874
  • Jan 31 2019 21:29
    basil opened #3875
  • Jan 31 2019 18:18
    nisarg1499 opened #3874
  • Jan 31 2019 18:12
    nisarg1499 edited #3873
  • Jan 31 2019 18:04
    nisarg1499 edited #3873
  • Jan 31 2019 18:03
    nisarg1499 opened #3873
  • Jan 31 2019 15:53
    batmat synchronize #3865
  • Jan 31 2019 15:24
    jglick commented #3861
  • Jan 31 2019 15:18
    nisarg1499 closed #3863
  • Jan 31 2019 15:18
    nisarg1499 commented #3863
  • Jan 31 2019 15:13
    oleg-nenashev commented #3863
  • Jan 31 2019 15:11
    nisarg1499 reopened #3863
  • Jan 31 2019 15:11
    nisarg1499 closed #3863
  • Jan 31 2019 15:01
    nisarg1499 synchronize #3863
  • Jan 31 2019 14:54
    batmat synchronize #3865
  • Jan 31 2019 14:45
    batmat synchronize #3865
  • Jan 31 2019 14:16
    Wadeck closed #3805
  • Jan 31 2019 14:12
    pjanouse commented #3802
  • Jan 31 2019 14:12
    pjanouse commented #3802
  • Jan 31 2019 14:05
    pjanouse synchronize #3802
Andrew Hibbert
@hibbert

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?

Jamie Jackson
@jamiejackson
i have a declarative pipeline in which i'd like to ignore any errors that might happen for one (and only one) particular step. how do i implement that?
11 replies
prawen
@prawen

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 ?

sujeetkb2014
@sujeetkb2014
@sujeetkb2014
Hello All, i have a question regarding jenkins plugin - "SSH Build Agents" (v 1.29.1). I am using it to connect to the agent - windows 2016 server. But I am getting the error as Java 8 not installed on the agent. But it is already installed. Once I was able to connect to this agent without any issue. But somehow not able to connect now. i also see one strange thing like connecting to the agent -
[SSH] The remote user's environment is:
this is empty
Please can anyone help me out with this issue
2 replies
JohnWhiskas
@JohnWhiskas
how ask build number for 2 jobs?
Semih Ural
@semihural
Hi, How can I check the status of other pipeline and continue to run existing pipeline if that pipeline status is success or not
matrixbot
@matrixbot
Elvenlord You mean another, specific job, right?
The main question is: How do you identify the job? Do you mean the last recent build of that job? Or any build?
Semih Ural
@semihural
so ı've 2 pipeline.. Let assume then now pipeline 1 is executing.. One of the stage I would like to trigger the pipeline 2 and wait the results of this and if it is success then continue with next stage for pipeline 1
matrixbot
@matrixbot
Elvenlord Ahh. The trigger should return some reference to the other build? That's the first thing to find. I never did that, just comtemplating.
matrixbot
@matrixbot
Elvenlord First thing, try to check the return value of the build instruction in the step:
def retval = build …
println retval
Elvenlord Next: According to the snippet generator on my instance, build waits for completion, unless you pass wait: false.
Semih Ural
@semihural
                    build job: 'pipelineB', parameters: [
                    string(name: 'param1', value: "value1")
                  ]
can I do samething like above?
ı mean should ı parse any thing to get output of results
matrixbot
@matrixbot
Elvenlord What about this?
    def retval = build job: 'pipelineB', parameters: [
                    string(name: 'param1', value: "value1")
                 ]
    println retval
Semih Ural
@semihural
dont know ı an try
but I suppose that I need to do something to parse the results of pipelineB
matrixbot
@matrixbot
Elvenlord They will hopefully be in the retval. At least the result (SUCCESS) should be in there.
matrixbot
@matrixbot
Elvenlord Or the resultIsBetterOrEqualTo below that looks also useful.
Semih Ural
@semihural
thanks a lot, ı will try and let you know the results
matrixbot
@matrixbot
Elvenlord No problem.
Are you using the "Authorize Build" Plugin?
Semih Ural
@semihural
Nope
Azarudeen
@deenubai_twitter
how to jenkinize(with JenkinsFile) the Jenkins Server with docker image?
chahn1138
@chahn1138

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()
process.waitFor()
text = process.text
def result = (text =~ /\d+.\d+.\d+.\d+/).findAll()
result = result.unique()
return result

When I run this on http://localhost:8080 it returns:

Result
Result: [1.0.0.109, 1.0.0.110, 1.0.0.111, 1.0.0.112, 1.0.0.114, 1.0.0.116, 1.0.0.117, 1.0.0.118, 1.1.0.119, 1.1.0.120, 1.1.0.121, 1.1.1.122, 1.1.2.123, 1.1.2.124]

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.

5 replies
Bromus
@Bromus93_twitter
How do you guys send an email from Jenkins based on the username of the developer who made the change on mercurial
Deepar123
@Deepar123
I am new to Jenkins and created jobs that would build based on the Github trigger. I was able to set this up so when a commit is pushed to Github, it would trigger builds on certain branches.
But the source code management, Build environment and Build tabs/options are missing in the pipeline configuration. Could someone please let me know how to get those tabs added in the pipeline configure ?
Gavin Mogan
@halkeye
@Deepar123 all of those are not part of pipeline. In pipeline you define all of those sections in environment {}, options {} and stages {}
prawen
@prawen
@Deepar123 If you want to get those options, you need to go for a freestyle job.
@Bromus93_twitter If you are using any plugins, that should provide you all the details as ENV VAR.
lukiszlak
@lukiszlak
Hi guys, just setting up a new node and i found out that JDK from oracle is not available. Do you guys have any alternatives?
3 replies
JohnWhiskas
@JohnWhiskas
what is Evaluated Groovy Script ?
tanmoydotsaha
@tanmoydotsaha
Hi All,
I have facing an issue in jenkin while performing window handle and frame handle in selenium.
Does jekins support window and frame handle for selenium. As it is running in headless mode.
I am new to jenkins.
guga4ka
@guga4ka
Hey folks, does input step have a special handle to show via blue ocean ui? I'm trying to build custom input step and it somehow works with classic ui (at least links are clickable and routed to needed mapping) and ignored at blue ocean ui.
1 reply
matrixbot
@matrixbot
halkeye (@halkeye:g4v.dev) Are you using docker swarm? Cause the stacktrace is looking at swarm stuff. I don't think compose does swarm?
M1kep
@M1kep
Anybody have Jenkins saying that it runs as system even though the service runs as a user?
matrixbot
@matrixbot
halkeye (@halkeye:g4v.dev) is that user system?
John83
@nelu083_twitter
I have a declarative pipeline with several stages on it and I would like to send notifications if one or multiple stages either fail or gets aborted. I am using the catcherror post method but for some reason, if a stage gets aborted, I get notifications for all stages which have "post aborted" at the end of them. any idea why that may happen and how to fix it?
Bromus
@Bromus93_twitter
is there a way to hard code emails in Jenkins and then pick which one to send it to based on the username of the user who makes the changes in the repo with hooks?
matrixbot
@matrixbot
halkeye (@halkeye:g4v.dev) https://plugins.jenkins.io/email-ext/
Rahul Somasunderam
@rahulsom
I was working with the source of jenkinsci/jenkins and noticed there are a lot of lines with trailing spaces and that makes the code a bit harder to work with when most IDEs strip out trailing white spaces by default.
Is it a good idea to add a “No Trailing Whitespaces” rule to checkstyle and send a PR that fixes all those lines?
Gavin Mogan
@halkeye
@rahulsom its certainly not a bad idea
Rahul Somasunderam
@rahulsom
There are options like https://github.com/diffplug/spotless/tree/master/plugin-maven that not only check but also fix.
Ultimatum Gamer
@UltimatumGamer1_twitter
Does anyone knows where the problem is? https://gyazo.com/237b85e1040266439255f78577ce87ab We tried to build our project with Java 14.
3 replies
matrixbot
@matrixbot
halkeye (@halkeye:g4v.dev) Pretty sure invoke top level maven targets is the maven job type
Ultimatum Gamer
@UltimatumGamer1_twitter
Why Jenkins recognize Java 14 JDK as JRE https://gyazo.com/87cabb45e97521184ff0b263e9754f99
1 reply
Bromus
@Bromus93_twitter
So I just found out that Mercurial doesn't associate each user account with an email. As a result im trying to get Jenkins to retrieve the string of the username coded in the hgrc file so that I can use that string to generate an email that I can send to from Jenkins. The only issue is how do I extract the username string in Mercurial with Jenkins?