Re: Jenkins doesn't start automatically after a PC boots

2017-09-15 Thread masaru tsuchiyama
Yes


2017年9月16日(土) 11:27 Slide :

> If you go into the properties of the service in services.msc and look at
> the startup type, is it set to Automatic?
>
> On Fri, Sep 15, 2017 at 4:07 PM Masaru Tsuchiyama 
> wrote:
>
>> Hello
>>
>> Jenkins doesn't start automatically after a PC boots.
>>
>> I installed Jenkins by windows installer at
>> https://jenkins.io/download/thank-you-downloading-windows-installer
>>
>> If I start Jenkins service at services.msc manually, it can be started.
>> I'm running Jenkins as a normal user not System Account.
>>
>> I'm using Jenkins 2.78 now, but it has been happening for several
>> months. I'm not sure which version of Jenkins is the first version
>> which reproduces.
>>
>>
>> --
>> Masaru Tsuchiyama 
>>
>> --
>> 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/e751ea50-038b-8477-388c-17729581d2f6%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/CAPiUgVf1ZDGQYhFK-VSdpu5tjhoE85ohBJHC6ytPCy4-YGi3wA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Invoke another pipeline under another repository's branch

2017-09-15 Thread Kevin Burnett
:D

this is working for me:

build('/proj/hot-repo/master')

where proj is a bitbucket project key (bitbucket server in my case) and 
hot-repo is a repo within that project.

On Friday, September 15, 2017 at 11:30:02 AM UTC-4, Slava Dubrovskiy wrote:
>
>
> 15.09.2017 17:50, Dan Tran пишет: 
> > Ping! 
> 0% packet loss 
>
> -- 
> 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/24e22be1-57be-4734-a342-7c1485dc370f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins doesn't start automatically after a PC boots

2017-09-15 Thread Slide
If you go into the properties of the service in services.msc and look at
the startup type, is it set to Automatic?

On Fri, Sep 15, 2017 at 4:07 PM Masaru Tsuchiyama 
wrote:

> Hello
>
> Jenkins doesn't start automatically after a PC boots.
>
> I installed Jenkins by windows installer at
> https://jenkins.io/download/thank-you-downloading-windows-installer
>
> If I start Jenkins service at services.msc manually, it can be started.
> I'm running Jenkins as a normal user not System Account.
>
> I'm using Jenkins 2.78 now, but it has been happening for several
> months. I'm not sure which version of Jenkins is the first version
> which reproduces.
>
>
> --
> Masaru Tsuchiyama 
>
> --
> 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/e751ea50-038b-8477-388c-17729581d2f6%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/CAPiUgVf1ZDGQYhFK-VSdpu5tjhoE85ohBJHC6ytPCy4-YGi3wA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: All jobs run when shared library is updated

2017-09-15 Thread Mark Waite
One way to disable it is to redefine your library references so that each
Jenkinsfile refers to a specific version in the pipeline shared library.
That has the additional benefit that it makes explicit what you have
decided implicitly, that you want to ignore changes in the pipeline shared
library.

When you're ready to allow branches to see a change in the pipeline shared
library (because it might risk breaking those branches, etc.), you update
the Jenkinsfile to use the newest version of the pipeline shared library.

There are also settings which should allow the pipeline shared library to
ignore push notifications, but it seems cleaner and clearer to state in
your Jenkinsfile (or in the folder) the specific version of the pipeline
shared library that you want to use.

Mark Waite

On Fri, Sep 15, 2017 at 3:52 PM red 888  wrote:

> I have my whole pipeline block of code defined in a shared library and my
> jenkinsfiles for my apps just call this shared library.
>
> I noticed though that when I modify the shared library and push to the git
> repo ALL the jenkins jobs that depend on this library re-run.
>
> How can I prevent this from happening? I dont want all the jobs that
> depend on this shared library to re-run whenever there is a change made to
> it. I know this could technically be a good thing, but for now I want to
> disable 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/5f3d6c01-b693-4c5e-b441-9f1688a05b2a%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/CAO49JtGdDW7SA0CqYg5s%3DMJH8Y8psOZUj%3DALh3nKG7PkKy36qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Major update to Matrix Authorization Plugin on experimental update center

2017-09-15 Thread Daniel Beck
Hi everyone,

I recently fixed several long-standing issues with the Matrix Auth plugin. A 
beta release of the major update 2.0 is available on the experimental update 
center[2]. The list of changes is available on the plugin's page[1].

Please help me test it to ensure a smooth upgrade experience once I release the 
final 2.0 in a few weeks. To install it, configure Jenkins to use the 
experimental update center[2] or download the plugin from our Maven 
repository[3] and upload it to Jenkins via Manage Plugins » Advanced.

If you discover any issues, please file then in the `matrix-auth-plugin` 
component in the JENKINS project on the Jenkins issue tracker.

Thanks!
Daniel

1: https://plugins.jenkins.io/matrix-auth
2: https://jenkins.io/blog/2013/09/23/experimental-plugins-update-center/
3: 
https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/matrix-auth/2.0-beta-1/matrix-auth-2.0-beta-1.hpi


-- 
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/0FEF3C59-BF05-433D-BC39-6B4BE3ABD6CF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Jenkins doesn't start automatically after a PC boots

2017-09-15 Thread Masaru Tsuchiyama

Hello

Jenkins doesn't start automatically after a PC boots.

I installed Jenkins by windows installer at
https://jenkins.io/download/thank-you-downloading-windows-installer

If I start Jenkins service at services.msc manually, it can be started.
I'm running Jenkins as a normal user not System Account.

I'm using Jenkins 2.78 now, but it has been happening for several 
months. I'm not sure which version of Jenkins is the first version

which reproduces.


--
Masaru Tsuchiyama 

--
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/e751ea50-038b-8477-388c-17729581d2f6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One github repo, two pipelines, two distinct checks in github?

2017-09-15 Thread Richard Bywater
With regards to 1, the credentials and credential binding plugins would
probably help out there as you wouldn't have to embed the token in the
script.

Can't comment on the other issues though.

Richard

On Sat, 16 Sep 2017, 3:01 AM 'Ian Smith' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi Ann,
>
> Thank you for that information. Sadly this isn't a viable option due to
> two reasons
>
>1. Having to embed the Github user token in the curl command, which
>means adding that to the Jenkinsfile script
>2. The webhook still takes the value of the build state for the last
>pipeline. So although I can define separate values and I see three check
>marks in the PR in github, if the second pipeline marks the build as a
>failure then the pr-merge status is also set to failure.
>
> Kind regards, Ian
>
> On Saturday, September 9, 2017 at 6:18:36 AM UTC+1, Ann B wrote:
>>
>> Hi Ian-
>>
>> I'm sorry that I cannot answer your question directly, as we do not use a
>> web hook.
>>
>> Have you thought of posting to the github statuses api -
>> https://developer.github.com/v3/repos/statuses/#create-a-status with a
>> separate link for each of your pipelines?   We kick off all of our pipeline
>> jobs in parallel (static, functional, unit, etc).  Each job adds a Statuses
>> link to the PR with an initial value of 'Pending' with a link to the
>> running job in jenkins.  As each parallel job finishes, it updates the PR
>> Status with 'Failed' or 'Passes'.
>>
>> Ann
>>
> --
> 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/a662c5ae-5c92-40ac-9169-9446477d9f60%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/CAMui947Qw6jd5A61vbEWwQ5wTRUcXJ8sbVAQBv%2BZemrh_p73sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


All jobs run when shared library is updated

2017-09-15 Thread red 888
I have my whole pipeline block of code defined in a shared library and my 
jenkinsfiles for my apps just call this shared library.

I noticed though that when I modify the shared library and push to the git 
repo ALL the jenkins jobs that depend on this library re-run.

How can I prevent this from happening? I dont want all the jobs that depend 
on this shared library to re-run whenever there is a change made to it. I 
know this could technically be a good thing, but for now I want to disable 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5f3d6c01-b693-4c5e-b441-9f1688a05b2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running a bat file

2017-09-15 Thread t3knoid
Have you looked at using the Start command? As I understand it, it starts a 
process in a different context. In this way, when the Jenkins job ends, it 
doesnt shut down the service since its in a different context.

On Friday, September 15, 2017 at 4:01:58 AM UTC-4, harvey wrote:
>
> Currently I am just trying to create a single build to Start the glassfish 
> server. For the same I used a freestyle project and by selecting "Run a 
> batch windows command line" in building steps I wrote the following 
> commands:
>
> cd c:\glassfish3\bin
> call asadmin start-domain
>
> Then I saved the build and executed it. The build completes with status 
> success, but the glassfish server remain unstarted.
>
> Other than these steps I haven't done any other steps. I did not set an 
> ERROR LEVEL. 
>
> Is there something I am missing ?
>
> Regards,
> Harvey
>

-- 
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/bf19be64-6f59-4c90-a152-91c97d240985%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invoke another pipeline under another repository's branch

2017-09-15 Thread Viacheslav Dubrovskyi


15.09.2017 17:50, Dan Tran пишет:

Ping!

0% packet loss

--
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/c6f7183f-313b-8653-63e2-7e4e16ddfe86%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One github repo, two pipelines, two distinct checks in github?

2017-09-15 Thread 'Ian Smith' via Jenkins Users
Hi Ann,

Thank you for that information. Sadly this isn't a viable option due to two 
reasons

   1. Having to embed the Github user token in the curl command, which 
   means adding that to the Jenkinsfile script
   2. The webhook still takes the value of the build state for the last 
   pipeline. So although I can define separate values and I see three check 
   marks in the PR in github, if the second pipeline marks the build as a 
   failure then the pr-merge status is also set to failure.

Kind regards, Ian

On Saturday, September 9, 2017 at 6:18:36 AM UTC+1, Ann B wrote:
>
> Hi Ian-
>
> I'm sorry that I cannot answer your question directly, as we do not use a 
> web hook.
>
> Have you thought of posting to the github statuses api - 
> https://developer.github.com/v3/repos/statuses/#create-a-status with a 
> separate link for each of your pipelines?   We kick off all of our pipeline 
> jobs in parallel (static, functional, unit, etc).  Each job adds a Statuses 
> link to the PR with an initial value of 'Pending' with a link to the 
> running job in jenkins.  As each parallel job finishes, it updates the PR 
> Status with 'Failed' or 'Passes'.
>
> Ann
>

-- 
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/a662c5ae-5c92-40ac-9169-9446477d9f60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PTC plugin: Java with Integrity older than 10.5

2017-09-15 Thread rampaulj
Hello Leon,

I am working on the same configuration as your

Integrity Server version - 10.3
Jenkins Plugin 1.31-4.10.9049.

I am getting only the folders checked out and not the files.

I am using the Java version higher than yours can you please let me know if 
that would be a problem.

Also please let me know the Jenkins version being used by you.

Regards,
Rampaul

-- 
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/595fd21b-0a63-4471-bded-5bb098941941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invoke another pipeline under another repository's branch

2017-09-15 Thread Dan Tran
Ping!

-- 
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/90ffc108-4a5c-4081-b902-99e0f4679b25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch jobs and webhooks

2017-09-15 Thread Steven Foster


On Friday, September 1, 2017 at 11:57:32 AM UTC+1, Stephen Connolly wrote:
>
> The credentials provided for manage hooks needs to have permission to 
> manage hooks on all repositories.
>
> You may need to trigger the "Re-register hooks for all jobs" if something 
> went wrong.
>
> HTH
>

Still struggling with this. I'm continuing testing on a dedicated Jenkins 
for figuring this out in a small, reproducible way before rolling it out to 
a user with org-wide permissions. 

My repositories are in GitHub enterprise, private under my user (so not an 
organization). The credential provided to GitHub global config is secret 
text of a key from my personal user with *admin:org_hook, admin:repo_hook, 
repo *permissions.
The credential works with Test Connection.
The credentials given to the multibranch job configuration are my GitHub 
username and password credentials.
In the Jenkins system log I see "GitHub webhooks activated for job webhook 
with [] (events: [PULL_REQUEST, PUSH])"
In GitHub I don't see any webhooks set up in the repo settings, and the job 
doesn't respond to push events.

Going through with a debugger near that log event (GithubPlugin 
WebhookManager, registerFor) it seems like the repository name is not being 
mapped from the multibranch job (it's not an SCMTriggerItem). You'll know 
how this works better than I do, maybe this process is irrelevant and the 
log event doesn't apply here. Is there anywhere else I can run with a 
debugger that might 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/e46349c5-b25b-4687-9c2c-463c4fe78c02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


shutdown the OS when all build jobs are done

2017-09-15 Thread Masaru Tsuchiyama

Hello

Is there any way to shutdown the OS when all build jobs are done?
I'm using Win10 Pro.

--
Masaru Tsuchiyama 

--
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/db75eb00-9a39-9d57-8933-083b839d4511%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fwd: using pararllel in a dynamic list of stages

2017-09-15 Thread Viacheslav Dubrovskyi

Hi,

Did you read https://jenkins.io/doc/pipeline/examples/#parallel-from-list ?


15.09.2017 13:33, Jes Struck пишет:
Hi all I'm trying to do something that might be  a stupid idea, but I 
can't get it to work as i exspect


I have a list of components that I whant to do something with, so in 
my Jenkins file i have created a list, and used each on that list to 
dynamicly create stages. But my problem is that we would actually like 
to have al this stuff done in *parallel* but each is I'm guessing 
secuential by nature. so does anybody have a good solution to this?



currently my code has the structure like
node('master){
  [a,b,c,...].each{
    stage(it){
      dir(it){
        //do something with the component's
      }
    }
  }
}





--
/Jes
--
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/CACfmdz0Ox26Z4Dgw74wd5grF5k%3DKCU%2BLaVukup2mZ8VxBu7SUQ%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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/fbfdb1fb-a99d-9c9b-fc8a-982453538e4e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Fwd: using pararllel in a dynamic list of stages

2017-09-15 Thread Jes Struck
Hi all I'm trying to do something that might be  a stupid idea, but I can't
get it to work as i exspect

I have a list of components that I whant to do something with, so in my
Jenkins file i have created a list, and used each on that list to dynamicly
create stages. But my problem is that we would actually like to have al
this stuff done in *parallel* but each is I'm guessing secuential by
nature. so does anybody have a good solution to this?


currently my code has the structure like
node('master){
  [a,b,c,...].each{
stage(it){
  dir(it){
//do something with the component's
  }
}
  }
}





-- 
/Jes

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


Re: "no such session" from Jenkins

2017-09-15 Thread Ana MB
Hi again...
The error that I get in the log session is:

*09:22:01.513 WARN - Session 90fe1c1e-3e21-4e88-8ccf-0bd6179fd9f2 deleted 
due to in-browser timeout. Terminating driver with DeleteSession since it 
does not support Killable, the driver in question does not support 
selenium-server timeouts fully*


This is an illogical error because I run this test from local computer, but 
with Jenkins I get that error
What could I do to solve it?

Thanks so much!!


El viernes, 15 de septiembre de 2017, 9:57:08 (UTC+2), Ana MB escribió:
>
> And if I run the tests from my local pc I don't get that error exception.
>
> Thanks!
>
> El viernes, 15 de septiembre de 2017, 9:56:32 (UTC+2), Ana MB escribió:
>>
>> Hi guys!
>>
>> I'm having problems with my Selenium tests from my Jenkins. Sometimes, I 
>> get "no such session" error in my Eclipse when I run my Selenium Test in an 
>> external server Jenkins. Jenkins closes the window after loading page 
>> correctly (a graphic). 
>>
>> I've read that the solution is starting chrome with option 
>> --disable-impl-side-painting.
>> Do you know how could I disable that option from my java Selenium test??
>>
>> Do you know any other solution?
>>
>> Thanks so much!!!
>>
>

-- 
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/e5045ff8-9bfe-4500-9c82-c2e3c996979c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


understanding milestone and locks - why is stage terminated?

2017-09-15 Thread Torsten Reinhard
Hi, 

I have a large development pipeline doing the Build, Deploy & Test of some 
MicroServices. Reduced to the essential parts it looks like:

node() {
stage ("CI: Build, unit test") {
milestone label: 'Building...'
ciBuildTest( ... )
}

// Lock running SonarQube - the newest build waiting for this lock will 
get it, first
// => old builds should be skipped to save time
lock( resource:"${myProject}-SonarQube", inversePrecedence: true) {
stageCiAnalysis( ... )
milestone label: 'SonarQube analyzed'
}

// Lock using the environment - the newest build waiting for this lock 
will get it, first
// => old builds should be skipped to save time
lock(resource:"${myProject}-${ENVIRONMENT}", inversePrecedence: true) {
migrateDatabase (...)
deployToServer(...)
smokeTest(...)

milestone label: "${config.environment} deployed and tested"
}
}


The intention is that parallel buils are created even when an older build 
is being analyzed by SonarQube or if it will is being deployed and tested - 
and if the (deployment) lock is released, the newest build (LIFO) should be 
used for the next deployment.

When running that pipeline, I detected the "deployToServer" stage being 
interrupted - although it´s part of a lock that hasn´t been released:

2017-09-12 16:38:27,208 [main] INFO  LogOutputHandler deploying...

Superseded by DEV/MRPCLASSIC/DEV_MRPCLASSIC_DEVELOPMENT#548
Sending interrupt signal to process[Pipeline] }[Pipeline] // stage[Pipeline] 
}Lock released on resource [DEV-MRP-EMEA-TEST]

Why does Build #548 send an interrupt signal to #547 that is being executed - 
and inside a lock? 

Whats´missing here?

thanx for any advice, 

best regards, Torsten

-- 
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/a5367bf2-3618-42d4-8790-2ae31463bf39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How can i call global function defined in Jenkinsfile from inside the external groovy script loaded with 'load' step ?

2017-09-15 Thread ishan jain
Hi,

My Jenkinsfile is getting rather large and i want to break it down into 
different groovy scripts for easy maintenance. Here is a sample code 
structure.


externalScripts = ''

pipeline {
agent master
stages {

stage('first') {

agent { label 'master' }
steps {
script {
loadScripts()
externalScripts.functionA()
}
}
}
}
stage('second') {

agent { label 'some_slave_node' }
steps {
script {
externalScripts.functionB()
}
}
}
}
}

def someGlobalFunction() {
// some common code
}

def loadScripts() {

externalScripts = load 'script_next_to_jenkinsfile.groovy'
}


This works fine if i have some independent code defined in external groovy 
file. But this breaks if i call a function defined in main Jenkinsfile. 

// contents of script_next_to_jenkinsfile.groovy

def functionA() {
// Some regular code will work just fine
}

def functionB() {

   // this throws an error - java.lang.NoSuchMethodError: No such DSL 
method 'someGlobalFunction' found among steps

someGlobalFunction()
}
return this



I thought the groovy files are loaded in the whole code. How can i make it 
work like this setup ?

-- 
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/f959f630-2892-452b-a6da-2f56e3b8d329%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins ver. 1.586 hangs after build

2017-09-15 Thread Mark Muizer
Hi there,

I got the same issue here, any idea what the problem was?

TIA!

Mark

Op woensdag 5 november 2014 11:54:41 UTC+1 schreef T Klöber:
>
> I just updated to the latest Jenkins version and now my build job never 
> finishes but hangs for hours!
> If I abort the job I get the following messages in my console output:
>
> :
> Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
>
> [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: 
> Invalid object ID 8 iota=19
> [INFO] 
> [INFO] 
> *--- maven-failsafe-plugin:2.11:verify (default) @ slc-common ---*[INFO] 
> Failsafe report directory: D:\_dev\workspaces\x\target\failsafe-reports
> [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: 
> Invalid object ID 8 iota=19
> [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: 
> Invalid object ID 8 iota=19
> [WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: 
> Invalid object ID 11 iota=19
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building xxx 3.5-SNAPSHOT
> [INFO] 
> 
> [INFO] 
> [INFO] 
> *--- maven-clean-plugin:2.5:clean (default-clean) @ slc-web-common ---*[INFO] 
> Deleting D:\_dev\workspaces\\target
> channel stopped
> Process leaked file descriptors. See 
> http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for 
> more information
> Build wurde abgebrochen
> Aborted by anonymous 
> Finished: ABORTED
>
>
>
> anyone can tell me what this is?
>
> Even worse, after aborting the job I can't restart the jobs because the 
> genarted jar-files are locked and clean can't remove them.
>
> The job is a Maven job and runs locally on my system (Windows 7)
>

-- 
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/b2a1f3c1-db9a-4605-9a96-7a03ac8ff53b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running a bat file

2017-09-15 Thread harvey
Currently I am just trying to create a single build to Start the glassfish 
server. For the same I used a freestyle project and by selecting "Run a 
batch windows command line" in building steps I wrote the following 
commands:

cd c:\glassfish3\bin
call asadmin start-domain

Then I saved the build and executed it. The build completes with status 
success, but the glassfish server remain unstarted.

Other than these steps I haven't done any other steps. I did not set an 
ERROR LEVEL. 

Is there something I am missing ?

Regards,
Harvey

-- 
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/d303caf3-7f66-4f2e-a604-360819d8288d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "no such session" from Jenkins

2017-09-15 Thread Ana MB
And if I run the tests from my local pc I don't get that error exception.

Thanks!

El viernes, 15 de septiembre de 2017, 9:56:32 (UTC+2), Ana MB escribió:
>
> Hi guys!
>
> I'm having problems with my Selenium tests from my Jenkins. Sometimes, I 
> get "no such session" error in my Eclipse when I run my Selenium Test in an 
> external server Jenkins. Jenkins closes the window after loading page 
> correctly (a graphic). 
>
> I've read that the solution is starting chrome with option 
> --disable-impl-side-painting.
> Do you know how could I disable that option from my java Selenium test??
>
> Do you know any other solution?
>
> Thanks so much!!!
>

-- 
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/1e5c15f0-fca3-4ea5-a1cd-aaa4add9bc32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


"no such session" from Jenkins

2017-09-15 Thread Ana MB
Hi guys!

I'm having problems with my Selenium tests from my Jenkins. Sometimes, I 
get "no such session" error in my Eclipse when I run my Selenium Test in an 
external server Jenkins. Jenkins closes the window after loading page 
correctly (a graphic). 

I've read that the solution is starting chrome with option 
--disable-impl-side-painting.
Do you know how could I disable that option from my java Selenium test??

Do you know any other solution?

Thanks so much!!!

-- 
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/8bd11a16-252b-4c02-aeb9-f073c0338640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.