Declarative Jenkinsfile: different cron trigger per branch

2019-07-09 Thread Amedee Van Gasse
I have a *declarative* Jenkinsfile. I want to have a daily build of the develop branch. I currently have the following trigger: triggers { cron(env.BRANCH_NAME == 'develop' ? '@midnight' : '') } Now I also want to build the master branch. Not daily, but weekly. I already know that

Re: Declarative Jenkinsfile: different cron trigger per branch

2019-07-09 Thread Amedee Van Gasse
To answer my own question: #!/usr/bin/env groovy def schedule = env.BRANCH_NAME.contains('master') ? '@weekly' : env.BRANCH_NAME == 'develop' ? '@midnight' : '' pipeline { triggers { cron(schedule) } Worked for me. On Tuesday, July 9, 2019 at 10:34:06 AM UTC+2, Amedee Van G

Re: Jenkins Agents getting disconnected

2019-07-09 Thread Sverre Moe
On the build agents that gets disconnected there is plenty of available disk space. When there are trying to connect, there are no remoting.jar java process on the agent running. lørdag 6. juli 2019 22.59.31 UTC+2 skrev Karan Kaushik følgende: > > Hi > > We had been facing the same issue with J

Re: Memory issues with Jenkins

2019-07-09 Thread Sverre Moe
I will try turning on GC logging. torsdag 4. juli 2019 23.04.55 UTC+2 skrev Baptiste Mathus følgende: > > Did you enable GC logging to have a better understanding of the profile of > your memory consumption? If not, I would recommend you do it first and > analyze them. > https://jenkins.io/blog/

Re: Memory issues with Jenkins

2019-07-09 Thread Sverre Moe
Since we don't use 32bit, the reason must be - the virtual memory of the OS has been fully depleted How can I check for this, and remedy it? fredag 5. juli 2019 03.17.38 UTC+2 skrev Jan Monterrubio følgende: > Correct me if I’m wrong but I don’t think increasing heap size will > actually affec

Re: Memory issues with Jenkins

2019-07-09 Thread Sverre Moe
Could it be issue with the virtual memory in the jenkins server? Because Jenkins does consume a lot of virtual memory. PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND 13565 jenkins 20 0 12.641g 0.011t 13552 S 0.000 56.62 6

Is there a way how to use template from email extension template plugin(emailexttemplates) in pipeline?

2019-07-09 Thread zakyn
Hello, we are using the email extension template plugin (https://plugins.jenkins.io/emailext-template) where we can define different email templates and then send them. Is there a way how we could use it in pipeline please (select predefined template and send emails)? Thank you. Vladimir --

Re: Problem with location of ANT build.xml file

2019-07-09 Thread Jannet Abdelkefi
Hi I'm also new to jenkins and i'm trying to do a unit test but i'm using also ANT for the jobs but i did not find this build.xml. My questions is where does this build.xml come from? Do i have to create the file manually ? Hope can somebody help me .. Thank you for your time Le dima

Re: Running jobs sequentially on Jenkins ?

2019-07-09 Thread srinivasa rao
Request to everyone please share Jenkins pipeline flow document -- 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. T

Re: Running jobs sequentially on Jenkins ?

2019-07-09 Thread Mark Waite
https://jenkins.io/doc/book/pipeline/ is the online documentation for Jenkins Pipeline. There are also several Jenkins Minute video tutorials available from YouTube - Creating your first Pipeline in Blue Oce

Re: Is there a way how to use template from email extension template plugin(emailexttemplates) in pipeline?

2019-07-09 Thread Slide
There is not currently a way to do this. On Tue, Jul 9, 2019 at 5:16 AM zakyn wrote: > Hello, > > we are using the email extension template plugin ( > https://plugins.jenkins.io/emailext-template) where we can define > different email templates and then send them. > > Is there a way how we could

Re: Is there a way how to use template from email extension template plugin(emailexttemplates) in pipeline?

2019-07-09 Thread Vladimir Zak
Hi, thanks. Is there a way to have a email templates in files and then using some scripting to fill emailext pipeline steps with the predefined body, subject, recepients,... Thanks Vladimir Dne út 9. čvc 2019 16:30 uživatel Slide napsal: > There is not currently a way to do this. > > On Tue,

Need help running a Jenkins job from VBScript using JenkinsAPI

2019-07-09 Thread D. C.
I have searched all over but haven't found a solution to this. The JenkinsAPI page doesn't provide information on using VBScript either. I am trying to start a job in Jenkins from a classic ASP web page (so VBScript - code below). I used wget from examples on the Jenkins API page to get the Jen

Re: Need help running a Jenkins job from VBScript using JenkinsAPI

2019-07-09 Thread Slide
I think you want to pass the username/password as part of the Open method call HttpReq.Open "POST", strJenkinsURL, False, strUsername, strPassword In addition, you may need to set an Authorization header, but I am not sure how the MSXML2.ServerXMLHTTP object handles that if you pass the username

Re: Need help running a Jenkins job from VBScript using JenkinsAPI

2019-07-09 Thread D. C.
Thanks for the suggestions. I had actually already tried "HttpReq.Open "POST", strJenkinsURL, False, strUsername, strPassword" and it didn't help. Since the error returned has to do with the crumb (403 No valid crumb was included), I hoped the auth part was actually working, but maybe not. I

Re: Need help running a Jenkins job from VBScript using JenkinsAPI

2019-07-09 Thread Slide
You would have to implement a function to base64 encode the data (I should have mentioned that in my previous post). On Tue, Jul 9, 2019 at 2:41 PM D. C. wrote: > Thanks for the suggestions. I had actually already tried "HttpReq.Open > "POST", strJenkinsURL, False, strUsername, strPassword" and

Java GUI tests fail on Jenkins but not on my local machine

2019-07-09 Thread Sakshi Arora
Hi All, I have some Java Swing Gui tests in my applications. Whenever, I run them locally, they run without any failures/errors. But when I run them on Jenkins, they fail randomly. All of the failures are GUI based- for example pop-up menu never appeared. Is there any way I can run them successf

Jenkins programming using DSL

2019-07-09 Thread chenna keshav
Hi Guys, I am new to Jenkins... Can any one suggest a tutorial to learn Jenkins programming using DSL.. Thanks, Keshav. -- 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