JCasC: Fail Jenkins boot when problem occurs with applying the YAML

2019-01-10 Thread Oliver Gondža
Is there a way to get the Jenkins process aborted when JCasC fails to 
apply the config so one do not have to analyze logs to tell success from 
failure? Thanks!


--
oliver

--
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/01f04b62-1194-be27-220a-f614f0e74c62%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Webhook creation with ngrok and CI with Jenkins

2019-01-10 Thread Gouri S
I am doing some research with Jenkins. I want to use CI with GitHub for 
Jenkins job. I used ngrok utility to create public url. I tried creating 
WebHook in GitHub but always get error as Invalid HTTP response 403. I also 
get No valid crumb was included in the request. I tried changing CSRF for 
Jenkins as was mentioned in some posts. But nothing works. Please let me 
know if I am missing anything.

-- 
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/de723ca7-ae2e-40d2-b480-02030d595901%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-10 Thread Ujjawal Khare
Do you mean Extended email configuration inside  Manage Jenkins -->
Configure System ?
Please see the attached configuration. Its already there but still doesn't
work.

On Thu, Jan 10, 2019 at 9:55 PM Slide  wrote:

> You need to setup the server settings in the  Extended E-mail Notification
> section of the global configuration if you are using that configuration in
> your job.
>
> On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare 
> wrote:
>
>> Here are attached configuration. When put on DEBUG it validates
>> recipients email and prints :
>>
>> Error sending to the following VALID addresses; ujjawal.kh...@xyz.com
>>
>> SendFailedException message: 501 5.1.7 Invalid Address
>>
>> Note :
>> 1. sender and reciever emails are correct.
>> 2. My organization smtp server doesn't require smtp authentication and
>> ssl.
>> 3. Test mail works fine and received.
>>
>> On Thu, 10 Jan 2019, 18:53 Slide >
>>> Can you give more information about what mail server you are using and
>>> so forth? Also, if you can enable debug mode in the global config area for
>>> email-ext (Extended Email Plugin) and post the log with secure information
>>> redacted, it might help.
>>>
>>> On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare 
>>> wrote:
>>>
 Can any one guide me how to fix this issue "SendFailedException
 message: 501 5.1.7 Invalid address" ?

 Test email was success but fails with error when i execute the build.


 Regards,
 Ujjawal

 On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
>
> 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 

Re: CLI command to start jenkins job with default and overridenparameters

2019-01-10 Thread Vicki Kozel
Thank you Daniel! Do you know if there is a way to pass a file parameter 
this way?


On Thursday, January 10, 2019 at 1:51:03 AM UTC-8, Daniel Butler wrote:
>
> Hi Vicki,
>
> According to https://wiki.jenkins.io/display/JENKINS/Parameterized+Build, 
> for buildWithParameters you should use URL query params to pass the values.
>
>  
>
> To use your example:
>
> curl -v https://jenkins/job/JobName/buildWithParameters?targ_env=dev 
>  --user userName:userToken
>
>  
>
>  
>
> Regards,
>
> Daniel
>
>  
>
> *From: *Vicki Kozel 
> *Sent: *10 January 2019 03:37
> *To: *Jenkins Users 
> *Subject: *CLI command to start jenkins job with default and 
> overridenparameters
>
>  
>
> Hello,
>
> I am having trouble with combining default and overriden parameters when 
> invoking jenkins jobs through remote CLI command.  
>
>  
>
> It  looks like the following invocation passes command line parameters to 
> a job just fine, but ignores the default parameters:
>
> curl -v https://jenkins/job/JobName/build -F json='{"parameter": 
> [{"name": "targ_env", "value": "dev"}]}' --user userName:userToken
>
>  
>
>  
>
> and the invocation on buildWithParameters api does the opposite - ignores 
> the passed parameters and sets all the defaults correctly:
>
>  
>
> curl -v https://jenkins/job/JobName/buildWithParameters -F 
> json='{"parameter": [{"name": "targ_env", "value": "dev"}]}' --user 
> userName:userToken
>
>  
>
> Is there an API that can combine two sets of parameters?
>
>  
>
> Thank you!!
>
>  
>
> -- 
> 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/27053cad-e82f-4053-b76c-ebfdf5781877%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/288e425a-37e4-4ad0-a26f-3ae3aa37a20f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Faad Sayaou
Hi everyone. thank you all for your wonderful replies.
First of all, I will like to have a two separate pipelines in order to 
manage builds from feature branches as well as to make sure the right and 
stable version is uploaded to my nexus repository. I tried Denis's approach 
by creating two separate pipelines and copy build results from the first to 
the second if stable, but I had problems doing this because I am still new 
in jenkins. 
 could you suggest how this can be done?

On Thursday, 10 January 2019 20:11:48 UTC+1, Adrien Lecharpentier wrote:
>
> I agree with Arnaud. 
>
> However, having an input means that if you cancel the input, you'll have 
> aborted the build. So, even if the first 3 steps are successful, you'll 
> have an aborted build.
>
> You could try/catch the input, but that will complexify the pipeline imo.
>
> Could you explain why you need to conditionally upload the results and not 
> doing it each time it's successful? If you have some concerns about the 
> "space usage", you could make sure to replace the same package each time, 
> or configure nexus to have some cleanup tasks. 
>
> Le jeu. 10 janv. 2019 à 19:49, Arnaud bourree  > a écrit :
>
>> Hi,
>>
>> Denis answer is good but why are you doing that?
>> You said if pipeline #1 succeed, you run pipeline #2 which redo same 
>> steps including git checkout then push result to nexus. 
>> But you don't have guarantee that git checkout will fetch same source 
>> code. 
>> Why not add input validation on nexus stage in single pipeline?
>>
>> Arnaud 
>>
>> Le jeu. 10 janv. 2019 à 17:54, Denis > a 
>> écrit :
>>
>>> You can create two pipeline jobs and have the first one trigger the 
>>> second one as a downstream job.
>>> i.e in a finally block you can check the result of the build and trigger 
>>> the pipeline that publish to nexus 
>>>
>>> On January 10, 2019 5:30:03 PM GMT+02:00, Faad Sayaou >> > wrote:

 I was thinking maybe doing something like this would help but 
 unfortunately not

 node {
 stages

 }

 node2 {

 stages

 }


 but it is viewed by jenkins as a single pipeline. I am using the 
 scripted pipeline syntax

 On Thursday, 10 January 2019 16:25:11 UTC+1, Faad Sayaou wrote:
>
> Hi everyone,
> I have this scenario i would like to implement but i don not know if 
> that is possible within a single jenkinsfile.
> My idea was to have 2 pipelines
>
> 1st pipeline
>  -git checkout
>  -build
>  -Test
>
> 2nd pipeline
>
> if first build from the first pipeline was successful, then
>
> -re-do the first 3 stages from 1st pipeline
> -zip the build results
> -and push to nexus
>
> ..is this however feasible within a single jenkinsfile?
>
> thanks
>
>
>>> -- 
>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>
>>> -- 
>>> 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/97F68F8F-DB51-4C09-B894-D8A57A30DFB0%40gmail.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/CAESUf_AYVtmQN%2BhinWSB-DgLtZ3QKTHYn0woYeEHQLfEwiBw4Q%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Adrien Lecharpentier
>

-- 
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/29186f5a-c024-4f72-a474-1ebc95e23594%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Adrien Lecharpentier
I agree with Arnaud.

However, having an input means that if you cancel the input, you'll have
aborted the build. So, even if the first 3 steps are successful, you'll
have an aborted build.

You could try/catch the input, but that will complexify the pipeline imo.

Could you explain why you need to conditionally upload the results and not
doing it each time it's successful? If you have some concerns about the
"space usage", you could make sure to replace the same package each time,
or configure nexus to have some cleanup tasks.

Le jeu. 10 janv. 2019 à 19:49, Arnaud bourree  a
écrit :

> Hi,
>
> Denis answer is good but why are you doing that?
> You said if pipeline #1 succeed, you run pipeline #2 which redo same steps
> including git checkout then push result to nexus.
> But you don't have guarantee that git checkout will fetch same source
> code.
> Why not add input validation on nexus stage in single pipeline?
>
> Arnaud
>
> Le jeu. 10 janv. 2019 à 17:54, Denis  a écrit :
>
>> You can create two pipeline jobs and have the first one trigger the
>> second one as a downstream job.
>> i.e in a finally block you can check the result of the build and trigger
>> the pipeline that publish to nexus
>>
>> On January 10, 2019 5:30:03 PM GMT+02:00, Faad Sayaou 
>> wrote:
>>>
>>> I was thinking maybe doing something like this would help but
>>> unfortunately not
>>>
>>> node {
>>> stages
>>>
>>> }
>>>
>>> node2 {
>>>
>>> stages
>>>
>>> }
>>>
>>>
>>> but it is viewed by jenkins as a single pipeline. I am using the
>>> scripted pipeline syntax
>>>
>>> On Thursday, 10 January 2019 16:25:11 UTC+1, Faad Sayaou wrote:

 Hi everyone,
 I have this scenario i would like to implement but i don not know if
 that is possible within a single jenkinsfile.
 My idea was to have 2 pipelines

 1st pipeline
  -git checkout
  -build
  -Test

 2nd pipeline

 if first build from the first pipeline was successful, then

 -re-do the first 3 stages from 1st pipeline
 -zip the build results
 -and push to nexus

 ..is this however feasible within a single jenkinsfile?

 thanks


>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>> --
>> 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/97F68F8F-DB51-4C09-B894-D8A57A30DFB0%40gmail.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/CAESUf_AYVtmQN%2BhinWSB-DgLtZ3QKTHYn0woYeEHQLfEwiBw4Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Adrien Lecharpentier

-- 
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/CAKwJSvz1pHn5n6MDDQMN7q6a0QXRhzZ5zKgznv5gq9Ru3v7sVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Problem with TAP Plugin

2019-01-10 Thread 'aaron Scholz' via Jenkins Users
Hi,

i am running a jenkins master on a ubuntu machine and a slave agent on a 
Windows 10 PC.
While running that pipeline, I see that "archiveArtifacts" works as 
expected, but the TapPublisher fails with
an exception.
Is there something wrong in my pipeline script? Or is this a plugin bug?

Any hint for solving this issue?

Maik

My pipeline

stage('integrationtest') {

steps {
dir("$workspace/some_directory") { 

script {

bat "make mytest" // run my tests and write result 
to tap report
archiveArtifacts "*.tap" 

step([$class: "TapPublisher", testResults: "*.tap" 
])

}

}

}
}


Console:
...

Archiviere Artefakte

[Pipeline] step

TAP Reports Processing: START

Looking for TAP results report in workspace using pattern: *.tap

Saving reports...

java.io.IOException: Failed to copy C:\prj\jenkins\workspace\MYBUILD\
some_directory\mytest.tap to C:/prj/jenkins/workspace/MYBUILD/some_directory
/mytest.tap

at hudson.FilePath.copyTo(FilePath.java:2234)

at org.tap4j.plugin.TapPublisher.saveReports(TapPublisher.java:567)

at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:404)

at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:371)

at 
org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)

at 
org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)

at 
org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51)

at hudson.security.ACL.impersonate(ACL.java:290)

at 
org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48)

at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.nio.file.AccessDeniedException: /C:

at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)

at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at 
sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)

at java.nio.file.Files.createDirectory(Files.java:674)

at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)

at java.nio.file.Files.createDirectories(Files.java:767)

at hudson.FilePath.mkdirs(FilePath.java:3273)

at hudson.FilePath.write(FilePath.java:2094)

at hudson.FilePath.copyTo(FilePath.java:2230)

... 13 more
Failed to save TAP reports

-- 
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/763a964d-990c-4c0f-a693-2f4ca8bff055%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Arnaud bourree
Hi,

Denis answer is good but why are you doing that?
You said if pipeline #1 succeed, you run pipeline #2 which redo same steps
including git checkout then push result to nexus.
But you don't have guarantee that git checkout will fetch same source code.
Why not add input validation on nexus stage in single pipeline?

Arnaud

Le jeu. 10 janv. 2019 à 17:54, Denis  a écrit :

> You can create two pipeline jobs and have the first one trigger the second
> one as a downstream job.
> i.e in a finally block you can check the result of the build and trigger
> the pipeline that publish to nexus
>
> On January 10, 2019 5:30:03 PM GMT+02:00, Faad Sayaou 
> wrote:
>>
>> I was thinking maybe doing something like this would help but
>> unfortunately not
>>
>> node {
>> stages
>>
>> }
>>
>> node2 {
>>
>> stages
>>
>> }
>>
>>
>> but it is viewed by jenkins as a single pipeline. I am using the scripted
>> pipeline syntax
>>
>> On Thursday, 10 January 2019 16:25:11 UTC+1, Faad Sayaou wrote:
>>>
>>> Hi everyone,
>>> I have this scenario i would like to implement but i don not know if
>>> that is possible within a single jenkinsfile.
>>> My idea was to have 2 pipelines
>>>
>>> 1st pipeline
>>>  -git checkout
>>>  -build
>>>  -Test
>>>
>>> 2nd pipeline
>>>
>>> if first build from the first pipeline was successful, then
>>>
>>> -re-do the first 3 stages from 1st pipeline
>>> -zip the build results
>>> -and push to nexus
>>>
>>> ..is this however feasible within a single jenkinsfile?
>>>
>>> thanks
>>>
>>>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> --
> 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/97F68F8F-DB51-4C09-B894-D8A57A30DFB0%40gmail.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/CAESUf_AYVtmQN%2BhinWSB-DgLtZ3QKTHYn0woYeEHQLfEwiBw4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Denis
You can create two pipeline jobs and have the first one trigger the second one 
as a downstream job.
i.e in a finally block you can check the result of the build and trigger the 
pipeline that publish to nexus 

On January 10, 2019 5:30:03 PM GMT+02:00, Faad Sayaou  wrote:
>I was thinking maybe doing something like this would help but
>unfortunately 
>not
>
>node {
>stages
>
>}
>
>node2 {
>
>stages
>
>}
>
>
>but it is viewed by jenkins as a single pipeline. I am using the
>scripted 
>pipeline syntax
>
>On Thursday, 10 January 2019 16:25:11 UTC+1, Faad Sayaou wrote:
>>
>> Hi everyone,
>> I have this scenario i would like to implement but i don not know if
>that 
>> is possible within a single jenkinsfile.
>> My idea was to have 2 pipelines
>>
>> 1st pipeline
>>  -git checkout
>>  -build
>>  -Test
>>
>> 2nd pipeline
>>
>> if first build from the first pipeline was successful, then
>>
>> -re-do the first 3 stages from 1st pipeline
>> -zip the build results
>> -and push to nexus
>>
>> ..is this however feasible within a single jenkinsfile?
>>
>> 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/0a680aab-e762-45f4-bd74-7098f5977afa%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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/97F68F8F-DB51-4C09-B894-D8A57A30DFB0%40gmail.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-10 Thread Slide
You need to setup the server settings in the  Extended E-mail Notification
section of the global configuration if you are using that configuration in
your job.

On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare 
wrote:

> Here are attached configuration. When put on DEBUG it validates recipients
> email and prints :
>
> Error sending to the following VALID addresses; ujjawal.kh...@xyz.com
>
> SendFailedException message: 501 5.1.7 Invalid Address
>
> Note :
> 1. sender and reciever emails are correct.
> 2. My organization smtp server doesn't require smtp authentication and ssl.
> 3. Test mail works fine and received.
>
> On Thu, 10 Jan 2019, 18:53 Slide 
>> Can you give more information about what mail server you are using and so
>> forth? Also, if you can enable debug mode in the global config area for
>> email-ext (Extended Email Plugin) and post the log with secure information
>> redacted, it might help.
>>
>> On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare 
>> wrote:
>>
>>> Can any one guide me how to fix this issue "SendFailedException
>>> message: 501 5.1.7 Invalid address" ?
>>>
>>> Test email was success but fails with error when i execute the build.
>>>
>>>
>>> Regards,
>>> Ujjawal
>>>
>>> On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:

 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 

Re: Kubernetes default jnlp container

2019-01-10 Thread Maciej Gąsiorowski
Thanks a lot ;)

W dniu czwartek, 10 stycznia 2019 10:36:35 UTC+1 użytkownik Carlos Sanchez 
napisał:
>
> You have to create a default PodTemplate and then put its name in the 
> field "Defaults Provider Template Name" in settings
>
> On Thu, Jan 10, 2019 at 7:56 AM Maciej Gąsiorowski <
> maciej.m.g...@gmail.com > wrote:
>
>> Hi,
>>
>> It is possible to set custom default jnlp container (from private repo) 
>> for all jobs, without configuring him in all pipelines used in instance? 
>>
>> I tried configure it in jenkins settings, but this don't work, job 
>> allways tried to pull imgage from hub.docker.
>>
>> Thanks,
>> Maciej
>>
>> -- 
>> 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/bf86a73e-3a1c-42d0-9c98-7b9a06fdd0c6%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/5d528443-45c4-49d2-a60a-f0cc80b4cf88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Faad Sayaou
I was thinking maybe doing something like this would help but unfortunately 
not

node {
stages

}

node2 {

stages

}


but it is viewed by jenkins as a single pipeline. I am using the scripted 
pipeline syntax

On Thursday, 10 January 2019 16:25:11 UTC+1, Faad Sayaou wrote:
>
> Hi everyone,
> I have this scenario i would like to implement but i don not know if that 
> is possible within a single jenkinsfile.
> My idea was to have 2 pipelines
>
> 1st pipeline
>  -git checkout
>  -build
>  -Test
>
> 2nd pipeline
>
> if first build from the first pipeline was successful, then
>
> -re-do the first 3 stages from 1st pipeline
> -zip the build results
> -and push to nexus
>
> ..is this however feasible within a single jenkinsfile?
>
> 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/0a680aab-e762-45f4-bd74-7098f5977afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Faad Sayaou
Hi everyone,
I have this scenario i would like to implement but i don not know if that 
is possible within a single jenkinsfile.
My idea was to have 2 pipelines

1st pipeline
 -git checkout
 -build
 -Test

2nd pipeline

if first build from the first pipeline was successful, then

-re-do the first 3 stages from 1st pipeline
-zip the build results
-and push to nexus

..is this however feasible within a single jenkinsfile?

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/a301358d-d689-4a19-b5ba-b4cf0efd9043%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How can I find specific text in console output and get ID of log in pipeline?

2019-01-10 Thread Viacheslav Dubrovskyi

Hi.

I use Rich Text Plugin for generate own result table in build.
Before version 2.26 in https://plugins.jenkins.io/workflow-job it was 
possible to use grep in job folder for find specific text in console 
output and get log ID.


For example:

exec = """
LOG_PATH="$JENKINS_HOME/jobs/test_job/branches/${NameMangler.apply(env.BRANCH_NAME)}/builds/$BUILD_ID/"
  echo "${BUILD_URL}execution/node/\$(grep -l -w "Run 
TESTENV=TestEnv_${e}" "\$LOG_PATH"*.log 2>/dev/null | sort -r -V | head 
-n1 | xargs -r basename | sed 's/\\.log//')/log/"

"""
stepURL=sh ( script: exec, returnStdout: true).trim()
// result: 
https://localhost/job/test_job/job/master/4889/execution/node/3671/log/


But after the changes in workflow-job-plugin-2.26 this was no longer 
possible, since the log storage format has changed 
(https://github.com/jenkinsci/jep/blob/master/jep/210/README.adoc).


Please help me, how can I find specific text in console output and get 
ID of log?


Thank you.

--
WBD,
Viacheslav Dubrovskyi


--
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/0407e3c0-6b3e-c670-fb5b-c762d055e624%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


smime.p7s
Description: Криптографическая подпись S/MIME


Re: Files sourced on pipeline shell step

2019-01-10 Thread Neil T


On Wednesday, 9 January 2019 09:19:25 UTC, Kamil Dzierżanowski wrote:
>
> Hello,
>
> I'm trying to determine, which (if any) files are sourced by the shell, in 
> which commands specified in "sh" pipeline step are executed. I need to make 
> sure the NVM (Node Version Manager) is sourced everytime this step is used.
> I tried numerous dot-files for the user the Jenkins agent is using, as 
> well as the /etc/profile, but none works. I'll be grateful for any hints or 
> for pointing me to an existing answer (I failed to find any).
>
> Kamil
>

Did you try the nvm plugin 
? https://wiki.jenkins.io/display/JENKINS/Nvm+Wrapper+Plugin

 

-- 
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/3abb354f-ac77-4b2a-9dee-fb5be80838bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-01-10 Thread roey . azroel
Fabio,

Did you find the solution for this issue or the root cause?

Thanks
Roey

On Sunday, August 26, 2018 at 12:12:27 PM UTC+3, fabio...@singlepoint.ie 
wrote:
>
> Interesting that if I have a loop with some activity as follows, the job 
> completes successfully, so it seems to be a constraint of 60 seconds of 
> inactivity perhaps between the agent and the jnlp?
>
> for i in 1 2 3 4 5
> do
>   echo "Looping ... number $i"
>   sleep 50
> done
>
>
> On Sunday, August 26, 2018 at 9:52:17 AM UTC+1, fabio...@singlepoint.ie 
> wrote:
>>
>> Hi Mark, thanks for the response.
>>
>> Yes, the pod meets the requirements:
>> - I haven't provided a jnlp container
>> - cat is the command
>> - tty is enabled
>> - Additional default container: maven:3.5.4-jdk-8 (tried different ones)
>>
>> What I've observed:
>> - A build step with a sleep of 60 seconds always works
>> - A build step with a sleep of 70 seconds always fails
>>
>> I was wondering, could be  a 60 seconds timeout in either the JNLP or 
>> somewhere else?
>>  
>>
>> On Sunday, August 26, 2018 at 12:02:14 AM UTC+1, Mark Waite wrote:
>>>
>>> Does the pod template meet the Kubernetes plugin constraints 
>>>  mentioned 
>>> in readme? Specifically, is ttyEnabled and is there a long-running process 
>>> that will allow the pod to continue running until the job completes?
>>>
>>> On Sat, Aug 25, 2018 at 4:58 PM  wrote:
>>>
 I'm using Kubernetes plugin 1.12.3

 The plugin works well, but whenever the agent does streams the log to 
 the master, it causes a connection exception as follows.
 To reproduce, simply create a free style job, restrict to run on the 
 kubernetes pod, and add a step to sleep for 300 seconds.


 FATAL: command execution failed
 java.nio.channels.ClosedChannelException
at 
 org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
at 
 org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
at 
 jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at 
 jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
 Caused: java.io.IOException: Backing channel 'JNLP4-connect connection 
 from ip-192-168-247-3.us-west-2.compute.internal/192.168.247.3:23684' is 
 disconnected.
at 
 hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:214)
at 
 hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)
at com.sun.proxy.$Proxy110.isAlive(Unknown Source)
at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1137)
at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1129)
at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:155)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
 hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1798)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
 FATAL: Unable to delete script file /tmp/jenkins5788393309854271460.sh
 java.nio.channels.ClosedChannelException
at 
 org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
at 
 org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)
at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
at 
 jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at 
 jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
 Caused: hudson.remoting.ChannelClosedException: 

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

2019-01-10 Thread Slide
Can you give more information about what mail server you are using and so
forth? Also, if you can enable debug mode in the global config area for
email-ext (Extended Email Plugin) and post the log with secure information
redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare 
wrote:

> Can any one guide me how to fix this issue "SendFailedException message:
> 501 5.1.7 Invalid address" ?
>
> Test email was success but fails with error when i execute the build.
>
>
> Regards,
> Ujjawal
>
> On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
>>
>> 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 

Everytime I need to upgrade jenkins when restart docker container

2019-01-10 Thread Charlie Cheng
Correct

Hello:


I use jenkins docker image to run the jenkins, but Everytime I stop and rm 
the docker container , next time when I start it again, I need upgrade 
jenkins, looks like below:


*Dependency errors:*
Some plugins could not be loaded due to unsatisfied dependencies. Fix these 
issues and restart Jenkins to restore the functionality provided by these 
plugins.
Pipeline version 2.6You must update Jenkins from v2.121.2 to v2.130 or 
later to run this plugin.Folders Plugin version 6.7You must update Jenkins 
from v2.121.2 to v2.130 or later to run this plugin.


my docker run shell command is :


docker run \
--rm \
-u root \
-d \
-p 8080:8080 \
-v /Users//Github/245-docker_jenkins_blueocean/data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /Users//Github/245-docker_jenkins_blueocean/reports:/reports \
jenkinsci/blueocean


and I always use this command to restart jenkins.


docker stop jenkinDockerContainerID
docker start jenkinDockerContainerID


-- 
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/6d8b741f-9ad8-4cac-9ca3-a16182c6469c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NoRouteToHostException when trying to connect to a Jenkins URL API from a pipeline

2019-01-10 Thread SysInt
Thank you all for your help, 
I'm doing to follow the advice posted and keep you updated.

-- 
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/d3f214f9-3a9a-4484-806a-472a70c06a96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: CLI command to start jenkins job with default and overridenparameters

2019-01-10 Thread Daniel Butler
Hi Vicki,
According to https://wiki.jenkins.io/display/JENKINS/Parameterized+Build, for 
buildWithParameters you should use URL query params to pass the values.

To use your example:

curl -v https://jenkins/job/JobName/buildWithParameters?targ_env=dev  --user 
userName:userToken


Regards,
Daniel

From: Vicki Kozel
Sent: 10 January 2019 03:37
To: Jenkins Users
Subject: CLI command to start jenkins job with default and overridenparameters

Hello,
I am having trouble with combining default and overriden parameters when 
invoking jenkins jobs through remote CLI command.  

It  looks like the following invocation passes command line parameters to a job 
just fine, but ignores the default parameters:
curl -v https://jenkins/job/JobName/build -F json='{"parameter": [{"name": 
"targ_env", "value": "dev"}]}' --user userName:userToken


and the invocation on buildWithParameters api does the opposite - ignores the 
passed parameters and sets all the defaults correctly:

curl -v https://jenkins/job/JobName/buildWithParameters -F json='{"parameter": 
[{"name": "targ_env", "value": "dev"}]}' --user userName:userToken

Is there an API that can combine two sets of parameters?

Thank you!!

-- 
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/27053cad-e82f-4053-b76c-ebfdf5781877%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/5c37157e.1c69fb81.a9c68.17a1%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Kubernetes default jnlp container

2019-01-10 Thread Carlos Sanchez
You have to create a default PodTemplate and then put its name in the field
"Defaults Provider Template Name" in settings

On Thu, Jan 10, 2019 at 7:56 AM Maciej Gąsiorowski <
maciej.m.gasiorow...@gmail.com> wrote:

> Hi,
>
> It is possible to set custom default jnlp container (from private repo)
> for all jobs, without configuring him in all pipelines used in instance?
>
> I tried configure it in jenkins settings, but this don't work, job allways
> tried to pull imgage from hub.docker.
>
> Thanks,
> Maciej
>
> --
> 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/bf86a73e-3a1c-42d0-9c98-7b9a06fdd0c6%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/CALHFn6NPz294RT9OYhfE%2BTziRfqNrwAcPZDj0kdwfijndBJ-8A%40mail.gmail.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-10 Thread Ujjawal Khare
Can any one guide me how to fix this issue "SendFailedException message: 
501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
>
> 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