Jenkins build slow with network connection

2018-02-12 Thread Markku Konttajarvi
Hi, I use Jenkins Windows version 2.89.3. HeadlessBuild command is same in all scenarios: SPC5Studio -consoleLog -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "C:\SPC5Studio\workspace" -cleanBuild "WS_Name" If I have network connection (internet)

Cannot launch the integration tests on glassfish server using Jenkins

2018-02-12 Thread test200891
Hi all, I am blocked at the step of performing integration tests i.e; before launching integration tests I have to deploy my war file to glassfish server. Thus initially i tried using the following configuration: org.apache.maven.plugins maven-failsafe-plugin

Re: Inconsistent job failures because of NoClassDefFoundError on hudson.util.ProcessTree

2018-02-12 Thread Girish Adat
Had a look at the hudson git repo. Could see that there is something wrong in my assumption. In fact, the connection failure is happening between the Jenkins and the Slave. And it is triggering the destroy. Here destroy also causes error on latest Jenkins in my setup, after the below mentioned

Re: JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Victor Martinez
Hi there, I don't see any configure block in the copyartifacts dsl definition (https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.step.StepContext.copyArtifacts) . You might need to use the global configure block to be able to use it accordingly. But you can

Re: JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Dirk Heinrichs
Hi, thanks for quick reply. > the `specific` block is not part of the DSL definition of `copyArtifacts` as > far as I see, but you could use any of the below DSLs: > - >

pipeline step syntax to call an arbitrary java method

2018-02-12 Thread Ingmar Wirths
This syntax is new to me: step([$class: 'AnalysisPublisher‘]) I've been searching in the Jenkins documentation, but I couldn't find an explanation for it. It looks like it enables me to call an arbitrary Java method. Is this correct? However, there are still questions: 1. How do I specify the

Re: JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Victor Martinez
Besides of that, the `specific` block is not part of the DSL definition of `copyArtifacts` as far as I see, but you could use any of the below DSLs: - /plugin/job-dsl/api-viewer/index.html#path/javaposse.jobdsl.dsl.helpers.step.StepContext.copyArtifacts-buildSelector-specificBuildSelector -

How is it possible to get notifications for a build in Pipelines?

2018-02-12 Thread aksekifdr
How is it possible to get notifications for a build in Pipelines? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com.

JobDSL: Problem defining copyArtifacts action inside promotion with configure block

2018-02-12 Thread Dirk Heinrichs
Hi, while trying to setup a copyArtifacts action inside a promotion, using the following definition actions { copyArtifacts('${PROMOTED_ JOB_NAME}') { buildSelector { specific { buildNumber('${PROMOTED_NUMBER}') } }

Re: How is it possible to get notifications for a build in Pipelines?

2018-02-12 Thread Christopher Orr
Hi there, On Mon, 12 Feb 2018, at 11:00, akseki...@gmail.com wrote: > How is it possible to get notifications for a build in Pipelines? Assuming you're talking about sending notifications when a build completes/fails/etc., this URL leads to multiple pieces of documentation on the Jenkins site

Using shell script

2018-02-12 Thread Francisco Vieira
Hello there, I'm an begginer at Jenkins and I was wondering if you guys could help. My problem: I'm 'building' a JSON file with JSONBuilder in groovy (so far so good). After I do this, I wanna be able to do a command with shell script so I can do some things of my own. And I know how to do it,

jenkins - stash pull request

2018-02-12 Thread Sidh
Hi, Would like to know input on below scenario: -> Git push changes to development branch -> with help of scm polling deployment done on test server via jenkins job -> If success, then i would like to create a pull request to merge it with master branch. I am not sure which plugin is better

Re: Using shell script

2018-02-12 Thread Victor Martinez
Hi Francisco, Did you use the annotation @NonCPS in your function? Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Java heap space

2018-02-12 Thread Consult Hyperion *
I just look after the server. The programmer has changed the parameters for which warnings they get and the build is working now. They put a note in which said they are now only tracking "Microsoft recommended" warnings instead of all warnings. That seems to have made quite a difference to

Re: jenkins slave offline

2018-02-12 Thread Nick Li
Hi Carlos, How do I debug the connection issue? I was able to connect to k8s cluster using the "Test Connection" Button. But now it just doesn't work. On Friday, February 9, 2018 at 11:20:00 PM UTC+8, Carlos Sanchez wrote: > > that means jenkins can't talk to my-kubernetes-cluster-ip and it

Multiple Pipelines in the queue using same executors and one goes offline

2018-02-12 Thread 'Brownjay' via Jenkins Users
Hi, I feel like this is certainly a situation someone has run into before but I haven't been able to think up a non-trivial solution for my use case: - Lets say I have two pipelines, P1 and P2, that do stuff and both need the same two executors/slaves/nodes A and B - P1 enters the

How do I know if a job I triggered has started?

2018-02-12 Thread t3knoid
I have a job that I am calling and not waiting for it. Is there a more elegant way of checking to see if it has started? Currently I am waiting for a bit after triggering the job and then getting the value in http://jenkinsBase/job/jobName/lastBuild/buildNumber. -- You received this message

Re: jenkins slave offline

2018-02-12 Thread Nick Li
I running jenkins master outside or k8s cluster, After running the job, I can the pod is created and running, then turned into terminated very soon, Looks ing slave created in k8s cluster can't connect to jenkins master. from JNLP container log I can see Warning: JnlpProtocol3 is disabled by

Re: jenkins slave offline

2018-02-12 Thread Nick Li
Hi Carlos, could you provide more insight? Thanks very much. Some update, I followed https://stackoverflow.com/questions/47870961/jenkins-kubernetes-plugin-not-working, I need to disable https certificate check. then the test connection is successful. Then I created a test pipeline job

Re: jenkins slave offline

2018-02-12 Thread Nick Li
jenkins master is running outside of k8s cluster, from the log, looks like slave created in k8s cluster can't connect to jenkins master. What do I need to do? On Tuesday, February 13, 2018 at 3:08:46 PM UTC+8, Nick Li wrote: > > I running jenkins master outside or k8s cluster, > After running