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

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:

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

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:

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

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

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,

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 >

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

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

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

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

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

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