Re: SAML with Okta is very slow

2020-09-24 Thread Ivan Fernandez Calvo
Is your Jenkins home in a NFS or other network storage? I think so for the 
mount point, when a user enter a few files are written, because your IO is 
slow the IO operations are blocked waiting to finish that make the login 
slower than expected. You probably has more performance issues, I usually 
recommend to not use NFS file systems for the Jenkins home, take a look to 
this KB https://support.cloudbees.com/hc/en-us/articles/217479948-NFS-Guide

El jueves, 24 de septiembre de 2020 a las 15:52:05 UTC+2, 
mark.sc...@gmail.com escribió:

> Here are the logs in a better format.  
>
> Sep 24, 2020 7:52:17 AM 
> FINE org.pac4j.saml.client.SAML2Client retrieveUserProfileAdding attribute 
> value mark.schroering@*.com for attribute null 
> Sep 24, 2020 7:52:17 AM 
> FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => key: 
> email / value: [mark.schroering@*.com] / class java.util.ArrayList 
> Sep 24, 2020 7:52:17 AM 
> FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => key: 
> notBefore / value: 2020-09-24T11:46:38.907Z / class org.joda.time.DateTime 
> Sep 24, 2020 7:52:17 AM 
> FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => key: 
> notOnOrAfter / value: 2020-09-24T11:56:38.907Z / class 
> org.joda.time.DateTime 
> Sep 24, 2020 7:52:17 AM 
> FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperreset TCCL 
> Sep 24, 2020 7:53:35 AM 
> FINE 
> org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
> called. Using consumerServiceUrl 
> https://ci.infra.lifeomic.com/securityRealm/finishLogin 
> Sep 24, 2020 7:53:35 AM 
> FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL redirection: / 
> Sep 24, 2020 7:53:35 AM 
> FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL 
> Sep 24, 2020 7:53:45 AM 
> FINE 
> org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
> called. Using consumerServiceUrl 
> https://ci.infra.lifeomic.com/securityRealm/finishLogin 
> Sep 24, 2020 7:53:45 AM 
> FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL redirection: / 
> Sep 24, 2020 7:53:45 AM 
> FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL 
> Sep 24, 2020 7:54:13 AM 
> INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver Using SP 
> entity ID https://ci.infra.lifeomic.com/securityRealm/finishLogin 
> Sep 24, 2020 7:54:13 AM 
> INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
> resolveWriting sp metadata to /mnt/jenkins_home/saml-sp-metadata.xml 
> Sep 24, 2020 7:54:13 AM 
> INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
> resolveAttempting to create directory structure for /mnt/jenkins_home
>
> On Thursday, September 24, 2020 at 9:37:54 AM UTC-4 Mark Schroering wrote:
>
>> We have noticed it taking a very long time (up to 60s) to complete the 
>> SAML auth flow.  Here are some logs showing the bigger time gaps.  We are 
>> on version 1.1.7 of the SAML plugin and running Jenkins version 2.257. 
>>
>>
>> Sep 24, 2020 7:52:17 AM FINE org.pac4j.saml.client.SAML2Client 
>> retrieveUserProfileAdding attribute value mark.schroering@*.com for 
>> attribute null Sep 24, 2020 7:52:17 
>> AM FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => 
>> key: email / value: [mark.schroering@*.com] / class java.util.ArrayList 
>> Sep 24, 2020 7:52:17 AM FINE org.pac4j.core.profile.UserProfile 
>> addAttributeno conversion => key: notBefore / value: 
>> 2020-09-24T11:46:38.907Z / class org.joda.time.DateTime Sep 24, 2020 
>> 7:52:17 AM FINE org.pac4j.core.profile.UserProfile addAttributeno 
>> conversion => key: notOnOrAfter / value: 2020-09-24T11:56:38.907Z / class 
>> org.joda.time.DateTime Sep 24, 2020 7:52:17 
>> AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperreset TCCL Sep 24, 2020 
>> 7:53:35 
>> AM FINE 
>> org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin
>>  
>> called. Using consumerServiceUrl 
>> https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 24, 2020 
>> 7:53:35 AM FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL 
>> redirection: / Sep 24, 2020 7:53:35 
>> AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL Sep 24, 2020 
>> 7:53:45 
>> AM FINE 
>> org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin
>>  
>> called. Using consumerServiceUrl 
>> https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 24, 2020 
>> 7:53:45 AM FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL 
>> redirection: / Sep 24, 2020 7:53:45 
>> AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL Sep 24, 2020 
>> 7:54:13 
>> AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver Using 
>> SP entity ID https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 
>> 24, 2020 7:54:13 
>> AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
>> resolveWriting sp metadata to /mnt/jenkins_home/saml-sp-metadata.xml Sep 

Re: Connection refused from jenkins Centos repo

2020-09-24 Thread Mark Waite
I'm not seeing any indication that pkg.jenkins.io is offline.  The IP
addresses you listed in the resolving and connecting match with the IP
addresses reported by `dig` on my computer.

I confirmed that the same wget command you used is working for me from a
CentOS 7 computer in an  AWS data center.

Possibly a network connectivity issue or network routing issue from your
location to those destinations?

On Thu, Sep 24, 2020 at 1:49 PM Egor Garadja  wrote:

> Hello,
> i can`t get information about Jenkins centos repo (repodata.xml) and
> update my Jenkins Server:
>
> wget https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml
> --2020-09-24 21:34:15--
> https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml
> Resolving pkg.jenkins.io (pkg.jenkins.io)... 151.101.130.133,
> 151.101.66.133, 151.101.2.133, ...
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.130.133|:443...
> failed: Connection refused.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.66.133|:443...
> failed: Connection refused.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.2.133|:443...
> failed: Connection refused.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.194.133|:443...
> failed: Connection refused.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42:600::645|:443...
> failed: Network is unreachable.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42::645|:443...
> failed: Network is unreachable.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42:400::645|:443...
> failed: Network is unreachable.
> Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42:200::645|:443...
> failed: Network is unreachable.
>
> How can i fix this issue?
> Thank you very mach
>
> --
> 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/f718e51c-063d-4890-b86d-33d31769f9a9n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGSM5r2-kdvpvs%2BW%2B3y8hLYBQjJodKw7_Z1u26Ky1iqhw%40mail.gmail.com.


Connection refused from jenkins Centos repo

2020-09-24 Thread Egor Garadja
Hello, 
i can`t get information about Jenkins centos repo (repodata.xml) and update 
my Jenkins Server:

wget https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml
--2020-09-24 21:34:15--  
https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml
Resolving pkg.jenkins.io (pkg.jenkins.io)... 151.101.130.133, 
151.101.66.133, 151.101.2.133, ...
Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.130.133|:443... 
failed: Connection refused.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.66.133|:443... 
failed: Connection refused.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.2.133|:443... failed: 
Connection refused.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.194.133|:443... 
failed: Connection refused.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42:600::645|:443... 
failed: Network is unreachable.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42::645|:443... 
failed: Network is unreachable.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42:400::645|:443... 
failed: Network is unreachable.
Connecting to pkg.jenkins.io (pkg.jenkins.io)|2a04:4e42:200::645|:443... 
failed: Network is unreachable.

How can i fix this issue?
Thank you very mach

-- 
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/f718e51c-063d-4890-b86d-33d31769f9a9n%40googlegroups.com.


ANN - 2020 Jenkins elections. Nominations and voter registration are open!

2020-09-24 Thread Oleg Nenashev
Dear all,

We are happy to announce the 2020 elections in Jenkins! Nominations are
open for governance board and officer positions. These roles are an
essential part of Jenkins' community governance and well-being. We invite
Jenkins community members to send nominations and participate in voting.

This year we will elect one governance board member and five officers,
namely: Security, Events, Release, Infrastructure, and Documentation. Board
members are elected for a 2 years term, officers are re-elected each year.
You can find more information about the elections and the elected roles in this
blog post .

Individual contributors are eligible to vote if they made a contribution to
Jenkins before September 01. Any public contribution counts, not just code
commits: documentation updates, code reviews, substantial issue reports,
issues and mailing list responses, social media posts, testing, etc.

Key dates

   -

   Sep 24 - Voter registration begins (sign up for voting
   
   ).
   -

   Sep 24 - Board and officer nominations open (nominating contributors
   
   ).
   -

   Oct 15 - Board and officer nominations deadline.
   -

   Oct 22 - List of candidates is published.
   -

   Nov 02 - Voter registration ends.
   -

   Nov 10 - Voting begins. Condorcet Internet Voting Service
    will be used for voting.
   -

   Nov 27 - Voting ends, 11PM UTC.
   -

   Dec 03 - Election results are announced and take effect.


If you have any questions or feedback about the elections, please contact
the 2020 Elections Committee via jenkins-2020-electi...@googlegroups.com .

Thanks for your time,

Jenkins 2020 Elections Committee

-- 
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/CAPfivLCSp-ULNOF2W1t14oy%3DaCL8xGkJk9gjOBETTjtBJnGVxA%40mail.gmail.com.


Re: How to reuse an existing workspace?

2020-09-24 Thread jesus fernandez
Thanks for answering so quickly, I saw this but I got confused as I do not 
use any node I just declared agent any and then the stages, I guess I could 
do it like this? 
pipeline 
{   
agent {
node {
label 'master'
customWorkspace '/MyExistingPath'
}
}
options { timestamps () }
stages{

Thanks
El jueves, 24 de septiembre de 2020 a las 16:44:23 UTC+2, Gianluca escribió:

> I think you can use the "customWorkspace" option.
> https://www.jenkins.io/doc/book/pipeline/syntax/
>
> I use the declarative and scripted pipelines, so I don't know if there is 
> that option in freestyle too.
>
> Cheers,
> Gianluca.
>
>
> Il giorno gio 24 set 2020 alle ore 15:33 jesus fernandez <
> jesusfern...@gmail.com> ha scritto:
>
>> I am quite new to Jenkins, I have been learning on my own, I have a 
>> working freestyle project that I want to convert to pipeline now, I have 
>> the script (at least I think) but I do not know what to add to make it use 
>> the existing workspace from the freestyle job so when pulling from the SCM 
>> does not have to download the whole project again as it is 150gb. I have 
>> look into the declarative pipeline documentation what I have not found 
>> anything on this regard 
>>
>> -- 
>> 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/2b593d9a-b949-4b81-a0a7-4b3272a01c60n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/43103af6-3747-4db0-a4c6-c6c9915cbfdan%40googlegroups.com.


Re: How to reuse an existing workspace?

2020-09-24 Thread Gian Maxera
I think you can use the "customWorkspace" option.
https://www.jenkins.io/doc/book/pipeline/syntax/

I use the declarative and scripted pipelines, so I don't know if there is
that option in freestyle too.

Cheers,
Gianluca.


Il giorno gio 24 set 2020 alle ore 15:33 jesus fernandez <
jesusfernandez0...@gmail.com> ha scritto:

> I am quite new to Jenkins, I have been learning on my own, I have a
> working freestyle project that I want to convert to pipeline now, I have
> the script (at least I think) but I do not know what to add to make it use
> the existing workspace from the freestyle job so when pulling from the SCM
> does not have to download the whole project again as it is 150gb. I have
> look into the declarative pipeline documentation what I have not found
> anything on this regard
>
> --
> 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/2b593d9a-b949-4b81-a0a7-4b3272a01c60n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPddqDWzeyYgFhQpXhDZLew1ousvjmfzqKPctJkprTu%2BbDwe7g%40mail.gmail.com.


How to reuse an existing workspace?

2020-09-24 Thread jesus fernandez
I am quite new to Jenkins, I have been learning on my own, I have a working 
freestyle project that I want to convert to pipeline now, I have the script 
(at least I think) but I do not know what to add to make it use the 
existing workspace from the freestyle job so when pulling from the SCM does 
not have to download the whole project again as it is 150gb. I have look 
into the declarative pipeline documentation what I have not found anything 
on this regard

-- 
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/2b593d9a-b949-4b81-a0a7-4b3272a01c60n%40googlegroups.com.


Re: how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread jesus fernandez
but what you suggested worked! probaly I need to improve my batch scripting 
knowledge as it is none at the moment. THANKS A LOT! 
El jueves, 24 de septiembre de 2020 a las 16:19:09 UTC+2, jesus fernandez 
escribió:

> I also tried with call  but I get this error:
> ```
> *16:18:43* C:\Users\User\.jenkins\workspace\pipeline_test>call 
> C:/Users/User/.jenkins/workspace/Age_2_DE/Steam Build 
> Scripts/scripts/build_dev.bat *16:18:43* 
> 'C:/Users/User/.jenkins/workspace/Age_2_DE/Steam' is not recognized as an 
> internal or external command, *16:18:43* operable program or batch file.  
> ```
>
> El jueves, 24 de septiembre de 2020 a las 16:07:28 UTC+2, Jérôme Godbout 
> escribió:
>
>> Hi,
>>
>> make sure to escape the path if it has spaces:
>>
>> bat('start “C:/Users/User/.jenkins/workspace/Project/Steam 
>> Build Scripts/scripts/build_dev.bat”');
>>
>>  
>>
>> Why do you need the start? Is the command return before completion or 
>> something?
>>
>>  
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com  *On 
>> Behalf Of *jesus fernandez
>> *Sent:* September 24, 2020 8:24 AM
>> *To:* Jenkins Users 
>> *Subject:* how to execute a bash script in a jenkins declarative pipeline
>>
>>  
>>
>> I have started recently using Jenkins in windows 10. I have a freestyle 
>> job that sync from the SCM, build a C++ solution and then it runs a batch 
>> script to upload to steam. I am trying to convert it to pipeline as I 
>> realized reading the documentation how much more powerful it is. My problem 
>> is that on the step to run the .bat file it gets stuck forever, this is the 
>> step:
>>
>> ```
>>
>> ...
>>
>> Stage('batch script'){
>>
>> steps{
>>
>> bat 'start C:/Users/User/.jenkins/workspace/Project/Steam 
>> Build 
>>
>> Scripts/scripts/build_dev.bat'
>>
>> }
>>
>> }
>>
>> ...
>>
>> ```
>>
>>  
>>
>> and this is the simple .bat file:
>>
>> ```
>>
>> "C:\Users\User\.jenkins\workspace\Project\Steam Build 
>> Scripts\builder\steamcmd.exe" +login "someUser" "somePassword" 
>> +run_app_build "C:\Users\User\.jenkins\workspace\Project\Steam Build 
>> Scripts\scripts\app-build-813780-dev.vdf" +quit
>>
>>  
>>
>> ```
>>
>>  
>>
>> running the same file from the freestyle job works fine like this:
>>
>> -- 
>> 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/e9a2b099-812c-4cb3-a459-f874e455n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f8b508ad-2d67-49e3-aab7-0451c525cb4en%40googlegroups.com.


Re: how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread jesus fernandez
I also tried with call  but I get this error:
```
*16:18:43* C:\Users\User\.jenkins\workspace\pipeline_test>call 
C:/Users/User/.jenkins/workspace/Age_2_DE/Steam Build 
Scripts/scripts/build_dev.bat *16:18:43* 
'C:/Users/User/.jenkins/workspace/Age_2_DE/Steam' is not recognized as an 
internal or external command, *16:18:43* operable program or batch file.  
```

El jueves, 24 de septiembre de 2020 a las 16:07:28 UTC+2, Jérôme Godbout 
escribió:

> Hi,
>
> make sure to escape the path if it has spaces:
>
> bat('start “C:/Users/User/.jenkins/workspace/Project/Steam 
> Build Scripts/scripts/build_dev.bat”');
>
>  
>
> Why do you need the start? Is the command return before completion or 
> something?
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com  *On 
> Behalf Of *jesus fernandez
> *Sent:* September 24, 2020 8:24 AM
> *To:* Jenkins Users 
> *Subject:* how to execute a bash script in a jenkins declarative pipeline
>
>  
>
> I have started recently using Jenkins in windows 10. I have a freestyle 
> job that sync from the SCM, build a C++ solution and then it runs a batch 
> script to upload to steam. I am trying to convert it to pipeline as I 
> realized reading the documentation how much more powerful it is. My problem 
> is that on the step to run the .bat file it gets stuck forever, this is the 
> step:
>
> ```
>
> ...
>
> Stage('batch script'){
>
> steps{
>
> bat 'start C:/Users/User/.jenkins/workspace/Project/Steam 
> Build 
>
> Scripts/scripts/build_dev.bat'
>
> }
>
> }
>
> ...
>
> ```
>
>  
>
> and this is the simple .bat file:
>
> ```
>
> "C:\Users\User\.jenkins\workspace\Project\Steam Build 
> Scripts\builder\steamcmd.exe" +login "someUser" "somePassword" 
> +run_app_build "C:\Users\User\.jenkins\workspace\Project\Steam Build 
> Scripts\scripts\app-build-813780-dev.vdf" +quit
>
>  
>
> ```
>
>  
>
> running the same file from the freestyle job works fine like this:
>
> -- 
> 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/e9a2b099-812c-4cb3-a459-f874e455n%40googlegroups.com
>  
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c8fe5bae-54a6-4512-aa09-c2846b0c59bcn%40googlegroups.com.


Re: Extended Email Publisher - Different recipients based on status

2020-09-24 Thread Slide
Each trigger should have a list of recipients that you can specify. Are you
using freestyle or pipeline jobs?

On Thu, Sep 24, 2020, 06:37 'Tim Calderwood' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Good day to you
>
> We are using  Extended Email Publisher with great success. However, we
> need to be able to change the recipient list based on the build status. If
> there a way to change the recipient list bases on pass or fail, and if
> possible first fail vs always fail?
>
> 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/baa301ce-2467-4f80-b2ef-66436701557fn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfYr3uJMtL-2cyZ7f4_PL%2BZjNFj_aVe0LzE%2BfZK2DC%3DAg%40mail.gmail.com.


RE: how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread Jérôme Godbout
Hi,
make sure to escape the path if it has spaces:
bat('start “C:/Users/User/.jenkins/workspace/Project/Steam Build 
Scripts/scripts/build_dev.bat”');

Why do you need the start? Is the command return before completion or something?


From: jenkinsci-users@googlegroups.com  On 
Behalf Of jesus fernandez
Sent: September 24, 2020 8:24 AM
To: Jenkins Users 
Subject: how to execute a bash script in a jenkins declarative pipeline

I have started recently using Jenkins in windows 10. I have a freestyle job 
that sync from the SCM, build a C++ solution and then it runs a batch script to 
upload to steam. I am trying to convert it to pipeline as I realized reading 
the documentation how much more powerful it is. My problem is that on the step 
to run the .bat file it gets stuck forever, this is the step:
```
...
Stage('batch script'){
steps{
bat 'start C:/Users/User/.jenkins/workspace/Project/Steam Build
Scripts/scripts/build_dev.bat'
}
}
...
```

and this is the simple .bat file:
```
"C:\Users\User\.jenkins\workspace\Project\Steam Build 
Scripts\builder\steamcmd.exe" +login "someUser" "somePassword" +run_app_build 
"C:\Users\User\.jenkins\workspace\Project\Steam Build 
Scripts\scripts\app-build-813780-dev.vdf" +quit

```

running the same file from the freestyle job works fine like 
this:[cid:image001.png@01D6925A.705FD950]
--
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/e9a2b099-812c-4cb3-a459-f874e455n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/QB1PR01MB38447B0DED7787FED6E8BFA3CD390%40QB1PR01MB3844.CANPRD01.PROD.OUTLOOK.COM.


Re: SAML with Okta is very slow

2020-09-24 Thread Mark Schroering
Here are the logs in a better format.  

Sep 24, 2020 7:52:17 AM 
FINE org.pac4j.saml.client.SAML2Client retrieveUserProfileAdding attribute 
value mark.schroering@*.com for attribute null 
Sep 24, 2020 7:52:17 AM 
FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => key: 
email / value: [mark.schroering@*.com] / class java.util.ArrayList 
Sep 24, 2020 7:52:17 AM 
FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => key: 
notBefore / value: 2020-09-24T11:46:38.907Z / class org.joda.time.DateTime 
Sep 24, 2020 7:52:17 AM 
FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => key: 
notOnOrAfter / value: 2020-09-24T11:56:38.907Z / class 
org.joda.time.DateTime 
Sep 24, 2020 7:52:17 AM 
FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperreset TCCL 
Sep 24, 2020 7:53:35 AM 
FINE 
org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
called. Using consumerServiceUrl 
https://ci.infra.lifeomic.com/securityRealm/finishLogin 
Sep 24, 2020 7:53:35 AM 
FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL redirection: / 
Sep 24, 2020 7:53:35 AM 
FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL 
Sep 24, 2020 7:53:45 AM 
FINE 
org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
called. Using consumerServiceUrl 
https://ci.infra.lifeomic.com/securityRealm/finishLogin 
Sep 24, 2020 7:53:45 AM 
FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL redirection: / 
Sep 24, 2020 7:53:45 AM 
FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL 
Sep 24, 2020 7:54:13 AM 
INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver Using SP 
entity ID https://ci.infra.lifeomic.com/securityRealm/finishLogin 
Sep 24, 2020 7:54:13 AM 
INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
resolveWriting sp metadata to /mnt/jenkins_home/saml-sp-metadata.xml 
Sep 24, 2020 7:54:13 AM 
INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
resolveAttempting to create directory structure for /mnt/jenkins_home

On Thursday, September 24, 2020 at 9:37:54 AM UTC-4 Mark Schroering wrote:

> We have noticed it taking a very long time (up to 60s) to complete the 
> SAML auth flow.  Here are some logs showing the bigger time gaps.  We are 
> on version 1.1.7 of the SAML plugin and running Jenkins version 2.257. 
>
>
> Sep 24, 2020 7:52:17 AM FINE org.pac4j.saml.client.SAML2Client 
> retrieveUserProfileAdding attribute value mark.schroering@*.com for 
> attribute null Sep 24, 2020 7:52:17 
> AM FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => 
> key: email / value: [mark.schroering@*.com] / class java.util.ArrayList 
> Sep 24, 2020 7:52:17 AM FINE org.pac4j.core.profile.UserProfile 
> addAttributeno conversion => key: notBefore / value: 
> 2020-09-24T11:46:38.907Z / class org.joda.time.DateTime Sep 24, 2020 
> 7:52:17 AM FINE org.pac4j.core.profile.UserProfile addAttributeno 
> conversion => key: notOnOrAfter / value: 2020-09-24T11:56:38.907Z / class 
> org.joda.time.DateTime Sep 24, 2020 7:52:17 
> AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperreset TCCL Sep 24, 2020 
> 7:53:35 
> AM FINE 
> org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
> called. Using consumerServiceUrl 
> https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 24, 2020 
> 7:53:35 AM FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL 
> redirection: / Sep 24, 2020 7:53:35 
> AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL Sep 24, 2020 
> 7:53:45 
> AM FINE 
> org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
> called. Using consumerServiceUrl 
> https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 24, 2020 
> 7:53:45 AM FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL 
> redirection: / Sep 24, 2020 7:53:45 
> AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL Sep 24, 2020 
> 7:54:13 
> AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver Using 
> SP entity ID https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 
> 24, 2020 7:54:13 
> AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
> resolveWriting sp metadata to /mnt/jenkins_home/saml-sp-metadata.xml Sep 
> 24, 2020 7:54:13 
> AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
> resolveAttempting to create directory structure for /mnt/jenkins_home
>
> Looking at the browser tools on page load:
>
> GET /securityRealm/commenceLogin  <-- 57s
> GET /securityRealm/finishLogin <--- 38s
>
> the Okta SSO parts in between seem to be quick as expected. 
>
> Any tips on how to further debug or troubleshoot would be appreciated. 
>
> Thanks for the 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 

Extended Email Publisher - Different recipients based on status

2020-09-24 Thread 'Tim Calderwood' via Jenkins Users
Good day to you

We are using  Extended Email Publisher with great success. However, we need 
to be able to change the recipient list based on the build status. If there 
a way to change the recipient list bases on pass or fail, and if possible 
first fail vs always fail? 

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/baa301ce-2467-4f80-b2ef-66436701557fn%40googlegroups.com.


Why does my Jenkins server crash when running `wrangler publish`? (error 502)

2020-09-24 Thread Mattias Fjellvang
So I am trying to set up a Jenkins deploy pipeline. Almost everything seems 
to be working fine, except for the last part of the job, which is to run 
`wrangler publish` (to publish the site to Cloudflare Workers).

I have tried running it twice now, and both times, it will fail during the 
job, and I will receive an error code "502" when I try to access my jenkins 
server. The only thing that works is a full reboot of the server.

I have tried checking logs, but nothing much shows up. In jenkins.error.log 
I see this:

2020/09/23 21:12:00 [error] 1098#1098: *498 connect() failed (111: 
Connection refused) while connecting to upstream, client: 162.158.94.165, 
server: jenkins.mydomain.com, request: "POST 
/job/my-project-staging/15/logText/progressiveHtml HTTP/1.1", upstream: 
"http://127.0.0.1:8080/job/my-project-staging/15/logText/progressiveHtml;, 
host: "jenkins.mydomain.com", referrer: 
"https://jenkins.mydomain.com/job/my-project-staging/15/console;
2020/09/23 21:12:02 [error] 1098#1098: *500 connect() failed (111: 
Connection refused) while connecting to upstream, client: 162.158.93.72, 
server: jenkins.mydomain.com, request: "HEAD 
/job/my-project-staging/15/statusIcon HTTP/1.1", upstream: 
"http://127.0.0.1:8080/job/my-project-staging/15/statusIcon;, host: 
"jenkins.mydomain.com"
2020/09/23 21:12:03 [error] 1098#1098: *502 connect() failed (111: 
Connection refused) while connecting to upstream, client: 172.69.34.207, 
server: jenkins.mydomain.com, request: "GET 
/job/my-project-staging/15/statusIcon HTTP/1.1", upstream: 
"http://127.0.0.1:8080/job/my-project-staging/15/statusIcon;, host: 
"jenkins.mydomain.com"
2020/09/23 21:12:03 [error] 1098#1098: *504 connect() failed (111: 
Connection refused) while connecting to upstream, client: 162.158.91.152, 
server: jenkins.mydomain.com, request: "HEAD 
/job/my-project-staging/15/console HTTP/1.1", upstream: 
"http://127.0.0.1:8080/job/my-project-staging/15/console;, host: 
"jenkins.mydomain.com"
2020/09/23 21:12:06 [error] 1098#1098: *506 connect() failed (111: 
Connection refused) while connecting to upstream, client: 162.158.91.146, 
server: jenkins.mydomain.com, request: "GET 
/job/my-project-staging/15/console HTTP/1.1", upstream: 
"http://127.0.0.1:8080/job/my-project-staging/15/console;, host: 
"jenkins.mydomain.com"
2020/09/23 22:15:09 [error] 1098#1098: *1773 connect() failed (111: 
Connection refused) while connecting to upstream, client: 74.120.14.35, 
server: jenkins.mydomain.com, request: "GET / HTTP/1.1", upstream: 
"http://127.0.0.1:8080/;, host: "123.123.123.123:443"
2020/09/23 22:15:10 [error] 1098#1098: *1775 connect() failed (111: 
Connection refused) while connecting to upstream, client: 74.120.14.35, 
server: jenkins.mydomain.com, request: "GET / HTTP/1.1", upstream: 
"http://127.0.0.1:8080/;, host: "123.123.123.123"
2020/09/23 23:08:18 [error] 1098#1098: *2378 connect() failed (111: 
Connection refused) while connecting to upstream, client: 193.118.53.210, 
server: jenkins.mydomain.com, request: "GET /solr/ HTTP/1.1", upstream: 
"http://127.0.0.1:8080/solr/;, host: "123.123.123.123"
2020/09/24 01:36:08 [error] 1098#1098: *7943 connect() failed (111: 
Connection refused) while connecting to upstream, client: 51.158.24.203, 
server: jenkins.mydomain.com, request: "GET / HTTP/1.1", upstream: 
"http://127.0.0.1:8080/;, host: "123.123.123.123"

Any ideas?

I have tried restarting nginx, that doesn't prevent the 502 error. However, 
when I run `sudo /etc/init.d/jenkins restart` the jenkins server will 
reboot and be online again.

When I go into the failed job, I see this at the very end, before the 
server crashed:

memory allocation of 240904 bytes failedCreating placeholder flownodes 
because failed loading originals.
java.io.IOException: Tried to load head FlowNodes for execution 
Owner[jwr-nuxt-staging/15:jwr-nuxt-staging #15] but FlowNode was not found 
in storage for head id:FlowNodeId 1:26
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.initializeStorage(CpsFlowExecution.java:689)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.onLoad(CpsFlowExecution.java:726)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.getExecution(WorkflowRun.java:691)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:550)
at hudson.model.RunMap.retrieve(RunMap.java:225)
at hudson.model.RunMap.retrieve(RunMap.java:57)
at 
jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:501)
at 
jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:483)
at 
jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:381)
at hudson.model.RunMap.getById(RunMap.java:205)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun$Owner.run(WorkflowRun.java:940)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun$Owner.get(WorkflowRun.java:951)
at 

how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread jesus fernandez
I have started recently using Jenkins in windows 10. I have a freestyle job 
that sync from the SCM, build a C++ solution and then it runs a batch 
script to upload to steam. I am trying to convert it to pipeline as I 
realized reading the documentation how much more powerful it is. My problem 
is that on the step to run the .bat file it gets stuck forever, this is the 
step:
```
...
Stage('batch script'){
steps{
bat 'start C:/Users/User/.jenkins/workspace/Project/Steam 
Build 
Scripts/scripts/build_dev.bat'
}
}
...
```

and this is the simple .bat file:
```
"C:\Users\User\.jenkins\workspace\Project\Steam Build 
Scripts\builder\steamcmd.exe" +login "someUser" "somePassword" 
+run_app_build "C:\Users\User\.jenkins\workspace\Project\Steam Build 
Scripts\scripts\app-build-813780-dev.vdf" +quit

```

running the same file from the freestyle job works fine like this:[image: 
10IC9 (1).png]

-- 
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/e9a2b099-812c-4cb3-a459-f874e455n%40googlegroups.com.


SAML with Okta is very slow

2020-09-24 Thread Mark Schroering
We have noticed it taking a very long time (up to 60s) to complete the SAML 
auth flow.  Here are some logs showing the bigger time gaps.  We are on 
version 1.1.7 of the SAML plugin and running Jenkins version 2.257. 


Sep 24, 2020 7:52:17 AM FINE org.pac4j.saml.client.SAML2Client 
retrieveUserProfileAdding attribute value mark.schroering@*.com for 
attribute null Sep 24, 2020 7:52:17 
AM FINE org.pac4j.core.profile.UserProfile addAttributeno conversion => 
key: email / value: [mark.schroering@*.com] / class java.util.ArrayList 
Sep 24, 2020 7:52:17 AM FINE org.pac4j.core.profile.UserProfile 
addAttributeno conversion => key: notBefore / value: 
2020-09-24T11:46:38.907Z / class org.joda.time.DateTime Sep 24, 2020 
7:52:17 AM FINE org.pac4j.core.profile.UserProfile addAttributeno 
conversion => key: notOnOrAfter / value: 2020-09-24T11:56:38.907Z / class 
org.joda.time.DateTime Sep 24, 2020 7:52:17 
AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperreset TCCL Sep 24, 2020 
7:53:35 
AM FINE 
org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
called. Using consumerServiceUrl 
https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 24, 2020 
7:53:35 AM FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL 
redirection: / Sep 24, 2020 7:53:35 
AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL Sep 24, 2020 
7:53:45 
AM FINE 
org.jenkinsci.plugins.saml.SamlSecurityRealmSamlSecurityRealm.doCommenceLogin 
called. Using consumerServiceUrl 
https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 24, 2020 
7:53:45 AM FINE org.jenkinsci.plugins.saml.SamlSecurityRealmSafe URL 
redirection: / Sep 24, 2020 7:53:45 
AM FINEST org.jenkinsci.plugins.saml.OpenSAMLWrapperadapt TCCL Sep 24, 2020 
7:54:13 
AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver Using 
SP entity ID https://ci.infra.lifeomic.com/securityRealm/finishLogin Sep 
24, 2020 7:54:13 
AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
resolveWriting sp metadata to /mnt/jenkins_home/saml-sp-metadata.xml Sep 
24, 2020 7:54:13 
AM INFO org.pac4j.saml.metadata.SAML2ServiceProviderMetadataResolver 
resolveAttempting to create directory structure for /mnt/jenkins_home

Looking at the browser tools on page load:

GET /securityRealm/commenceLogin  <-- 57s
GET /securityRealm/finishLogin <--- 38s

the Okta SSO parts in between seem to be quick as expected. 

Any tips on how to further debug or troubleshoot would be appreciated. 

Thanks for the 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/9956335e-8175-4fd4-90d3-bca70fac4f53n%40googlegroups.com.