Re: Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
Ah, unfortunately those repos are company property :(

We unit test the declarative pipelines and the 1.3 release of pipeline unit
made it possible to test those without having to copy paste a bunch of
their code!


On Tue, Mar 24, 2020 at 19:16 Jheison Rodriguez 
wrote:

> Thanks for your response,
>
>
>
> Do you have any repo where I can find more examples?. Do you know if it’s
> possible to test declarative pipelines
>
>
>
> Best regards
>
> Jheison Rodriguez
>
>
>
> *From: *Jan Monterrubio 
> *Sent: *Tuesday, March 24, 2020 6:53 PM
> *To: *jenkinsci-users@googlegroups.com
> *Subject: *Re: Jenkins pipeline Testing
>
>
>
> We unit test our pipelines with :
>
>
>
> https://github.com/jenkinsci/JenkinsPipelineUnit
>
>
>
> We have some integration tests for them that require the Jenkins Test Rule
> and a docker agent that we configure as an external resource (junit4)
>
>
>
>
>
> Overall the pipeline unit is super nice! We also use the Jenkins plugin
> for plugins to consume the plugins on our Jenkins instance as dependencies
> for our gradle build.
>
>
>
>
>
> On Tue, Mar 24, 2020 at 12:32 Jheison Rodriguez 
> wrote:
>
> Hello Everyone, I'd like to know some thoughts about your experience with
> Jenkins pipelines testing (Jenkinsfile, Shared libraries, CPS, declarative
> pipeline). We want to start implementing it in our Company.
>
>
>
> Whatever help will be appreciate
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.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/CADgiF9LadLK%3DP%2BLu4NvGmFPEyO3C9E_pmUMpLcUVyLPbMXew6w%40mail.gmail.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/5e7aa2b9.1c69fb81.c5525.677d%40mx.google.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/CADgiF9LTr4A4BeAx75FD4Zu7fySMb8W29JKs%3D-N0EOpWP6oowQ%40mail.gmail.com.


Re: gerrit-code-review-plugin integrated with multibranch pipeline

2020-03-24 Thread Pasi
Hi,

I'd love to use this plugin instead of Gerrit Trigger plugin, but I don't 
get the branch indexing happening no matter what URL I define in Gerrit 
webhook (best to use /gerrit-webhook I guess).  I wonder if 
I'm hitting these 2 issues and if any work is done for them:
https://issues.jenkins-ci.org/browse/JENKINS-54212

https://issues.jenkins-ci.org/browse/JENKINS-60965

I also wonder if having Gerrit Trigger plugin installed interferes with 
this plugin somehow. I don't know if some jobs in our Jenkins use Gerrit 
Trigger.

Cheers,
-Pasi

On Wednesday, August 7, 2019 at 10:49:42 AM UTC+3, Luca Milanesio wrote:
>
> Hi Amit,
> this message is more for the Jenkins mailing list. However, as I am 
> watching actively both, I'm happy to answer :-)
>
> On 6 Aug 2019, at 06:57, amit r > wrote:
>
> Hi All, 
>
>
> i'm not sure who to send this so trying here to get some answer for my use 
> case..
>
> i'm trying to use the plugin gerrit-code-review-plugin  in my project 
> using multi branch pipeline.
> installed all the pre plugins in order to use it  but as mentioned in the 
> wiki page:
>
> https://wiki.jenkins.io/display/JENKINS/Gerrit+Code+Review+Plugin 
> not clear enough how to use it from scratch.
> i assumed that need the gerrit trigger section in my jenkinsFile  so did 
> this one:
>
> triggers {
> gerrit(
> serverName: 'Gerrit Server',
> gerritProjects: [[
>  compareType   : 
> 'ANT',
>  pattern   : 
> 'env.GERRIT_PROJECT',
>  branches  : 
> [[
>   
> compareType: 'REG_EXP',
>   
> pattern: 'env.BRANCH_NAME'
>   
> ]]
>  ]],
> triggerOnEvents: [
> changeMerged(),
> patchsetCreated()
> ],
> skipVote: [
> onSuccessful: false,
> onFailed: false,
> onUnstable  : false,
> onNotBuilt  : false
> ]
> )
> }
>
>
> The above example doesn't match any of the other examples mentioned in the 
> Gerrit Code Review plugin.
>
> See the scripted and declarative pipelines examples at:
> https://github.com/jenkinsci/gerrit-code-review-plugin
>
>  but now no matter what happens - i never get any event for the merged one 
> - only for patchsetCreated
>
> 1. is there something i'm missing here?
> 2. does this plugin should support this cases?
>
>
> Yes, it is designed for being used in a multi-branch pipeline.
>
> 3. how can i still use the branch scanning that exist in multibranch 
> pipeline in case i also have cases that my automation push code into gerrit 
> so will have here endless loop...
>
>
> Endless loop? Can you clarify the details?
>
> 4. what about webhooks in gerrit it self? is it something different? 
>
>
> Webhooks can be used to trigger the branch reindexing also.
> Just configure them in Gerrit to point to Jenkins's URL /gerrit-webhook
>
> HTH
>
> Luca.
>
>
> any help with this will save my day! i'm trying to resolve these issues 
> for long time with not much luck...
>
> many thanks in advance!!
> Amit Rintzler 
>
> -- 
> -- 
> To unsubscribe, email rep...@googlegroups.com 
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to repo-d...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/repo-discuss/12c7c061-8ffa-444f-a277-ec34b66c6dc3%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/4ecfc9ce-62b5-4f0c-a979-2b85b436573d%40googlegroups.com.


Re: Jenkins.war and Jenkins as service

2020-03-24 Thread 'Björn Pedersen' via Jenkins Users


Am Dienstag, 24. März 2020 08:13:10 UTC+1 schrieb raviraj shitole:
>
> Hi Mark,
>
> Thank you was able to install the agent as a service, but now when i 
> execute the tests chrome browser is not visible on the desktop. The process 
> starts in the background and exits. 
> How do i make the browser visible now?
>

Don't  run the agent as a service. 
 
 service -> no desktop access, so no windows visible
not service -> desktop access 
 

> Thanks
> Raviraj
>
> On Mon, Mar 23, 2020 at 11:25 PM Mark Waite  > wrote:
>
>> See  https://github.com/kohsuke/winsw/issues/210 for some suggestions to 
>> try
>>
>> On Mon, Mar 23, 2020 at 11:32 AM Raviraj Shitole > > wrote:
>>
>>> I am getting an error "WMI access denied error" while trying to install 
>>> the Slave agent as a service on windows.
>>>
>>> what should we do now?
>>>
>>> On Fri, Mar 20, 2020 at 11:47 PM Mark Waite >> > wrote:
>>>
 Jenkins running as a service on Windows does not have access to the 
 desktop by default.

 Jenkins running from the desktop using `java -jar jenkins.war` from a 
 Windows command prompt will have access to the desktop.

 If you want to run Jenkins as a service and access the desktop, you 
 should probably provide agents which are started from a desktop Windows 
 environment so that they have full access to the desktop.



 On Fri, Mar 20, 2020 at 11:36 AM raviraj shitole >>> > wrote:

> Hi All,
>
>  
>
> I am a difficulty with the way Jenkins is being installed.
>
>  
>
> When we install Jenkins as Server, I am facing difficulty in test 
> automation. The browser doesn’t launch and it gives error that some DevSH 
> tool is missing.
>
>  
>
> Now when I start Jenkins Jenkins.war, there is no problem with the 
> test execution.
>
>  
>
>  
>
> Can someone please let me know the difference between Jenkins as 
> service and Jenkins.war? And also how to solve the error with Jenkins as 
> a 
> service.
>
>  
>
> Awaiting your Response.
>
>  
>
> -Regards,
>
> Raviraj
>
> -- 
> 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 jenkins...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/e120511f-20b9-423f-bc37-d7639f856505%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 jenkins...@googlegroups.com .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEvJAjfk9CMvSFFvQ2sVGzbe4uRtdBpacJwa9n4oxAcvg%40mail.gmail.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 jenkins...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/CAFYbxtffph-5ZwFeX2Y1E8u7EMcwv9Xrow_6we0zK8ZNj8skdQ%40mail.gmail.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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtF7MeMWhGETdzVSntTrssSMnKD3QK9oAYKOMW1%2BS3Trgg%40mail.gmail.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/e8160d9e-f88f-43a7-b57d-9befbb7b5e45%40googlegroups.com.


Re: Jenkins.war and Jenkins as service

2020-03-24 Thread Raviraj Shitole
Hi Mark,

Thank you was able to install the agent as a service, but now when i
execute the tests chrome browser is not visible on the desktop. The process
starts in the background and exits.
How do i make the browser visible now?

Thanks
Raviraj

On Mon, Mar 23, 2020 at 11:25 PM Mark Waite 
wrote:

> See  https://github.com/kohsuke/winsw/issues/210 for some suggestions to
> try
>
> On Mon, Mar 23, 2020 at 11:32 AM Raviraj Shitole 
> wrote:
>
>> I am getting an error "WMI access denied error" while trying to install
>> the Slave agent as a service on windows.
>>
>> what should we do now?
>>
>> On Fri, Mar 20, 2020 at 11:47 PM Mark Waite 
>> wrote:
>>
>>> Jenkins running as a service on Windows does not have access to the
>>> desktop by default.
>>>
>>> Jenkins running from the desktop using `java -jar jenkins.war` from a
>>> Windows command prompt will have access to the desktop.
>>>
>>> If you want to run Jenkins as a service and access the desktop, you
>>> should probably provide agents which are started from a desktop Windows
>>> environment so that they have full access to the desktop.
>>>
>>>
>>>
>>> On Fri, Mar 20, 2020 at 11:36 AM raviraj shitole 
>>> wrote:
>>>
 Hi All,



 I am a difficulty with the way Jenkins is being installed.



 When we install Jenkins as Server, I am facing difficulty in test
 automation. The browser doesn’t launch and it gives error that some DevSH
 tool is missing.



 Now when I start Jenkins Jenkins.war, there is no problem with the test
 execution.





 Can someone please let me know the difference between Jenkins as
 service and Jenkins.war? And also how to solve the error with Jenkins as a
 service.



 Awaiting your Response.



 -Regards,

 Raviraj

 --
 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/e120511f-20b9-423f-bc37-d7639f856505%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/CAO49JtEvJAjfk9CMvSFFvQ2sVGzbe4uRtdBpacJwa9n4oxAcvg%40mail.gmail.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/CAFYbxtffph-5ZwFeX2Y1E8u7EMcwv9Xrow_6we0zK8ZNj8skdQ%40mail.gmail.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/CAO49JtF7MeMWhGETdzVSntTrssSMnKD3QK9oAYKOMW1%2BS3Trgg%40mail.gmail.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/CAFYbxtcN0syKuTiVrQPLjb-ht2xfGpLNUYcv%2BcVg_dTUHE1SiQ%40mail.gmail.com.


Re: Jenkins.war and Jenkins as service

2020-03-24 Thread Raviraj Shitole
Actually its an organization wide setup which is done as a service(Jenkins
is installed as a service on Ubuntu)

That's the reason i am trying to connect it that way. Everything is working
fine, even the chrome browser is launched in the background. The tests are
some how executed but it not visible. Everything happens in the background.

On Tue, Mar 24, 2020 at 2:18 PM 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

>
>
> Am Dienstag, 24. März 2020 08:13:10 UTC+1 schrieb raviraj shitole:
>>
>> Hi Mark,
>>
>> Thank you was able to install the agent as a service, but now when i
>> execute the tests chrome browser is not visible on the desktop. The process
>> starts in the background and exits.
>> How do i make the browser visible now?
>>
>
> Don't  run the agent as a service.
>
>  service -> no desktop access, so no windows visible
> not service -> desktop access
>
>
>> Thanks
>> Raviraj
>>
>> On Mon, Mar 23, 2020 at 11:25 PM Mark Waite  wrote:
>>
>>> See  https://github.com/kohsuke/winsw/issues/210 for some suggestions
>>> to try
>>>
>>> On Mon, Mar 23, 2020 at 11:32 AM Raviraj Shitole 
>>> wrote:
>>>
 I am getting an error "WMI access denied error" while trying to install
 the Slave agent as a service on windows.

 what should we do now?

 On Fri, Mar 20, 2020 at 11:47 PM Mark Waite 
 wrote:

> Jenkins running as a service on Windows does not have access to the
> desktop by default.
>
> Jenkins running from the desktop using `java -jar jenkins.war` from a
> Windows command prompt will have access to the desktop.
>
> If you want to run Jenkins as a service and access the desktop, you
> should probably provide agents which are started from a desktop Windows
> environment so that they have full access to the desktop.
>
>
>
> On Fri, Mar 20, 2020 at 11:36 AM raviraj shitole 
> wrote:
>
>> Hi All,
>>
>>
>>
>> I am a difficulty with the way Jenkins is being installed.
>>
>>
>>
>> When we install Jenkins as Server, I am facing difficulty in test
>> automation. The browser doesn’t launch and it gives error that some DevSH
>> tool is missing.
>>
>>
>>
>> Now when I start Jenkins Jenkins.war, there is no problem with the
>> test execution.
>>
>>
>>
>>
>>
>> Can someone please let me know the difference between Jenkins as
>> service and Jenkins.war? And also how to solve the error with Jenkins as 
>> a
>> service.
>>
>>
>>
>> Awaiting your Response.
>>
>>
>>
>> -Regards,
>>
>> Raviraj
>>
>> --
>> 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 jenkins...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/e120511f-20b9-423f-bc37-d7639f856505%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 jenkins...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEvJAjfk9CMvSFFvQ2sVGzbe4uRtdBpacJwa9n4oxAcvg%40mail.gmail.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 jenkins...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/CAFYbxtffph-5ZwFeX2Y1E8u7EMcwv9Xrow_6we0zK8ZNj8skdQ%40mail.gmail.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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtF7MeMWhGETdzVSntTrssSMnKD3QK9oAYKOMW1%2BS3Trgg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 

Re: Jenkins.war and Jenkins as service

2020-03-24 Thread 'Björn Pedersen' via Jenkins Users


Am Dienstag, 24. März 2020 10:26:23 UTC+1 schrieb raviraj shitole:
>
> Actually its an organization wide setup which is done as a service(Jenkins 
> is installed as a service on Ubuntu)
>
> That's the reason i am trying to connect it that way. Everything is 
> working fine, even the chrome browser is launched in the background. The 
> tests are some how executed but it not visible. Everything happens in the 
> background.
>
>>
>>
That is the whole idea behind using Jenkins,  automated testing without 
human intervention.  To develop and debug a test,  just start it manually 
in your environment.

-- 
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/670b445f-28c5-426a-aec4-dd149f1a90a2%40googlegroups.com.


Re: Jenkins.war and Jenkins as service

2020-03-24 Thread Raviraj Shitole
Yes absolutely. But when jenkins is running as a war and i run the test, it
shows the actions on the UI, but with Jenkins as service everything runs in
the background.

On Tue, Mar 24, 2020 at 3:04 PM 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

>
>
> Am Dienstag, 24. März 2020 10:26:23 UTC+1 schrieb raviraj shitole:
>>
>> Actually its an organization wide setup which is done as a
>> service(Jenkins is installed as a service on Ubuntu)
>>
>> That's the reason i am trying to connect it that way. Everything is
>> working fine, even the chrome browser is launched in the background. The
>> tests are some how executed but it not visible. Everything happens in the
>> background.
>>
>>>
>>>
> That is the whole idea behind using Jenkins,  automated testing without
> human intervention.  To develop and debug a test,  just start it manually
> in your environment.
>
> --
> 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/670b445f-28c5-426a-aec4-dd149f1a90a2%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/CAFYbxtdTRy5dEFOZ0vZo7AYPQibc8LNFPuLP-kDf0TcSxodVbg%40mail.gmail.com.


Re: Jenkins.war and Jenkins as service

2020-03-24 Thread Raviraj Shitole
Okay... So which installation is most preferable? Jenkins as a service or
jenkins.war.

On Tue, Mar 24, 2020 at 9:47 PM Joachim Kuhnert 
wrote:

> As already mentioned by others the “problem” is the service environment. A
> service has no desktop and therefore cannot show any user interfaces
> including chrome. So as long as you run the Jenkins job in an service
> environment (on Jenkins master or agent installed as a service) you will
> never see the browser window. If you lunching Jenkins.war from command line
> you don’t run Jenkins as a service but with your current user which (may)
> has a desktop and therefore can show windows.
>
>
>
>
>
> *Von:* jenkinsci-users@googlegroups.com 
> *Im Auftrag von *Raviraj Shitole
> *Gesendet:* Dienstag, 24. März 2020 10:50
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* Re: Jenkins.war and Jenkins as service
>
>
>
> Yes absolutely. But when jenkins is running as a war and i run the test,
> it shows the actions on the UI, but with Jenkins as service everything runs
> in the background.
>
>
>
> On Tue, Mar 24, 2020 at 3:04 PM 'Björn Pedersen' via Jenkins Users <
> jenkinsci-users@googlegroups.com> wrote:
>
>
>
> Am Dienstag, 24. März 2020 10:26:23 UTC+1 schrieb raviraj shitole:
>
> Actually its an organization wide setup which is done as a service(Jenkins
> is installed as a service on Ubuntu)
>
>
>
> That's the reason i am trying to connect it that way. Everything is
> working fine, even the chrome browser is launched in the background. The
> tests are some how executed but it not visible. Everything happens in the
> background.
>
>
>
>
>
> That is the whole idea behind using Jenkins,  automated testing without
> human intervention.  To develop and debug a test,  just start it manually
> in your environment.
>
> --
> 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/670b445f-28c5-426a-aec4-dd149f1a90a2%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/CAFYbxtdTRy5dEFOZ0vZo7AYPQibc8LNFPuLP-kDf0TcSxodVbg%40mail.gmail.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/c303cba641b742e984697562086565b3%40piketec.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/CAFYbxtfSAzXogQfe1XBTOoiYfeQyPDu35ETozfjc9aoCTjtnhw%40mail.gmail.com.


AW: Jenkins.war and Jenkins as service

2020-03-24 Thread Joachim Kuhnert
As already mentioned by others the “problem” is the service environment. A 
service has no desktop and therefore cannot show any user interfaces including 
chrome. So as long as you run the Jenkins job in an service environment (on 
Jenkins master or agent installed as a service) you will never see the browser 
window. If you lunching Jenkins.war from command line you don’t run Jenkins as 
a service but with your current user which (may) has a desktop and therefore 
can show windows.


Von: jenkinsci-users@googlegroups.com  Im 
Auftrag von Raviraj Shitole
Gesendet: Dienstag, 24. März 2020 10:50
An: jenkinsci-users@googlegroups.com
Betreff: Re: Jenkins.war and Jenkins as service

Yes absolutely. But when jenkins is running as a war and i run the test, it 
shows the actions on the UI, but with Jenkins as service everything runs in the 
background.

On Tue, Mar 24, 2020 at 3:04 PM 'Björn Pedersen' via Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>> 
wrote:


Am Dienstag, 24. März 2020 10:26:23 UTC+1 schrieb raviraj shitole:
Actually its an organization wide setup which is done as a service(Jenkins is 
installed as a service on Ubuntu)

That's the reason i am trying to connect it that way. Everything is working 
fine, even the chrome browser is launched in the background. The tests are some 
how executed but it not visible. Everything happens in the background.


That is the whole idea behind using Jenkins,  automated testing without human 
intervention.  To develop and debug a test,  just start it manually in your 
environment.
--
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/670b445f-28c5-426a-aec4-dd149f1a90a2%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/CAFYbxtdTRy5dEFOZ0vZo7AYPQibc8LNFPuLP-kDf0TcSxodVbg%40mail.gmail.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/c303cba641b742e984697562086565b3%40piketec.com.


Jenkins pipeline Testing

2020-03-24 Thread Jheison Rodriguez
Hello Everyone, I'd like to know some thoughts about your experience with Jenkins pipelines testing (Jenkinsfile, Shared libraries, CPS, declarative pipeline). We want to start implementing it in our Company. Whatever help will be appreciate 



-- 
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.com.


RE: Jenkins.war and Jenkins as service

2020-03-24 Thread Jérôme Godbout
If you run as service under Windows, you might want to change the user that use 
to run your services (log on) of the service. Use a user with a login desktop 
capability. The only downfall I see is when I ask the Jenkins to restart it 
always hang, I have to restart the service manually. Linux doesn’t have those 
issues.


From: jenkinsci-users@googlegroups.com  On 
Behalf Of Raviraj Shitole
Sent: March 24, 2020 12:35 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Jenkins.war and Jenkins as service

Okay... So which installation is most preferable? Jenkins as a service or 
jenkins.war.

On Tue, Mar 24, 2020 at 9:47 PM Joachim Kuhnert 
mailto:joachim.kuhn...@piketec.com>> wrote:
As already mentioned by others the “problem” is the service environment. A 
service has no desktop and therefore cannot show any user interfaces including 
chrome. So as long as you run the Jenkins job in an service environment (on 
Jenkins master or agent installed as a service) you will never see the browser 
window. If you lunching Jenkins.war from command line you don’t run Jenkins as 
a service but with your current user which (may) has a desktop and therefore 
can show windows.


Von: jenkinsci-users@googlegroups.com 
mailto:jenkinsci-users@googlegroups.com>> Im 
Auftrag von Raviraj Shitole
Gesendet: Dienstag, 24. März 2020 10:50
An: jenkinsci-users@googlegroups.com
Betreff: Re: Jenkins.war and Jenkins as service

Yes absolutely. But when jenkins is running as a war and i run the test, it 
shows the actions on the UI, but with Jenkins as service everything runs in the 
background.

On Tue, Mar 24, 2020 at 3:04 PM 'Björn Pedersen' via Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>> 
wrote:


Am Dienstag, 24. März 2020 10:26:23 UTC+1 schrieb raviraj shitole:
Actually its an organization wide setup which is done as a service(Jenkins is 
installed as a service on Ubuntu)

That's the reason i am trying to connect it that way. Everything is working 
fine, even the chrome browser is launched in the background. The tests are some 
how executed but it not visible. Everything happens in the background.


That is the whole idea behind using Jenkins,  automated testing without human 
intervention.  To develop and debug a test,  just start it manually in your 
environment.
--
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/670b445f-28c5-426a-aec4-dd149f1a90a2%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/CAFYbxtdTRy5dEFOZ0vZo7AYPQibc8LNFPuLP-kDf0TcSxodVbg%40mail.gmail.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/c303cba641b742e984697562086565b3%40piketec.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/CAFYbxtfSAzXogQfe1XBTOoiYfeQyPDu35ETozfjc9aoCTjtnhw%40mail.gmail.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 

Re: Docker content trust from pipelines

2020-03-24 Thread alex mozejko
heya, 

in case anyone else gets stuck here my issue was that docker was looking 
for keys in {workspace}/.docker as opposed to /home/jenkins/.docker. 

mr. jenkins was creating a new root and repo key with each build and did 
not find the delegation key i was trying to use (which was in 
/home/jenkins/.docker). 

On Wednesday, 12 June 2019 03:54:57 UTC+8, Albert Domenech wrote:
>
> I have an unsolved annoying issue regarding Jenkins pipelines and Docker 
> Content Trust, I hope someone can give me a hand with it.
>
> I'm using Harbor as private registry and I activated Content Trust on my 
> laptop's Docker daemon. Whenever I push a new Image to the registry 
> manually from the shell, the daemon signs the Image as expected using my 
> local signing keys.
>
> Then I followed the delegation process to allow Jenkins user to do the 
> same. I created specific signing keys for it and added them to the registry 
> from my laptop, so now Jenkins user is an allowed signer for specific 
> projects.
>
> If I create and push new images from the Jenkins OS user shell, everything 
> goes as expected also, meaning that the images are signed and pushed to the 
> registry with all the meta info needed.
>
> The problem comes when I try to do the same from a Pipeline, for some 
> strange reason, Docker is not able to find the signing keys, so the image 
> is pushed but not signed. I tried in different ways, but always with the 
> same result. "no valid signing keys for delegation roles"
>
> Curious thing that I observed is that "docker trust inspect ..." works 
> both ways (from shell and pipeline) and shows Jenkins user as an allowed 
> signer, but "notary key list" only works from the pipeline if I add 
> "--configFile 
> ~/.notary/config.json" parameter that in fact points to the default 
> configuration path
>
> Here a partial extract from the stage I'm using:
>
> script {
>   withEnv(['DOCKER_CONTENT_TRUST=1','DOCKER_CONTENT_TRUST_SERVER=
> https://harbor.example.com:4443']) {
> withCredentials([usernamePassword(credentialsId: 
> "harbor_jenkins_credentials", usernameVariable: "HARBOR_USERNAME", 
> passwordVariable: "HARBOR_PASSWORD")]) {
>   sh "docker login --username=$HARBOR_USERNAME 
> --password=$HARBOR_PASSWORD harbor.example.com"
> }
> withCredentials([string(credentialsId: 
> 'docker-content-trust-repository-passphrase', variable: 
> 'DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE'),
>  string(credentialsId: 'docker-content-trust-root-passphrase', variable: 
> 'DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE')]) {
>   sh """#!/bin/bash
> printenv
> notary --configFile ~/.notary/config.json key list
> docker trust inspect --pretty harbor.example.com/services/test
> docker push harbor.example.com/services/test:${nextTag} 
> 
> docker push harbor.example.com/services/test:${commitHash} 
> 
> docker push harbor.example.com/services/test:latest
>   """
> }
>   }
>  }
>
>
>

-- 
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/dd6831c0-7abe-47e3-a055-57812e8d4891%40googlegroups.com.


Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
We unit test our pipelines with :

https://github.com/jenkinsci/JenkinsPipelineUnit

We have some integration tests for them that require the Jenkins Test Rule
and a docker agent that we configure as an external resource (junit4)


Overall the pipeline unit is super nice! We also use the Jenkins plugin for
plugins to consume the plugins on our Jenkins instance as dependencies for
our gradle build.


On Tue, Mar 24, 2020 at 12:32 Jheison Rodriguez 
wrote:

> Hello Everyone, I'd like to know some thoughts about your experience with
> Jenkins pipelines testing (Jenkinsfile, Shared libraries, CPS, declarative
> pipeline). We want to start implementing it in our Company.
>
>
>
> Whatever help will be appreciate
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.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/CADgiF9LadLK%3DP%2BLu4NvGmFPEyO3C9E_pmUMpLcUVyLPbMXew6w%40mail.gmail.com.


RE: Re: Jenkins pipeline Testing

2020-03-24 Thread Jheison Rodriguez
Thanks for your response, Do you have any repo where I can find more examples?. Do you know if it’s possible to test declarative pipelines Best regardsJheison Rodriguez From: Jan MonterrubioSent: Tuesday, March 24, 2020 6:53 PMTo: jenkinsci-users@googlegroups.comSubject: Re: Jenkins pipeline Testing We unit test our pipelines with :  https://github.com/jenkinsci/JenkinsPipelineUnit We have some integration tests for them that require the Jenkins Test Rule and a docker agent that we configure as an external resource (junit4)  Overall the pipeline unit is super nice! We also use the Jenkins plugin for plugins to consume the plugins on our Jenkins instance as dependencies for our gradle build.   On Tue, Mar 24, 2020 at 12:32 Jheison Rodriguez  wrote:Hello Everyone, I'd like to know some thoughts about your experience with Jenkins pipelines testing (Jenkinsfile, Shared libraries, CPS, declarative pipeline). We want to start implementing it in our Company. Whatever help will be appreciate -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5e7a440f.1c69fb81.e29e6.8eb8%40mx.google.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/CADgiF9LadLK%3DP%2BLu4NvGmFPEyO3C9E_pmUMpLcUVyLPbMXew6w%40mail.gmail.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/5e7aa2b9.1c69fb81.c5525.677d%40mx.google.com.