Re: readMavenPom gone from Pipeline Utility Steps?

2019-01-04 Thread KeithC
I do get a list of valid steps, and readMavenPom was not included among 
them.  Nor does it show up in the pipeline editor.

The same pipeline script worked fine prior to the Pipeline Utlity Steps 
upgrade.  Further, downgrading Pipeline Utility Steps to the previous 
version made the problem go away.


On Friday, January 4, 2019 at 1:23:08 PM UTC-8, Jan Monterrubio wrote:
>
> Do you get a list of valid steps? I’ve found that sometimes I put be wrong 
> dsl construct so the suggested methods will give me less options and I’ll 
> realize I’m not in a step but within a stage or vice versa. 
>
> On Fri, Jan 4, 2019 at 14:35 KeithC > 
> wrote:
>
>> With version 2.2.0 of Pipeline Utility Steps, I appear to be unable to 
>> call "readMavenPom" from my Jenkinsfile.  The build log has an error:
>>
>> java.lang.NoSuchMethodError: No such DSL method 'readMavenPom' found among 
>> steps
>>
>>
>> I can file a bug, but I wanted to verify that I wasn't missing something.
>>
>>
>> -- 
>> 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/5e1f8265-c4e4-4c6b-8c9f-cead83780c3a%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/074a037f-ceb4-4eb1-aa14-590f60ad8711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: readMavenPom gone from Pipeline Utility Steps?

2019-01-04 Thread Jan Monterrubio
Do you get a list of valid steps? I’ve found that sometimes I put be wrong
dsl construct so the suggested methods will give me less options and I’ll
realize I’m not in a step but within a stage or vice versa.

On Fri, Jan 4, 2019 at 14:35 KeithC  wrote:

> With version 2.2.0 of Pipeline Utility Steps, I appear to be unable to
> call "readMavenPom" from my Jenkinsfile.  The build log has an error:
>
> java.lang.NoSuchMethodError: No such DSL method 'readMavenPom' found among 
> steps
>
>
> I can file a bug, but I wanted to verify that I wasn't missing something.
>
>
> --
> 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/5e1f8265-c4e4-4c6b-8c9f-cead83780c3a%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/CADgiF9K_BhgGYJGfOezZ0xiXnkupyaVmh2CetW0EswjXn_%2BwOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unclear how safe workflow-support 3.0 is for upgrades

2019-01-04 Thread Devin Nusbaum
Good question!

> … I believe this means that only runtime
> persistence for running Pipelines has changed, and none of the previously
> existing on-disk state for Pipeline Runs will change. Would that be correct?

Yes, the format of build data for completed Pipelines is unchanged, so you’ll
still be able to access old Pipelines inside of Jenkins after the upgrade.

To get into the details a bit, the file whose format has changed is 
`program.dat`,
which stores the Pipeline program and is used to maintain control flow across
restarts. If you don’t stop a Pipeline during the restart, then after 
restarting, 
Jenkins won’t be able to deserialize `program.dat` back into the original
Pipeline program, so the build will fail. Once a Pipeline completes,
`program.dat` is deleted, hence the recommendation to wait for running
Pipelines to complete or to stop them manually if having running Pipelines fail
after the restart would be a problem for your Jenkins installation.

Hopefully that answers your question, but please let me know if there is 
anything else I can clarify in regards to the upgrade. Any suggestions to 
improve the changelog warning are also welcome.

Thanks,
Devin

> On Jan 4, 2019, at 14:59, R. Tyler Croy  wrote:
> 
> While considering upgrades for ci.jenkins.io, I see that workflow-support is
> now the first Pipeline-related plugin to arrive at 3.0 
> (https://plugins.jenkins.io/workflow-support).
> Hooray! Thanks for the work dnusbaum :)
> 
> From the changelog:
> 
>This update involves incompatible changes to the serialized format of
>Pipeline builds. Any Pipelines that are running when Jenkins is restarted
>to apply this upgrade will fail after the restart. Pipelines will be able
>to resume normally after subsequent restarts.
> 
>To avoid this one-time issue, please stop all running Pipelines or allow
>them to complete before restarting Jenkins when applying this update.
> 
> 
> Since there's a marshalling change going on, I wanted to double check my
> understanding of this change.  I believe this means that only runtime
> persistence for running Pipelines has changed, and none of the previously
> existing on-disk state for Pipeline Runs will change. Would that be correct?
> 
> 
> I'm personally a bit weary of seralization changes, which have bitten me in 
> the
> past, but if this is just about runtime data and no longer term persisted
> information, then I'll happily upgrade post haste! :)
> 
> 
> 
> Cheers
> --
> GitHub:  https://github.com/rtyler
> 
> GPG Key ID: 0F2298A980EE31ACCA0A7825E5C92681BEF6CEA2
> 
> -- 
> 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/20190104195952.pucqh6wo27xxb7d2%40grape.brokenco.de.
> 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/443A7E08-C58E-4B34-A030-23D6620F42F8%40cloudbees.com.
For more options, visit https://groups.google.com/d/optout.


readMavenPom gone from Pipeline Utility Steps?

2019-01-04 Thread KeithC
With version 2.2.0 of Pipeline Utility Steps, I appear to be unable to call 
"readMavenPom" from my Jenkinsfile.  The build log has an error:

java.lang.NoSuchMethodError: No such DSL method 'readMavenPom' found among steps


I can file a bug, but I wanted to verify that I wasn't missing something.


-- 
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/5e1f8265-c4e4-4c6b-8c9f-cead83780c3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unclear how safe workflow-support 3.0 is for upgrades

2019-01-04 Thread R. Tyler Croy
While considering upgrades for ci.jenkins.io, I see that workflow-support is
now the first Pipeline-related plugin to arrive at 3.0 
(https://plugins.jenkins.io/workflow-support).
Hooray! Thanks for the work dnusbaum :)

>From the changelog:

This update involves incompatible changes to the serialized format of
Pipeline builds. Any Pipelines that are running when Jenkins is restarted
to apply this upgrade will fail after the restart. Pipelines will be able
to resume normally after subsequent restarts.

To avoid this one-time issue, please stop all running Pipelines or allow
them to complete before restarting Jenkins when applying this update.


Since there's a marshalling change going on, I wanted to double check my
understanding of this change.  I believe this means that only runtime
persistence for running Pipelines has changed, and none of the previously
existing on-disk state for Pipeline Runs will change. Would that be correct?


I'm personally a bit weary of seralization changes, which have bitten me in the
past, but if this is just about runtime data and no longer term persisted
information, then I'll happily upgrade post haste! :)



Cheers
--
GitHub:  https://github.com/rtyler

GPG Key ID: 0F2298A980EE31ACCA0A7825E5C92681BEF6CEA2

-- 
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/20190104195952.pucqh6wo27xxb7d2%40grape.brokenco.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: Building Jenkins in Eclipse

2019-01-04 Thread Gerry Storm
I finally managed to run Jenkins with a remote debugger using intellij.
cd war; mvnDebug jenkins-dev:run

However I am a little puzzled. I used (remote) debuggers in the past and 
usually the debugger presents the source and offers the user an opportunity 
to set breakpoints, watch-points and so on. I see nothing like this when 
following the instructions. The app just ran and was able to see the 
jenkins start page via the browser.

How do I see the source and set breakpoints just before the app runs?
After all it is just a java application.


On Monday, December 31, 2018 at 9:52:22 AM UTC-8, Gerry Storm wrote:
>
> I have tried to follow instructions in 
> https://wiki.jenkins.io/display/JENKINS/Building+Jenkins:
>
> // check out the workspace
> $ git clone https://github.com/jenkinsci/jenkins.git
> // Download dependencies and build with Maven
> // Note: mvn install may be a prerequisite for other mvn targets
> $ cd jenkins
> $ mvn -Plight-test install
>
> All went fine.
>
> After that I followed instructions in 
> https://wiki.jenkins.io/display/JENKINS/Setting+up+Eclipse+to+build+Jenkins.
>
>
> I tried several times and Eclipse ALWAYS finds errors after it imports the 
> projects. (see attached screenshot).
> I am a newbie so maybe the instructions imply stuff I am not familiar with.
>
> My goals are:
>
>1. Build Jenkins from source in Eclipse
>2. Run it under a debugger so that I can make myself familiar with the 
>flow.
>
>
> Please 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/08ead842-fe10-4708-8c89-5296e272e7d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Move work space in Jenkins File

2019-01-04 Thread vinit ratan
It is giving command not recognized short of error. I can give the complete
error to you after some time.



On Fri, 4 Jan 2019, 20:41 Neil Tingley  What's the error you are getting?
> Cheers,
>
> Neil
>
>
> On Fri, 4 Jan 2019 at 15:07, vinit ratan  wrote:
>
>> Hi Neil,
>>
>> I have already tried the code present in link. However Jenkins file is
>> not accepting the "a href" syntax and therefore it is not working.
>>
>> I have done some research from my end as well before posting in the group
>> 
>>
>> Thanks and Regards
>> Vinit Ratan
>> Automation Test Engineer
>> Infosys Ltd.
>> 8600102248
>>
>>
>>
>> On Fri, 4 Jan 2019, 20:16 Neil Tingley >
>>>
>>> https://stackoverflow.com/questions/30790280/how-to-view-jenkins-workspace-on-a-pipeline-job
>>>
>>> I just googled it
>>>
>>>
>>>
>>> Cheers,
>>>
>>> Neil
>>>
>>>
>>> On Fri, 4 Jan 2019 at 03:57, vinit ratan  wrote:
>>>
 Hi Neil,

 By default when we are using Jenkins Pipeline, in order to see
 workspace we need to follow below steps:-

 Click on build no. => Click On Pipeline Steps=> Click on Allocate Node
 Start link.=> Here uset sees workspace on Left

 However what we need is to have workspace on the project home page the
 way we see it in free style or other non pipeline projects. We do not want
 to go through the whole step mentioned above in order to see the workspace.

 Hope this explains my query in a better way. So if you can please
 respond accordingly.

 Thanks and Regards
 Vinit Ratan
 Automation Test Engineer
 Infosys Ltd.
 8600102248

 On Thu, 3 Jan 2019, 20:52 Neil T >>>
> [image: Boxbe]  This message is
> eligible for Automatic Cleanup! (n...@thump.org) Add cleanup rule
> 
> | More info
> 
> Hi Vinit
>
> The workspace is a file system. The job screen is HTML page.  What you
> are asking makes no sense (to me) unless you mean you want to archive
> artifacts produced by job/pipeline and have the linked in the job details
> screen ? In which case search on 'archiving artifacts'. It's easy with 
> DSL.
>
> On Thursday, 3 January 2019 14:44:54 UTC, vinit ratan wrote:
>>
>> Hi All,
>>
>> Can some one please suggest the code to move work space to job screen
>> in Jenkins file.
>>
>> Thanks and Regards
>> Vinit Ratan
>> Automation Test Engineer
>> Infosys Ltd.
>>
> --
> 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/52fd712d-1cd7-46f1-a5ec-2c411785e08c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 You received this message because you are subscribed to a topic in the
 Google Groups "Jenkins Users" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/jenkinsci-users/RzgAxraKwMQ/unsubscribe
 .
 To unsubscribe from this group and all its topics, 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/CABB%2BumPqLLNCCAibE8mWfBCpK_q3MP4rY7Br16E7h94KSFytPg%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/CA%2BcvzQtce8OnDG-RNs2anMAK89Stu9TXai8ZuONWrdk_4fuYzw%40mail.gmail.com
>>> 

Re: Move work space in Jenkins File

2019-01-04 Thread Neil Tingley
What's the error you are getting?
Cheers,

Neil


On Fri, 4 Jan 2019 at 15:07, vinit ratan  wrote:

> Hi Neil,
>
> I have already tried the code present in link. However Jenkins file is not
> accepting the "a href" syntax and therefore it is not working.
>
> I have done some research from my end as well before posting in the group
> 
>
> Thanks and Regards
> Vinit Ratan
> Automation Test Engineer
> Infosys Ltd.
> 8600102248
>
>
>
> On Fri, 4 Jan 2019, 20:16 Neil Tingley 
>>
>> https://stackoverflow.com/questions/30790280/how-to-view-jenkins-workspace-on-a-pipeline-job
>>
>> I just googled it
>>
>>
>>
>> Cheers,
>>
>> Neil
>>
>>
>> On Fri, 4 Jan 2019 at 03:57, vinit ratan  wrote:
>>
>>> Hi Neil,
>>>
>>> By default when we are using Jenkins Pipeline, in order to see workspace
>>> we need to follow below steps:-
>>>
>>> Click on build no. => Click On Pipeline Steps=> Click on Allocate Node
>>> Start link.=> Here uset sees workspace on Left
>>>
>>> However what we need is to have workspace on the project home page the
>>> way we see it in free style or other non pipeline projects. We do not want
>>> to go through the whole step mentioned above in order to see the workspace.
>>>
>>> Hope this explains my query in a better way. So if you can please
>>> respond accordingly.
>>>
>>> Thanks and Regards
>>> Vinit Ratan
>>> Automation Test Engineer
>>> Infosys Ltd.
>>> 8600102248
>>>
>>> On Thu, 3 Jan 2019, 20:52 Neil T >>
 [image: Boxbe]  This message is
 eligible for Automatic Cleanup! (n...@thump.org) Add cleanup rule
 
 | More info
 
 Hi Vinit

 The workspace is a file system. The job screen is HTML page.  What you
 are asking makes no sense (to me) unless you mean you want to archive
 artifacts produced by job/pipeline and have the linked in the job details
 screen ? In which case search on 'archiving artifacts'. It's easy with DSL.

 On Thursday, 3 January 2019 14:44:54 UTC, vinit ratan wrote:
>
> Hi All,
>
> Can some one please suggest the code to move work space to job screen
> in Jenkins file.
>
> Thanks and Regards
> Vinit Ratan
> Automation Test Engineer
> Infosys Ltd.
>
 --
 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/52fd712d-1cd7-46f1-a5ec-2c411785e08c%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Jenkins Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/jenkinsci-users/RzgAxraKwMQ/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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/CABB%2BumPqLLNCCAibE8mWfBCpK_q3MP4rY7Br16E7h94KSFytPg%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/CA%2BcvzQtce8OnDG-RNs2anMAK89Stu9TXai8ZuONWrdk_4fuYzw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, 

Re: Move work space in Jenkins File

2019-01-04 Thread vinit ratan
Hi Neil,

I have already tried the code present in link. However Jenkins file is not
accepting the "a href" syntax and therefore it is not working.

I have done some research from my end as well before posting in the group 

Thanks and Regards
Vinit Ratan
Automation Test Engineer
Infosys Ltd.
8600102248



On Fri, 4 Jan 2019, 20:16 Neil Tingley 
> https://stackoverflow.com/questions/30790280/how-to-view-jenkins-workspace-on-a-pipeline-job
>
> I just googled it
>
>
>
> Cheers,
>
> Neil
>
>
> On Fri, 4 Jan 2019 at 03:57, vinit ratan  wrote:
>
>> Hi Neil,
>>
>> By default when we are using Jenkins Pipeline, in order to see workspace
>> we need to follow below steps:-
>>
>> Click on build no. => Click On Pipeline Steps=> Click on Allocate Node
>> Start link.=> Here uset sees workspace on Left
>>
>> However what we need is to have workspace on the project home page the
>> way we see it in free style or other non pipeline projects. We do not want
>> to go through the whole step mentioned above in order to see the workspace.
>>
>> Hope this explains my query in a better way. So if you can please
>> respond accordingly.
>>
>> Thanks and Regards
>> Vinit Ratan
>> Automation Test Engineer
>> Infosys Ltd.
>> 8600102248
>>
>> On Thu, 3 Jan 2019, 20:52 Neil T >
>>> [image: Boxbe]  This message is
>>> eligible for Automatic Cleanup! (n...@thump.org) Add cleanup rule
>>> 
>>> | More info
>>> 
>>> Hi Vinit
>>>
>>> The workspace is a file system. The job screen is HTML page.  What you
>>> are asking makes no sense (to me) unless you mean you want to archive
>>> artifacts produced by job/pipeline and have the linked in the job details
>>> screen ? In which case search on 'archiving artifacts'. It's easy with DSL.
>>>
>>> On Thursday, 3 January 2019 14:44:54 UTC, vinit ratan wrote:

 Hi All,

 Can some one please suggest the code to move work space to job screen
 in Jenkins file.

 Thanks and Regards
 Vinit Ratan
 Automation Test Engineer
 Infosys Ltd.

>>> --
>>> 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/52fd712d-1cd7-46f1-a5ec-2c411785e08c%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/RzgAxraKwMQ/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/CABB%2BumPqLLNCCAibE8mWfBCpK_q3MP4rY7Br16E7h94KSFytPg%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/CA%2BcvzQtce8OnDG-RNs2anMAK89Stu9TXai8ZuONWrdk_4fuYzw%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 

Re: Jenkins slaves in multiple kubernetes cluster

2019-01-04 Thread Carlos Sanchez
master can be anywhere, on prem, vm, kubernetes,...
agents launch as pods

On Fri, Jan 4, 2019 at 3:26 PM  wrote:

> Does that mean there will be a pod for master on cluster1 and another pod
> for slave on cluster2?
>
> On Friday, 4 January 2019 14:17:58 UTC, Carlos Sanchez wrote:
>>
>> you can run agents in another cluster. You need to check the logs of both
>> master and pods to see if the pods can't connect back to the master
>>
>> On Fri, Jan 4, 2019 at 3:03 PM  wrote:
>>
>>> Hi,
>>> Not sure if this is even possible using the K8s plugin.
>>> We stood up a new K8s cluster and added its IP in Jenkins master config:
>>> Cloud -> Kubernetes -> Kubernetes URL.
>>> Tested Connection is OK.
>>>
>>> Filled the Jenkins URL with the Jenkins master IP, but when launching
>>> jobs, they're just stuck to the queue compared to running master/slave in a
>>> single K8s cluster.
>>>
>>> Q: Is it even possible to run master on one K8s cluster and launch
>>> slaves on different clusters?
>>> Or the plugin is designed to run master and slaves on the same cluster?
>>>
>>> Thanks,
>>> Don
>>>
>>> --
>>> 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/590802bf-e490-40ec-b7b8-21e090c2432e%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/83c4bd85-09bf-4272-b11d-6857fc217f6d%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/CALHFn6My7LCNTWEdo%2BAjhti42PiXiwVYzi6%2BrqU%2BxQ1zS29aAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Move work space in Jenkins File

2019-01-04 Thread Neil Tingley
https://stackoverflow.com/questions/30790280/how-to-view-jenkins-workspace-on-a-pipeline-job

I just googled it



Cheers,

Neil


On Fri, 4 Jan 2019 at 03:57, vinit ratan  wrote:

> Hi Neil,
>
> By default when we are using Jenkins Pipeline, in order to see workspace
> we need to follow below steps:-
>
> Click on build no. => Click On Pipeline Steps=> Click on Allocate Node
> Start link.=> Here uset sees workspace on Left
>
> However what we need is to have workspace on the project home page the way
> we see it in free style or other non pipeline projects. We do not want to
> go through the whole step mentioned above in order to see the workspace.
>
> Hope this explains my query in a better way. So if you can please
> respond accordingly.
>
> Thanks and Regards
> Vinit Ratan
> Automation Test Engineer
> Infosys Ltd.
> 8600102248
>
> On Thu, 3 Jan 2019, 20:52 Neil T 
>> [image: Boxbe]  This message is eligible
>> for Automatic Cleanup! (n...@thump.org) Add cleanup rule
>> 
>> | More info
>> 
>> Hi Vinit
>>
>> The workspace is a file system. The job screen is HTML page.  What you
>> are asking makes no sense (to me) unless you mean you want to archive
>> artifacts produced by job/pipeline and have the linked in the job details
>> screen ? In which case search on 'archiving artifacts'. It's easy with DSL.
>>
>> On Thursday, 3 January 2019 14:44:54 UTC, vinit ratan wrote:
>>>
>>> Hi All,
>>>
>>> Can some one please suggest the code to move work space to job screen in
>>> Jenkins file.
>>>
>>> Thanks and Regards
>>> Vinit Ratan
>>> Automation Test Engineer
>>> Infosys Ltd.
>>>
>> --
>> 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/52fd712d-1cd7-46f1-a5ec-2c411785e08c%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/RzgAxraKwMQ/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CABB%2BumPqLLNCCAibE8mWfBCpK_q3MP4rY7Br16E7h94KSFytPg%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/CA%2BcvzQtce8OnDG-RNs2anMAK89Stu9TXai8ZuONWrdk_4fuYzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins slaves in multiple kubernetes cluster

2019-01-04 Thread don . capito . rmg
Does that mean there will be a pod for master on cluster1 and another pod 
for slave on cluster2?

On Friday, 4 January 2019 14:17:58 UTC, Carlos Sanchez wrote:
>
> you can run agents in another cluster. You need to check the logs of both 
> master and pods to see if the pods can't connect back to the master
>
> On Fri, Jan 4, 2019 at 3:03 PM > wrote:
>
>> Hi,
>> Not sure if this is even possible using the K8s plugin.
>> We stood up a new K8s cluster and added its IP in Jenkins master config: 
>> Cloud -> Kubernetes -> Kubernetes URL. 
>> Tested Connection is OK.
>>
>> Filled the Jenkins URL with the Jenkins master IP, but when launching 
>> jobs, they're just stuck to the queue compared to running master/slave in a 
>> single K8s cluster.
>>
>> Q: Is it even possible to run master on one K8s cluster and launch slaves 
>> on different clusters?
>> Or the plugin is designed to run master and slaves on the same cluster?
>>
>> Thanks,
>> Don
>>
>> -- 
>> 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/590802bf-e490-40ec-b7b8-21e090c2432e%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/83c4bd85-09bf-4272-b11d-6857fc217f6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins slaves in multiple kubernetes cluster

2019-01-04 Thread Carlos Sanchez
you can run agents in another cluster. You need to check the logs of both
master and pods to see if the pods can't connect back to the master

On Fri, Jan 4, 2019 at 3:03 PM  wrote:

> Hi,
> Not sure if this is even possible using the K8s plugin.
> We stood up a new K8s cluster and added its IP in Jenkins master config:
> Cloud -> Kubernetes -> Kubernetes URL.
> Tested Connection is OK.
>
> Filled the Jenkins URL with the Jenkins master IP, but when launching
> jobs, they're just stuck to the queue compared to running master/slave in a
> single K8s cluster.
>
> Q: Is it even possible to run master on one K8s cluster and launch slaves
> on different clusters?
> Or the plugin is designed to run master and slaves on the same cluster?
>
> Thanks,
> Don
>
> --
> 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/590802bf-e490-40ec-b7b8-21e090c2432e%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/CALHFn6P%3DE%3D3018-mW8uS6dzSLD20LtMV8xSUsOCi95YF5QePtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins slaves in multiple kubernetes cluster

2019-01-04 Thread don . capito . rmg
Hi,
Not sure if this is even possible using the K8s plugin.
We stood up a new K8s cluster and added its IP in Jenkins master config: 
Cloud -> Kubernetes -> Kubernetes URL. 
Tested Connection is OK.

Filled the Jenkins URL with the Jenkins master IP, but when launching jobs, 
they're just stuck to the queue compared to running master/slave in a 
single K8s cluster.

Q: Is it even possible to run master on one K8s cluster and launch slaves 
on different clusters?
Or the plugin is designed to run master and slaves on the same cluster?

Thanks,
Don

-- 
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/590802bf-e490-40ec-b7b8-21e090c2432e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'make' exit code is ignored in declarative script

2019-01-04 Thread Neil T
sh *returnStatus: true*, script: 'echo $foo'

On Thursday, 3 January 2019 17:19:40 UTC, David Aldrich wrote:
>
> I have a declarative script that builds a C++ application on multiple 
> agents in parallel.  A stage looks like:
>
> stage('build') {
> parallel {
> stage('znsim08') {
> agent { label "znsim08" }
>
> steps {
> sh '''
> make
> '''
>
> recordIssues minimumSeverity: 'HIGH', tools: 
> [gcc4(id: 'centos5-warnings', name: 'Centos 5', pattern: 'build.log')]
>
> archiveArtifacts 'build.log'
> }
> }
> etc.
>
> I find that if make fails:
>
> make[1]: *** [_gnuRelease/SINRCalculation.o] Error 1
> make[1]: Leaving directory `/data/hudsonuser/workspace/gcc_all_versions/'
> make: *** [../StarLibs/] Error 2
>
>
> the stage still succeeds.  make's exit code seems to be ignored.
>
>
> What am I missing?
>
>

-- 
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/d3a1af0d-1c13-4d39-8fe9-8d2a66dae32d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

2019-01-04 Thread Ujjawal Khare
Hello,

Me too facing same issue. Test mail works fine but when run build, i get 
"Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any 
email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, ayuoj...@gmail.com wrote:
>
> Jim,
>
> Did you find anything other than changing smtp value. I am facing same 
> issue and got only one smtp. All my test emails are working but its 
> throwing error once build done in jenkins. 
>
> On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
>>
>> I have managed to find a combination that seems to work. I stopped using 
>> the outlook based smtp server and simply used the default server running on 
>> the localhost, and one email was successfully delivered. Note that we have 
>> been using the outlook smtp server continuously for months, and all sent 
>> multiple test emails through it today, yet that was the only thing I 
>> changed in order to get a successful email. I'll do some more testing and 
>> reply back if I learn anything more specific about the underlying problem. 
>>
>>
>> On Tue, Jul 15, 2014 at 3:23 PM, Slide  wrote:
>>
>>> Ok, let's start over with this. The server is sending back a response 
>>> that says that engineering_p...@redsealnetworks.com is invalid, but 
>>> JavaMail thinks the address is valid. This can happen when either the 
>>> sender or recipient is invalid, can you try the -Dmail.debug=true option 
>>> that I mentioned? Also, can you post your global config.xml file (after you 
>>> scrub it for company information). 
>>>
>>>
>>> On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd  wrote:
>>>
 I don't think that is the problem. I can send test emails from Jenkins 
 using the "Test configuration by sending test e-mail" setting under 
 the global setting for E-mail Notification. And I can also send emails 
 from the machine without authentication using the mailx command:

 mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < 
 test.txt

 Where the smtp.ourcompany.com address is the same address configured 
 in jenkins.

 Finally, we have had emails work in the past. The problems have all 
 come after upgrading Jenkins and various plugins in order to be able to 
 use 
 Git, which was not supported on the ancient version of Jenkins that we 
 were 
 previously using. Even after the upgrade, we were able to have some mails 
 delivered, albeit there were other problems. For more info, see the thread 
 I started on June 13th:

 https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4


 On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater  
 wrote:

> I would start by asking the group who administers the SMTP server you 
> are talking to. Given that the Invalid Address error is being returned by 
> the server, perhaps there is some policy in place on the SMTP server that 
> prevents you sending to that address?
>
> Richard.
>
>
> On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd  wrote:
>
>> We have a Jenkins installation that has undergone several changes in 
>> the last couple months as we transition from using Perforce to using Git 
>> as 
>> our SCM. We've had numerous problems with email-ext during the 
>> transition, 
>> but we may be getting close to a solution.
>>
>> We're currently using the most recent LTS build (v1.554.3) and latest 
>> email-ext (v2.38.1). The error that is preventing Build Result email now 
>> is 
>> rather strange:
>>
>> Adding recipients from project recipient list
>> Adding recipients from trigger recipient list
>> Successfully created MimeMessage
>> Sending email to: engineering_p...@redsealnetworks.com
>> Error sending to the following VALID addresses: 
>> engineering_p...@redsealnetworks.com
>> SendFailedException message: 501 5.1.7 Invalid address
>>
>>
>> The listed recipient email address is definitely valid. I suppose the 
>> error might be indicating that the sender email address is invalid, but 
>> it's not obvious to me how to follow up on that hypothesis. Can anyone 
>> 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-use...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe
> .
> To unsubscribe from this group and all