Re: need the pipline script

2018-10-04 Thread RAJENDRA PRASAD
Hi ,
Tomorrow I can help you, can you mail me personally, what you are actually
doing there ?
I mean what are the steps you have in pipeline script,when you are
encountering this issue.

Thanks,
rajendra.penuma...@gmail.com

On Fri 5 Oct, 2018, 12:01 AM panneerrselvam natarajan, 
wrote:

> Hi Rajendra,
>
> I am getting the below error message..
>
> groovy.lang.MissingPropertyException: No such property: AfirstDT for class: 
> groovy.lang.Binding
>   at groovy.lang.Binding.getVariable(Binding.java:63)
>
>
> Please suggest me.
>
>
>
> Regards
>
> Panneer
>
>
>
> On Monday, October 1, 2018 at 8:47:28 AM UTC-7, rajendraprasad reddy wrote:
>>
>> Using curl you can automate but we use readyAPI(paid version o SOAPUI).
>> Curl can be used for light weight automation and it is tedious to use
>> large scale web service automation.
>> you can also use soapui open source or even jmeter.
>>
>> these tools you can install on the same machine and use cli mode to
>> launch tests from shell prompt in build section.
>>
>> thanks,
>> Rajendra
>>
>>
>>
>>
>>
>>
>> *Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in
>> Testing.Mobile:9008566233*
>>
>>
>> On Mon, 1 Oct 2018 at 21:06, panneerrselvam natarajan 
>> wrote:
>>
>>> Hi Rajendra,
>>>
>>> Thanks for your immediate response.
>>> Yes.. I want to automate web services using Jenkins pipeline
>>> I think i can call using curl function.. current me if am wrong.
>>>
>>> Regards
>>> Panneer
>>>
>>>
>>> On Monday, October 1, 2018 at 7:31:09 AM UTC-7, rajendraprasad reddy
>>> wrote:

 Hi panneerrselvam,
 You want to automate web services using Jenkins? or you want to trigger
 Jenkins via API(Rest Call)?
 i think , you want to  trigger automated test suite for web service
 from Jenkins ?
 If that s correct then which or framework you people used create
 automated web service test suite?
 normally people write ant script to trigger test suite.






 *Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in
 Testing.Mobile:9008566233*


 On Mon, 1 Oct 2018 at 19:00, panneerrselvam natarajan <
 pann...@gmail.com> wrote:

> Hi Rajendra,
>
> Thanks for your response.
>
> I installed  everything and got credential also. The sample pipeline
> scripts are working fine.
>
> I have lot of API Test case... Let me know the procedure to send
> request and get response (HTTPS) for simple url ( i can use my company 
> url).
>
> Thanks in advance
> Panneer
>
>
> On Monday, October 1, 2018 at 5:10:12 AM UTC-7, rajendraprasad reddy
> wrote:
>>
>> Install following plugins
>> Git plugin,
>> Pipeline plugin,
>> Credentials plugin
>> Credentials binding plugin
>>
>> After this use snippet generator to compose pipeline step like
>> 'gitcheckout'
>>
>> I hope you can do after this hint.
>> Let me know if you need further help?
>>
>> Thanks,
>> Rajendra
>>
>> On Mon 1 Oct, 2018, 5:14 PM Robert Rajendra, 
>> wrote:
>>
>>> HI
>>>
>>> need pipleine script to get code from git and deploy to the ssh and
>>> how to store ssh keys and location in jenkins pipeline  project
>>>
>>>
>>> Regards
>>>
>>> *Robert Rajendra*
>>>
>>> Associate Network/Server Support Engineer
>>>
>>> IT Hands
>>>
>>> P: +91 863.087.3094
>>>
>>> W: www.ITHands.com 
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CABbC_KHUSjnPbgK%2BgEaFUnfDxUPB0D9w%2BxO_spWUEHVk47JppQ%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/949f3b0a-bd35-4029-8064-3533644e28b2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To 

Re: github teamfolder plugin

2018-10-04 Thread Mark Waite
GitHub Branch Source replaces it.  It is obsolete because all the
functionality it provided is now available in the GitHub Branch Source
plugin.

On Thu, Oct 4, 2018 at 3:25 PM David Karlsen  wrote:

> https://plugins.jenkins.io/github-organization-folder
> says it is obsolete.
> what replaces it? why is it obsolete?
>
> --
> --
> David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAGO7Ob0YRJ-McNh72caFEyCMMpFVDOE5WKE_FW0u99cvPmNKnA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFXAkN1oKvXdbZ97MNrZFE9VGT9YnNKbKVnU_Hs0OfxUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


github teamfolder plugin

2018-10-04 Thread David Karlsen
https://plugins.jenkins.io/github-organization-folder
says it is obsolete.
what replaces it? why is it obsolete?

-- 
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAGO7Ob0YRJ-McNh72caFEyCMMpFVDOE5WKE_FW0u99cvPmNKnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: need the pipline script

2018-10-04 Thread panneerrselvam natarajan
Hi Rajendra,

I am getting the below error message when i run my scripts using jenkins.

Ji.. I need your technical support

for few minutes

I am getting the below error message while executing the pipeline

groovy.lang.MissingPropertyException: No such property: A99versionCount1 
for class: groovy.lang.Binding
  at groovy.lang.Binding.getVariable(Binding.java:63) 


Can you help me on this.


Regards

Panneer



On Monday, October 1, 2018 at 10:36:57 AM UTC-7, panneerrselvam natarajan 
wrote:
>
> Thanks Rajendra
>
> Regards
> Panneer
>
>
> On Monday, October 1, 2018 at 8:47:28 AM UTC-7, rajendraprasad reddy wrote:
>>
>> Using curl you can automate but we use readyAPI(paid version o SOAPUI).
>> Curl can be used for light weight automation and it is tedious to use 
>> large scale web service automation.
>> you can also use soapui open source or even jmeter.
>>
>> these tools you can install on the same machine and use cli mode to 
>> launch tests from shell prompt in build section.
>>
>> thanks,
>> Rajendra
>>
>>
>>
>>
>>
>>
>> *Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in 
>> Testing.Mobile:9008566233*
>>
>>
>> On Mon, 1 Oct 2018 at 21:06, panneerrselvam natarajan  
>> wrote:
>>
>>> Hi Rajendra,
>>>
>>> Thanks for your immediate response.
>>> Yes.. I want to automate web services using Jenkins pipeline
>>> I think i can call using curl function.. current me if am wrong.
>>>
>>> Regards
>>> Panneer
>>>
>>>
>>> On Monday, October 1, 2018 at 7:31:09 AM UTC-7, rajendraprasad reddy 
>>> wrote:

 Hi panneerrselvam,
 You want to automate web services using Jenkins? or you want to trigger 
 Jenkins via API(Rest Call)?
 i think , you want to  trigger automated test suite for web service 
 from Jenkins ?
 If that s correct then which or framework you people used create 
 automated web service test suite?
 normally people write ant script to trigger test suite.
  





 *Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in 
 Testing.Mobile:9008566233*


 On Mon, 1 Oct 2018 at 19:00, panneerrselvam natarajan <
 pann...@gmail.com> wrote:

> Hi Rajendra,
>
> Thanks for your response.
>
> I installed  everything and got credential also. The sample pipeline 
> scripts are working fine.
>
> I have lot of API Test case... Let me know the procedure to send 
> request and get response (HTTPS) for simple url ( i can use my company 
> url).
>
> Thanks in advance
> Panneer
>
>
> On Monday, October 1, 2018 at 5:10:12 AM UTC-7, rajendraprasad reddy 
> wrote:
>>
>> Install following plugins
>> Git plugin,
>> Pipeline plugin,
>> Credentials plugin
>> Credentials binding plugin
>>
>> After this use snippet generator to compose pipeline step like 
>> 'gitcheckout'
>>
>> I hope you can do after this hint.
>> Let me know if you need further help?
>>
>> Thanks,
>> Rajendra
>>
>> On Mon 1 Oct, 2018, 5:14 PM Robert Rajendra,  
>> wrote:
>>
>>> HI 
>>>
>>> need pipleine script to get code from git and deploy to the ssh and 
>>> how to store ssh keys and location in jenkins pipeline  project 
>>>
>>>
>>> Regards 
>>>
>>> *Robert Rajendra*
>>>
>>> Associate Network/Server Support Engineer
>>>
>>> IT Hands
>>>
>>> P: +91 863.087.3094
>>>
>>> W: www.ITHands.com 
>>>
>>> -- 
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/CABbC_KHUSjnPbgK%2BgEaFUnfDxUPB0D9w%2BxO_spWUEHVk47JppQ%40mail.gmail.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
> 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-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/949f3b0a-bd35-4029-8064-3533644e28b2%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins 

Re: need the pipline script

2018-10-04 Thread panneerrselvam natarajan
Hi Rajendra,

I am getting the below error message..

groovy.lang.MissingPropertyException: No such property: AfirstDT for class: 
groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)


Please suggest me.



Regards

Panneer



On Monday, October 1, 2018 at 8:47:28 AM UTC-7, rajendraprasad reddy wrote:
>
> Using curl you can automate but we use readyAPI(paid version o SOAPUI).
> Curl can be used for light weight automation and it is tedious to use 
> large scale web service automation.
> you can also use soapui open source or even jmeter.
>
> these tools you can install on the same machine and use cli mode to launch 
> tests from shell prompt in build section.
>
> thanks,
> Rajendra
>
>
>
>
>
>
> *Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in 
> Testing.Mobile:9008566233*
>
>
> On Mon, 1 Oct 2018 at 21:06, panneerrselvam natarajan  > wrote:
>
>> Hi Rajendra,
>>
>> Thanks for your immediate response.
>> Yes.. I want to automate web services using Jenkins pipeline
>> I think i can call using curl function.. current me if am wrong.
>>
>> Regards
>> Panneer
>>
>>
>> On Monday, October 1, 2018 at 7:31:09 AM UTC-7, rajendraprasad reddy 
>> wrote:
>>>
>>> Hi panneerrselvam,
>>> You want to automate web services using Jenkins? or you want to trigger 
>>> Jenkins via API(Rest Call)?
>>> i think , you want to  trigger automated test suite for web service from 
>>> Jenkins ?
>>> If that s correct then which or framework you people used create 
>>> automated web service test suite?
>>> normally people write ant script to trigger test suite.
>>>  
>>>
>>>
>>>
>>>
>>>
>>> *Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in 
>>> Testing.Mobile:9008566233*
>>>
>>>
>>> On Mon, 1 Oct 2018 at 19:00, panneerrselvam natarajan  
>>> wrote:
>>>
 Hi Rajendra,

 Thanks for your response.

 I installed  everything and got credential also. The sample pipeline 
 scripts are working fine.

 I have lot of API Test case... Let me know the procedure to send 
 request and get response (HTTPS) for simple url ( i can use my company 
 url).

 Thanks in advance
 Panneer


 On Monday, October 1, 2018 at 5:10:12 AM UTC-7, rajendraprasad reddy 
 wrote:
>
> Install following plugins
> Git plugin,
> Pipeline plugin,
> Credentials plugin
> Credentials binding plugin
>
> After this use snippet generator to compose pipeline step like 
> 'gitcheckout'
>
> I hope you can do after this hint.
> Let me know if you need further help?
>
> Thanks,
> Rajendra
>
> On Mon 1 Oct, 2018, 5:14 PM Robert Rajendra,  
> wrote:
>
>> HI 
>>
>> need pipleine script to get code from git and deploy to the ssh and 
>> how to store ssh keys and location in jenkins pipeline  project 
>>
>>
>> Regards 
>>
>> *Robert Rajendra*
>>
>> Associate Network/Server Support Engineer
>>
>> IT Hands
>>
>> P: +91 863.087.3094
>>
>> W: www.ITHands.com 
>>
>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CABbC_KHUSjnPbgK%2BgEaFUnfDxUPB0D9w%2BxO_spWUEHVk47JppQ%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
 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-use...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/949f3b0a-bd35-4029-8064-3533644e28b2%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/36961ef9-7b1c-4388-b740-55565e644774%40googlegroups.com
>>  
>> 
>> .
>> For 

Jclouds plugin providers missing

2018-10-04 Thread Ali Bazlamit
Have things changed in the jclouds-plugin, it appears when installing the 
plugin to jenkins i couldn't find the profitbricks-rest plugin i am also 
responsible for oneandone and packet as jclouds plugins.
Both the profitbricks-rest and oneandone are added to the jclouds shaded 
pom.xml. Is that still the practice or something has changed?

Thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e40fc146-16e7-412f-b7a8-3130b4bbd8c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins plugin to access Kubernetes API

2018-10-04 Thread olivier blanc
I am looking for a Jenkins plugin to interact with kubernetes api from 
jenkins pipeline.
Is there such a plugin ?
Thanks
Olivier

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ef02beb7-1b4d-4ad9-8976-16af850c2bd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins plugin to access Kubernetes API

2018-10-04 Thread olivier blanc
I am looking for a Jenkins plugin to interact with kubernetes api from 
jenkins pipeline.
Is there such a plugin ?
Thanks
Olivier

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e91fb51d-5341-4b84-880e-86d690d6b8ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: transfer files between linux servers ssh without password in jenkins

2018-10-04 Thread Ivan Fernandez Calvo
The error "Permission denied" is because the user  piansible  
does not 
have read/write permissions on the source/destination, check it this user 
can read the sources files and can write the destination folder. About to 
not use a password for login, the most common way to make it is by using 
SSH key authentication (see 
https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server)
 

El jueves, 4 de octubre de 2018, 11:58:55 (UTC+2), Sachin Chaudhary 
escribió:
>
> Hi,
>
> I am trying to copy the war file from jenkin server to application server 
> and both are linux boxes.
> I have tried lot of option like
>
> *Option one:*
> ***
> sshpass -p password scp -o StrictHostKeyChecking=no 
> /opt/comp/jetty/9.3.7.v20160115/etc/core/ 
> piansi...@testing.comp.com/opt/comp/jetty/9.3/resources/
>
> *Option two:*
> ***
> scp file-to-copy.war  piansi...@test1xyz.comp.com:/tmp/
> ssh pian...@testing.comp.com 
> sudo su –
> mv /tmp/file-to-copy.war /opt/comp/jetty/9.3/webapps/
>
> Both cases it says "Permsion denied" in jenkins. 
>
> Does this scp command support without password Or any certificate or token 
> need to be creared.
>
> Can anyone have experience in transfering the files between two linux 
> boxes without password?
>
> Thanks,
> Sachin
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4aa0873e-ff7f-46f5-9c6e-5ea57e984cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Configure Linux and Windows slave node

2018-10-04 Thread gotviseryon
What are the methods to configure a Linux and Windows slave node?

Is there a runbook for it?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7569e5ed-93a8-458a-afd5-9fa34a9bf4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins global metrics

2018-10-04 Thread gotviseryon
Sorry for the delayed response Rajendra.  Will try this and let you know.  
Got stuck with another issue.

On Friday, September 28, 2018 at 12:07:12 PM UTC-4, rajendraprasad reddy 
wrote:
>
> Following snippet can collect all jobs into a list,
>
> Just modify the script and please remove the filtering logic from previous 
> script,
>
> And add the following snippet, that's all you will get all the jobs.
>
> def jobsList=[];
>
> Jenkins.instance.projects.collect { 
>
> String currentJob=it.name; 
>
> jobsList.add(currentJob)
>
> }
>
> Thanks,
> Rajendra
>
> On Fri 28 Sep, 2018, 8:03 PM , > wrote:
>
>> Rajendra.  Thank you so much for the information.  It is very 
>> descriptive.  But, need some more help.  Sorry to bother, I'm new to 
>> Groovy.  You mentioned you are filtering the job name by 'Monitor'.  Just 
>> wanted to check how it works for this scenario
>>
>> I need details of all jobs, irrespective of which project/folder they 
>> belong to, from Saturday to Friday.  How does it work in this case?
>>
>> Also, I need this report to be emailed.  If you can suggest a method for 
>> that, will be helpful.  Thanks so much for the help.
>>
>> On Friday, September 28, 2018 at 3:00:14 AM UTC-4, rajendraprasad reddy 
>> wrote:
>>>
>>> Here is the Ggroovy Script:
>>> import javax.mail.*
>>> import javax.mail.internet.*
>>> import jenkins.model.*
>>> import java.text.SimpleDateFormat
>>> import java.util.*;
>>> import java.util.Calendar;
>>> import java.lang.System;
>>> import org.apache.tools.ant.Project
>>> import org.apache.tools.ant.ProjectHelper
>>>
>>> def env="Dev_Jenkins_Server";
>>> SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z 
>>> ");
>>> sdf.setTimeZone(TimeZone.getTimeZone("EST"));
>>> def  d=new Date();
>>> def oneHourPrior=new Date(System.currentTimeMillis() - 3600 * 1000);
>>> def currentTime=sdf.format(d);
>>> def monitoringStartTime=trim(oneHourPrior)
>>>
>>>
>>> def totalMonitoringJobs=0;
>>> def testSuiteIndex=0;
>>> def passedTestSuiteCount=0;
>>> def failedTestSuiteCount=0;
>>> def passedJobsList=[];
>>> def failedJobsList=[];
>>> def totalJobsList=[];
>>>
>>> println "Monitoring Start Time:"+monitoringStartTime ;
>>> println  "Monitoring Current Time:  "+currentTime;
>>>
>>> def matchedJobs = Jenkins.instance.items.findAll { job ->
>>> job.name =~ /Monitor/
>>> }
>>>
>>> println 
>>> "*"
>>>println "Total Monitoring Suites Count:"+matchedJobs.size();
>>>totalMonitoringJobs=matchedJobs.size();
>>>
>>> println "***Listing all Available 
>>> Monitoring Projects**"
>>> def index=0;
>>>  matchedJobs.each { job ->
>>>index=index+1;
>>> println index+". "+job.name;
>>> totalJobsList<>> }
>>> println 
>>> "*\n\n"
>>>
>>> println "Todays Execution Summary 
>>> Results***"
>>>  matchedJobs.each { job ->
>>>def numbuilds = job.builds.size()
>>>   if (numbuilds == 0) {
>>>println '  -> no build'
>>>return
>>>   }
>>>def lastbuild = job.builds[0]
>>>Calendar cal1 = Calendar.getInstance();
>>> Calendar cal2 = Calendar.getInstance();
>>> cal1.setTime(monitoringStartTime);
>>> cal2.setTime(lastbuild.getTime());
>>>
>>>
>>> if (cal2.after(cal1)) {
>>>testSuiteIndex=testSuiteIndex+1
>>> def rightPadding=50;
>>>
>>>
>>> String jobName= job.name;
>>> int requiredPadding=50-(jobName.size());
>>> while(requiredPadding>0){
>>>jobName=jobName+" "
>>>requiredPadding--;
>>> } 
>>>
>>> def jobInfo=jobName+'\tlastbuild: ' + lastbuild.displayName + ' = ' + 
>>> lastbuild.result + ', time: ' + lastbuild.getTime();
>>>
>>> String latestbuildStatus=lastbuild.result;
>>>  if( latestbuildStatus.equals("SUCCESS")){
>>>  passedTestSuiteCount=passedTestSuiteCount+1
>>>  //println "Found a Success Project"
>>>  jobInfo="\t\t"+ passedTestSuiteCount+" . "+jobInfo
>>> passedJobsList.add(jobInfo)
>>> }
>>>  if( latestbuildStatus.equals("FAILURE")){
>>>  failedTestSuiteCount=failedTestSuiteCount+1
>>>jobInfo="\t\t"+ failedTestSuiteCount+" . "+jobInfo
>>>  failedJobsList.add(jobInfo)
>>> }
>>> }
>>>
>>> }
>>>
>>> String passedJobsInfo= passedJobsList.join("\n")
>>> String failedJobsInfo= failedJobsList.join("\n")
>>>
>>> def jobsList ="";
>>> def jobIndex=0;
>>> totalJobsList.each{
>>>  jobIndex=jobIndex+1;
>>>  jobsList=jobIndex+". "+jobsList+it
>>>
>>> }
>>>
>>>
>>> String cumulativeStatus="PASS"
>>> if(failedJobsList.size()>0){
>>> cumulativeStatus="FAIL"
>>> }
>>>
>>>
>>> 

Re: github quota limit when scanning with the addition of tags

2018-10-04 Thread j . knurek
I've started looking into this issue again. It's been an ongoing problem, 
that only continues to get worse over time. We're using the 
basic-branch-build-strategies-plugin at the moment, which provides an 
option for not building tags older than a week. But this option provides no 
value in limiting our quota usage. And based the investigation I just did, 
no matter what build strategy that gets applied, the issue will persist. 

The GitHubSCMSource plugin processes each tag with an api request
https://github.com/jenkinsci/github-branch-source-plugin/blob/master/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java#L1048
BEFORE the build strategies get evaluated
https://github.com/jenkinsci/branch-api-plugin/blob/c4d394415cf25b6890855a08360119313f1330d2/src/main/java/jenkins/branch/MultiBranchProject.java#L2210

This is a bit frustrating because the information that is used to filter 
(tagDate) is already known before making the additional request to Github.

--

In related news, I noticed that the github cache is going to be added back 
in. That may help eliminate some of the pain this topic is causing us, but 
regardless, there seems to me to be a fault in the way build strategies and 
api requests work.




On Saturday, 6 January 2018 05:30:40 UTC+1, R Tyler Croy wrote:
>
> (replies inline) 
>
> On Fri, 05 Jan 2018, Alicia Doblas wrote: 
>
> > Hi, 
> > 
> > a couple of months ago we had the same problem. After improving the 
> > discover filter of the branch/tag/PR calls, there weren't too much to 
> > do...so we decided to "by-pass" the api of github by using different 
> users. 
> > Looks like the api limit applies to a single user, so the "solution" for 
> us 
> > was to split our jobs into different groups, each of them using a 
> different 
> > user for the api call. 
> > 
> > By changing this configuration we can manage 5000 req/hour x N groups. 
>
> This is very very much against the GitHub.com terms of service, which 
> states 
> that one legal entity can have one free machine account. 
>
> https://help.github.com/articles/github-terms-of-service/#b-account-terms 
>
>
>
> - R. Tyler Croy 
>
> -- 
>  Code:  
>   Chatter:  
>  xmpp: rty...@jabber.org  
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
> -- 
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/db9a8af8-c3f4-4217-a712-23b1a82867d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: issue using jenkins swarm client "Failed to fetch slave info from Jenkins CODE: 403 Retrying in 10 seconds"

2018-10-04 Thread Jorge Bau
Hi!

Ran into same problem, but looking into the jenkins system log I found this:

While serving https://my.server/jenkins/plugin/swarm/slaveInfo: 
hudson.security.AccessDeniedException2: my_user is missing the Agent/Create 
permission

Please consider reviewing the permissions granted to the user you use for 
connection :)

El lunes, 13 de febrero de 2017, 10:50:46 (UTC+1), Xinity escribió:
>
> Hi there,
> i'm trying to use jenkins swarm client to do automatic discover of agents 
> in my internal network.
>
> We have deployed latest version of jenkins with needed plugins and we are 
> trying to configure jenkins so our swarm client can auth using 
> login/password provided.
> We've tried to use role based strategy plugin thinking it would ease our 
> job, but we may have missing something as we have found the exact roles to 
> give to the user used to auth.
>
> Auth seems to be ok , but we still have these messages: 
> Failed to fetch slave info from Jenkins CODE: 403
> Retrying in 10 seconds
>
> anyone may give tips ? :)
>
> Thanks a lot for your help :)
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/89d9c66b-70ca-49cd-99c4-e9d7041ced5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pipelines

2018-10-04 Thread Robert Rajendra
Thank you Team hope that i will learn writing pipelines and make my way
through devops

*Robert Rajendra*

Associate Network/Server Support Engineer

IT Hands

P: +91 863.087.3094 <+91%2086308%2073094>

W: www.ITHands.com 


On Thu, 4 Oct 2018 at 17:27, Mark Waite  wrote:

> Here are some possible resources that I found:
>
>- Several very good Pipeline tutorials are available on jenkins.io
> along with the guided tour
>.
>- Edureka offers their Jenkins video tutorials
>
> 
>on youtube.
>- Tech Primers offers their Jenkins video tutorials
>
> 
>on youtube.
>- ProgrammingKnowledge offers their Jenkins video tutorials
>
> 
>on youtube.
>- There is a list of "5 Best Jenkins Tutorials
>"
>which you might consider as well (note that some of them are not free).
>- If you register a free account with CloudBees (at
>https://go.cloudbees.com/training), you can also take the Jenkins
>Pipeline Fundamentals course for free ("View Online Courses").
>
>
> Mark Waite
>
> On Thu, Oct 4, 2018 at 5:41 AM  wrote:
>
>> I want to learn how to write jenkins pipeline so Please suggest me a
>> course or from where i can start
>>
>>
>> Please HELP!
>>
>> and Please suggest what i need to do to learn  writing jenkins pipeline
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/bc2d2abd-01ca-44ac-9a62-b0b7a0617aa6%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH7ztrsFV5h5a9sWUj9DEE_eGwgyG6UsGt-XVL85axO4Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CABbC_KHczOep-aE6o%3DCU6xND1iqTtZtCves0oCjC07wJx7c-3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pipelines

2018-10-04 Thread Mark Waite
Here are some possible resources that I found:

   - Several very good Pipeline tutorials are available on jenkins.io
    along with the guided tour
   .
   - Edureka offers their Jenkins video tutorials
   

   on youtube.
   - Tech Primers offers their Jenkins video tutorials
   

   on youtube.
   - ProgrammingKnowledge offers their Jenkins video tutorials
   

   on youtube.
   - There is a list of "5 Best Jenkins Tutorials
   "
   which you might consider as well (note that some of them are not free).
   - If you register a free account with CloudBees (at
   https://go.cloudbees.com/training), you can also take the Jenkins
   Pipeline Fundamentals course for free ("View Online Courses").


Mark Waite

On Thu, Oct 4, 2018 at 5:41 AM  wrote:

> I want to learn how to write jenkins pipeline so Please suggest me a
> course or from where i can start
>
>
> Please HELP!
>
> and Please suggest what i need to do to learn  writing jenkins pipeline
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/bc2d2abd-01ca-44ac-9a62-b0b7a0617aa6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH7ztrsFV5h5a9sWUj9DEE_eGwgyG6UsGt-XVL85axO4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: EXTERNAL: Jenkins pipelines

2018-10-04 Thread Joaquin Henriquez
https://jenkins.io/doc/book/pipeline/

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of 
robert.rajen...@ithands.biz
Sent: 04 October 2018 12:41
To: Jenkins Users
Subject: EXTERNAL: Jenkins pipelines

I want to learn how to write jenkins pipeline so Please suggest me a course or 
from where i can start


Please HELP!

and Please suggest what i need to do to learn  writing jenkins pipeline
--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bc2d2abd-01ca-44ac-9a62-b0b7a0617aa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/34c2437f57984ef283cbf7ec695315ba%40BSKEXCH2013HYPV.mwrinfosecurity.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins pipelines

2018-10-04 Thread robert . rajendra
I want to learn how to write jenkins pipeline so Please suggest me a course 
or from where i can start 


Please HELP!

and Please suggest what i need to do to learn  writing jenkins pipeline 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bc2d2abd-01ca-44ac-9a62-b0b7a0617aa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


transfer files between linux servers ssh without password in jenkins

2018-10-04 Thread Sachin Chaudhary
Hi,

I am trying to copy the war file from jenkin server to application server
and both are linux boxes.
I have tried lot of option like

*Option one:*
***
sshpass -p password scp -o StrictHostKeyChecking=no
/opt/comp/jetty/9.3.7.v20160115/etc/core/
piansi...@testing.comp.com/opt/comp/jetty/9.3/resources/

*Option two:*
***
scp file-to-copy.war  piansi...@test1xyz.comp.com:/tmp/
ssh piansi...@testing.comp.com
sudo su –
mv /tmp/file-to-copy.war /opt/comp/jetty/9.3/webapps/

Both cases it says "Permsion denied" in jenkins.

Does this scp command support without password Or any certificate or token
need to be creared.

Can anyone have experience in transfering the files between two linux boxes
without password?

Thanks,
Sachin

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CABZrFoNrXiqVL3oO%3D2Sy%3DwPtR2xGjedSQwXCtYwAAz4OU54pNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to use certificate files using withCredentials

2018-10-04 Thread olivier blanc
I am trying to retrieve keystore from a PKCS12 file stored as credential.
Here is the code I use :

 
   withCredentials(bindings: [
certificate(
aliasVariable: 'alias', credentialsId: 'myId', keystoreVariable: 
'keystoreName', passwordVariable: 'keyPassword')
]) {
def keystoreFormat = 
"PKCS12"
print "test : " + Secret(
try {

try {
p12file = 
new FileInputStream(keystoreName)
} catch (error) {
println "File 
p12 input stream error :"
println 
error.toString()
println 
error.getMessage()
 print error
.printStackTrace()
throw error
}

println "P12file 
opened"

try {
keystore = 
KeyStore.getInstance(keystoreFormat)
keystore.
load(p12file, keyPassword.toCharArray())
} catch (error) {
println 
"Loading 
KeyStore :"
println 
error.toString()
println 
error.getMessage()
print error.
printStackTrace()
throw error
}
def key = keystore.
getKey(alias, keyPassword.toCharArray())

println "-BEGIN 
PRIVATE KEY-"
println key.
getEncoded().encodeBase64()
println "-END 
PRIVATE KEY-"
} catch(error) {
print "Error 
Reading p12 : "
println error.
toString()
println error.
getMessage()
print error.
printStackTrace()
throw error
}




This code always result in 
File p12 input stream error :

[Pipeline] echojava.io.FileNotFoundException:  (No such file or 
directory)[Pipeline] echo (No such file or directory)

I could verify that the file exists, but I can't open it.

Any idea will be greatly appreciate.
Many thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/debf2eb3-2c7f-457c-9129-db1d1235e4ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using credentials with certificate

2018-10-04 Thread olivier blanc
I have problems while trying to load pkcs12 file from withCredentials block.
Here is the code I use :

withCredentials(bindings: [

certificate(aliasVariable: 'alias', credentialsId: 'myId', 
keystoreVariable: 'keystoreName', passwordVariable: 'keyPassword')
]) {
def keystoreFormat = 
"PKCS12"
try {

try {
p12file = 
new FileInputStream(keystoreName)
} catch (error) {
println 
"File p12 input stream error :"
println 
error.toString()
println 
error.getMessage()
 print 
error.printStackTrace()
throw error
}

println "P12file 
opened"

try {
keystore = 
KeyStore.getInstance(keystoreFormat)

keystore.load(p12file, keyPassword.toCharArray())
} catch (error) {
println 
"Loading KeyStore :"
println 
error.toString()
println 
error.getMessage()
print 
error.printStackTrace()
throw error
}
def key = 
keystore.getKey(alias, keyPassword.toCharArray())

println "-BEGIN 
PRIVATE KEY-"
println 
key.getEncoded().encodeBase64()
println "-END 
PRIVATE KEY-"
} catch(error) {
print "Error 
Reading p12 : "
println 
error.toString()
println 
error.getMessage()
print 
error.printStackTrace()
throw error
}
  


I always have the following error :

File p12 input stream error : [Pipeline] echojava.io.FileNotFoundException: 
 (No such file or directory)

I verified the keystoreName file and it exists.

Any help will be appreciate.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/afab6cdf-7f41-4269-b629-493501a513b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline build not stopping when stage marked as failed

2018-10-04 Thread Paul D'Ambra
I have a declarative Jenkins pipeline that in a parallel stage runs the 
dependency check plugin. With their support 

 I 
have the plugin configured so that if a certain number of new 
vulnerabilities are detected it fails the build.

However, even though the build is marked as failed in Jenkins the pipeline 
is running on past that stage.

So, the build is marked as failed *and* the artefact has been deployed into 
an environment!

The plugin authors believe this is either the analysis plugin or Jenkins at 
fault. But I don't know how to investigate further. Can anyone here provide 
advice?

Thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f6971139-e1c9-4c63-ae97-fa608d66c6c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.