Re: After uninstalling Blue Ocean 1.0, link to build in GitHub remains with /blue, leading to 404

2017-04-07 Thread James Dumay
You might be using a much older beta as this problem has been fixed in 
display url api plugin 1.1. The effect is that when you uninstall Blue 
Ocean, your links just redirect to classic.

On Friday, April 7, 2017 at 5:42:15 AM UTC+10, Idan Adar wrote:
>
> When uninstalling, make sure to search for both "blue ocean" and 
> "blueocean". There were a couple of additional plugins not uninstalled yet, 
> one of which handled the redirect from github to /blue.
>
> On Thursday, April 6, 2017 at 10:13:04 PM UTC+3, Liam Newman wrote:
>>
>>
>> Sounds like there needs to be a setting for that.
>>
>> Please file an issue on https://issues.jenkins-ci.org .
>>
>> I just popped over to the gitter channel for blue ocean (
>> https://gitter.im/jenkinsci/blueocean-plugin) to ask about this, too.  
>>
>>
>> On Thursday, April 6, 2017 at 8:46:11 AM UTC-7, Idan Adar wrote:
>>>
>>> Perhaps Liam (CCed) can help?
>>>
>>> On Thursday, April 6, 2017 at 5:41:03 PM UTC+3, Idan Adar wrote:

 Apparently after installing Blue Ocean, the build check links in GitHub 
 were changed to /blue. Was this mentioned somewhere?
 After uninstalling Blue Ocean (I uninstalled all "blue ocean" plugins), 
 the link remains... but now it leads to 404, because whatever /blue is, 
 it's no longer available.

 How can I fix 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/33292616-56e0-49d4-8f47-550bc6c3c609%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins SAML + nginx + ELB

2017-04-07 Thread Grzegorz Szypa
It is already registred, so why I do not know what's going on

W dniu piątek, 7 kwietnia 2017 19:09:19 UTC+2 użytkownik Ivan Fernandez 
Calvo napisał:
>
> You have a different issue, in your case your Sp, Jenkins, it is not 
> register on your IdP so it reject your request for authentication, the 
> method to register a new SP depends of your IdP, here you have an example 
> of configuration with simplesamlphp, it identifies the SP with the response 
> URL like your

-- 
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/57781d48-f686-4c32-87ab-0158f0dc6de1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Blue Ocean - access key for Github enterprise

2017-04-07 Thread Tuan Doe
Hello,

I'm currently using Github enterprise to setup Blue Ocean.  Blue ocean does 
not accept personal access token in Github enterprise.  Is there another 
way to generate the access token?

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/609f7d93-8fef-44c3-85c6-767ec0acf773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


using .each with closure in jenkins pipeline - @NonCPS method

2017-04-07 Thread niristotle okram
Can anyone say, if the issue of using '.each{ }' , with the closure in
jenkins https://issues.jenkins-ci.org/browse/JENKINS-26481

also affect a NonCPS method??

I find it works okay in a master only env.

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


Multijob plugin

2017-04-07 Thread CLOSE Dave
I really like the Multijob plugin 
(), though 
I see there is some encouragement to move to the Pipelines 
conglomeration. For my purposes, Multijob is more straight-forward and 
presents clear results. It includes a potentially very helpful feature, 
the ability to skip a build if SCM has not changed since the last 
successful build. But that isn't working right for us so I'd appreciate 
some advice.

Most of our builds are not from the GIT master branch but from other 
branches. We pass a parameter to jobs to specify which branch to use. 
However, it appears that Multijob always checks for changes on the 
master branch. Since that branch doesn't change often, the effect is to 
skip builds which should occur.

Does anyone know a way, without trying to modify the code, to get 
Multijob to check a different branch?
-- 
Dave Close

-- 
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/3b2e06f6-3441-866f-956f-eef362a46fbb%40us.thalesgroup.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins SAML + nginx + ELB

2017-04-07 Thread Ivan Fernandez Calvo
The URL with an example 
https://github.com/kuisathaverat/docker-simplesamlphp/blob/master/etc/simplesamlphp/metadata/saml20-sp-remote.php

-- 
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/37df77cf-1d47-4a6c-8714-9d5b43107fd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins SAML + nginx + ELB

2017-04-07 Thread Ivan Fernandez Calvo
You have a different issue, in your case your Sp, Jenkins, it is not register 
on your IdP so it reject your request for authentication, the method to 
register a new SP depends of your IdP, here you have an example of 
configuration with simplesamlphp, it identifies the SP with the response URL 
like your

-- 
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/6e9966eb-2330-44bb-91fb-2ffd7a3ae825%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add the version after the app name (Deploy to Container Plugin)

2017-04-07 Thread 'Maciej Jaros' via Jenkins Users

Elcio Junior (2017-04-06 16:00):

Hi,
I use Jenkins with the Deploy to Container Plugin and I can deploy to 
my server (glassfish).

The app looks like this:

Test.war

But I want to add the version after the app name.
Example:

Test-1.0.war

Could someone tell me what configuration is needed so that when 
accessing the glassfish control panel (4848) the app name is with the 
version?


Not sure about Glasfish, but Tomcat supports war versions with `##`.

E.g. revision 1 app would be:
ROOT##1.war

E.g. revision 123 app would be:
ROOT##123.war

Not sure what if you can only use numbers after `##` or any alpha-numerics.

Regards,
Nux.

--
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/1b9d88a6-a887-c4d2-c8a6-d6885874b569%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Getting hold of console log for a stage (icluding parallel stages)?

2017-04-07 Thread 'Per Ostman' via Jenkins Users
Hi!

Does anyone know how to get hold of the console log for a stage? I'd like 
to send it via email.
It's accessible in blueocean, so it should be possible through some API?

/P

-- 
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/63ef2716-61d1-4c93-9bcb-272eb86105d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Locking doesn't work across multiple nodes?

2017-04-07 Thread Jonathan del Strother
Are pipeline locks expected to behave when used by two nodes simultaneously?

My Jenkinsfile defines the following helper - 

def log(msg) {
  echo((new Date().format("-MM-dd'T'HH:mm:ss: ")) + msg)
}

def lockDB(number, callback) {
  try {
log "${number}: Acquiring lock ..."
lock(resource: "boom-test-database-${number}", inversePrecedence: true) 
{
  log "${number}: Acquired!"
  callback()
  log "${number}: Releasing..."
}
  } finally {
log "${number}: Released!"
  }
}


I somewhat frequently see two nodes manage to acquire the same lock 
simultaneously, as in the following example, where master locked a resource 
from 14:45:57 -> 14:52:04, and the slave locked the same resource 
from 14:51:24 -> 14:56:43.


[featureTests] Running on master in 
/var/jenkins_home/workspace/BoomMultiPipeline_master-YRHUUT2RENAD5FNHS4YJ5GQKTJDN2M7B3KGAU3ELBWX7MZ2AEKBA
[featureTests] 2017-04-07T14:40:44: 1: Acquiring lock ...
[Pipeline] [featureTests] lock
[featureTests] Trying to acquire lock on [boom-test-database-1]
[featureTests] Found 0 available resource(s). Waiting for correct amount: 1.
[featureTests] [boom-test-database-1] is locked, waiting...
[featureTests] Lock acquired on [boom-test-database-1]
[featureTests] 2017-04-07T14:45:57: 1: Acquired!
... running tests
[featureTests] Lock released on resource [boom-test-database-1]
[featureTests] 2017-04-07T14:52:04: 1: Released!




[featureTests] Running on slave in 
/var/jenkins_home/workspace/eline_tb_remaining_indices2-DTE7IMSYRVCF6GO3T5IRRR52R4YQ3GSRFNEEKCRH7FGSUBQB4SFQ
[featureTests] 2017-04-07T14:49:33: 1: Acquiring lock ...
[Pipeline] [featureTests] lock
[featureTests] Trying to acquire lock on [boom-test-database-1]
[featureTests] Found 0 available resource(s). Waiting for correct amount: 1.
[featureTests] [boom-test-database-1] is locked, waiting...
[featureTests] Lock acquired on [boom-test-database-1]
[featureTests] 2017-04-07T14:51:24: 1: Acquired!
... running tests
[featureTests] Lock released on resource [boom-test-database-1]
[featureTests] 2017-04-07T14:56:43: 1: Released!



Is this a bug, or am I misunderstanding how locking is supposed to work in 
Jenkins?

-- 
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/cee660ee-60dd-4f17-a5c5-be3a7f01e87c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
The thought crossed my mind. Will do just that.

On Friday, April 7, 2017 at 5:34:19 PM UTC+3, Mark Waite wrote:
>
> I think the best thing you could do for the community is document it.  
> Find a reasonable place in the Jenkins Handbook 
> , and submit a pull request with your 
> information.  That will help others use what you've learned.
>
> Mark Waite
>
> On Fri, Apr 7, 2017 at 8:27 AM Idan Adar  
> wrote:
>
>> Okay, I guess that after the first time the Jenkinsfile is read Jenkins 
>> must have saved this info somewhere as when looking at the job in Jenkins 
>> there is a "View Configuration" button and there you can see the specified 
>> schedule. sigh. I wish that'd be documented...
>>
>> -- 
>> 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/9180e134-f2d4-4c80-936a-9853fd8d8720%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/74d837e9-7013-485c-9e19-6cb7f3603d91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Mark Waite
I think the best thing you could do for the community is document it.  Find
a reasonable place in the Jenkins Handbook ,
and submit a pull request with your information.  That will help others use
what you've learned.

Mark Waite

On Fri, Apr 7, 2017 at 8:27 AM Idan Adar  wrote:

> Okay, I guess that after the first time the Jenkinsfile is read Jenkins
> must have saved this info somewhere as when looking at the job in Jenkins
> there is a "View Configuration" button and there you can see the specified
> schedule. sigh. I wish that'd be documented...
>
> --
> 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/9180e134-f2d4-4c80-936a-9853fd8d8720%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/CAO49JtE2jqToDtS-p-9Th9ZD9jR5n%3DDUhpauDpHHzc0ovn6A_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
Okay, I guess that after the first time the Jenkinsfile is read Jenkins 
must have saved this info somewhere as when looking at the job in Jenkins 
there is a "View Configuration" button and there you can see the specified 
schedule. sigh. I wish that'd be documented...

-- 
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/9180e134-f2d4-4c80-936a-9853fd8d8720%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Mark Waite
No, I don't.

On Fri, Apr 7, 2017 at 8:15 AM Idan Adar  wrote:

> Yep, thanks. In my last update I did the same cron as you.
> Do you happen to know how does the triggers directive actually works with
> a declarative pipeline (Jenkinsfile)? how does it tell Jenkins to actually
> start the job at the specified hours?
>
>
> On Friday, April 7, 2017 at 5:08:54 PM UTC+3, Mark Waite wrote:
>
> That same exception is reported when you enter that cron specification
> into the "Poll SCM" field of a freestyle job.
>
> I think the issue is that you have six fields in your cron specification,
> while the online help indicates it only accepts 5 fields.
>
> I think you want 'H 12,16,20 * * 1-4,7' or if you really want it at the
> start of the hour rather than at some time during the hour, then '0
> 12,16,20 * * 1-4,7'.
>
> Mark Waite
>
> On Fri, Apr 7, 2017 at 8:00 AM Idan Adar  wrote:
>
> oops... disregard the snippet, it was wrong (but the failure is there
> anyway).
>
> The following is the cron used.
> I am attempting to run the job at 12:00, 16:00 and 20:00 on
> Sunday-Thursday... (every week, every month, every year).
>
> triggers {
>cron '0 12,16,20 * * 1-4,7 *'
> }
>
> The error is the following. Why?
>
> Caused by: antlr.ANTLRException: Invalid input: "0 12,16,20 * * 1-4,7 *": 
> line 1:21: expecting EOF, found ' '
>
>
> The documentation states that  "The Unix cron style syntax is supported."
> I thus used the following as reference:
> http://www.nncron.ru/help/EN/working/cron-format.htm
>
> --
> 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/3b6ffda4-1804-420f-9b14-6191ff85c578%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/69b05c91-d523-4574-b37a-6fa4ae26c7ae%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/CAO49JtGM5uoVkB7H_KN_UP2WV3TLTq2kFeA3ruxO-5enmtS2gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
Yep, thanks. In my last update I did the same cron as you.
Do you happen to know how does the triggers directive actually works with a 
declarative pipeline (Jenkinsfile)? how does it tell Jenkins to actually 
start the job at the specified hours?

On Friday, April 7, 2017 at 5:08:54 PM UTC+3, Mark Waite wrote:
>
> That same exception is reported when you enter that cron specification 
> into the "Poll SCM" field of a freestyle job.
>
> I think the issue is that you have six fields in your cron specification, 
> while the online help indicates it only accepts 5 fields.
>
> I think you want 'H 12,16,20 * * 1-4,7' or if you really want it at the 
> start of the hour rather than at some time during the hour, then '0 
> 12,16,20 * * 1-4,7'.
>
> Mark Waite
>
> On Fri, Apr 7, 2017 at 8:00 AM Idan Adar  
> wrote:
>
>> oops... disregard the snippet, it was wrong (but the failure is there 
>> anyway).
>>
>> The following is the cron used.
>> I am attempting to run the job at 12:00, 16:00 and 20:00 on 
>> Sunday-Thursday... (every week, every month, every year).
>>
>> triggers {
>>cron '0 12,16,20 * * 1-4,7 *'
>> }
>>
>> The error is the following. Why?
>>
>> Caused by: antlr.ANTLRException: Invalid input: "0 12,16,20 * * 1-4,7 *": 
>> line 1:21: expecting EOF, found ' '
>>
>>
>> The documentation states that  "The Unix cron style syntax is supported."
>> I thus used the following as reference: 
>> http://www.nncron.ru/help/EN/working/cron-format.htm
>>
>> -- 
>> 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/3b6ffda4-1804-420f-9b14-6191ff85c578%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/69b05c91-d523-4574-b37a-6fa4ae26c7ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Mark Waite
That same exception is reported when you enter that cron specification into
the "Poll SCM" field of a freestyle job.

I think the issue is that you have six fields in your cron specification,
while the online help indicates it only accepts 5 fields.

I think you want 'H 12,16,20 * * 1-4,7' or if you really want it at the
start of the hour rather than at some time during the hour, then '0
12,16,20 * * 1-4,7'.

Mark Waite

On Fri, Apr 7, 2017 at 8:00 AM Idan Adar  wrote:

> oops... disregard the snippet, it was wrong (but the failure is there
> anyway).
>
> The following is the cron used.
> I am attempting to run the job at 12:00, 16:00 and 20:00 on
> Sunday-Thursday... (every week, every month, every year).
>
> triggers {
>cron '0 12,16,20 * * 1-4,7 *'
> }
>
> The error is the following. Why?
>
> Caused by: antlr.ANTLRException: Invalid input: "0 12,16,20 * * 1-4,7 *": 
> line 1:21: expecting EOF, found ' '
>
>
> The documentation states that  "The Unix cron style syntax is supported."
> I thus used the following as reference:
> http://www.nncron.ru/help/EN/working/cron-format.htm
>
> --
> 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/3b6ffda4-1804-420f-9b14-6191ff85c578%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/CAO49JtEw2x9v94n4RFJDqeSSS__piZoBHr9-Tn3dBEOLf6vL%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
Okay, I tried various variations, this one works: 0 12,16,20 * * 1-4,7
Meaning: "At minute 0 past hour 12, 16, and 20 on every day-of-week from 
Monday through Thursday and Sunday."

Could someone now explain to me how this is supposed to work in Jenkins? 
How will Jenkins know when to actually run it _automatically_? i.e. 
schedule the job to run at the specified hours?

-- 
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/e9b77409-8930-42be-a0d4-8f13cc762ac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
oops... disregard the snippet, it was wrong (but the failure is there 
anyway).

The following is the cron used.
I am attempting to run the job at 12:00, 16:00 and 20:00 on 
Sunday-Thursday... (every week, every month, every year).

triggers {
   cron '0 12,16,20 * * 1-4,7 *'
}

The error is the following. Why?

Caused by: antlr.ANTLRException: Invalid input: "0 12,16,20 * * 1-4,7 *": line 
1:21: expecting EOF, found ' '


The documentation states that  "The Unix cron style syntax is supported."
I thus used the following as 
reference: http://www.nncron.ru/help/EN/working/cron-format.htm

-- 
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/3b6ffda4-1804-420f-9b14-6191ff85c578%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Managed Script Plugin

2017-04-07 Thread Srikanth Mamidala


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

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

Anyone have any answers for these Plugin issues? 

Thank you. 

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


Re: Delete workspace on slave

2017-04-07 Thread Mark Waite
I suspect that is behaving as expected.  The "Delete workspace before build
starts" probably only deletes the "flyweight" workspace when it is used in
the context of a multi-configuration job.

If you're using Git as your SCM, there is an "Additional Behaviours" choice
to "Wipe out repository and force clone".  That will wipe the workspace in
each of the multi-configuration jobs.

Mark Waite

On Fri, Apr 7, 2017 at 12:47 AM Romaric Crailox 
wrote:

> Hello,
>
> I do not know if it's normal or a Jenkins error, but I have a job with
> configuration matrix to perform build on 2 computer.
> I have "Delete workspace before build starts" option checked on this job.
>
> Unfortunately, workspace is delete only on "master" node, that is node
> where main job (job which launch all the job necessary to cover
> configuration matrix) is perform.
> Workspace on second node is not delete.
>
> Do you know if it's normal?
>
> 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/8bdfc171-45fa-4fd2-ba22-7f9b021b09ec%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/CAO49JtEmgJfkcMzSt9vGwz0XU%3DRr16OFh%2BAU3njyAGWyGJqMsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: LTS upgrade has no slave.jar?

2017-04-07 Thread Eric Pyle
The LTS Changelog  (heading 
*Notable changes since 2.32.3)* shows that slave.jar is no longer 
included because it it identical to remoting.jar.


On 4/7/2017 6:30 AM, Consult Hyperion * wrote:
Normally when I upgrade Jenkins the first thing I have to do is go to 
\war\WEB-INF and get the slave.jar file for my Windows nodes. I ran 
the upgrade as usual this morning (to 2.46.1) and there was no 
slave.jar file there, or anywhere else I could see. I'm thinking they 
wouldn't have changed that so I can only assume it's missing. I tried 
downloading the WAR file but it's not there either. Surely they didn't 
just forget to put it in there?

--
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/4171c98c-ad7a-447b-aa90-cc306a25593d%40googlegroups.com 
.

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


--
*Eric Pyle
*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@siemens.com 
http://www.siemens.com/plm 

--
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/13704fcd-0245-d287-e3ff-eb5f80c6a7fd%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


SEVERE: I/O error in channel Chunked connection to http://example:8080/cli

2017-04-07 Thread Christopher Antony Raj
Hi, 

I am trying to delete the old build from cli using the command

java -jar jenkins-cli.jar -s http://example.com:8080 delete-builds 
myproject '25-26' --username $user --password $pwd

but getting these errors :

java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
at java.io.ObjectInputStream.(ObjectInputStream.java:299)
at 
hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)

hudson.remoting.RequestAbortedException: java.io.StreamCorruptedException: 
invalid stream header: 0A0A0A0A
at hudson.remoting.Request.abort(Request.java:303)
at hudson.remoting.Channel.terminate(Channel.java:863)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:92)
at ..remote call to Chunked connection to 
http://example.com:8080/cli(Native Method)
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1433)
at hudson.remoting.Request.call(Request.java:172)
at hudson.remoting.Channel.call(Channel.java:796)
at 
hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:252)
at hudson.remoting.$Proxy1.waitForProperty(Unknown Source)
at hudson.remoting.Channel.waitForRemoteProperty(Channel.java:1275)
at hudson.cli.CLI.(CLI.java:141)
at 
hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
at hudson.cli.CLI._main(CLI.java:473)
at hudson.cli.CLI.main(CLI.java:384)
Caused by: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
at java.io.ObjectInputStream.(ObjectInputStream.java:299)
at 
hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)

-- 
DISCLAIMER: The information in this message is "Powerupcloud Technologies" 
confidential and may be legally privileged. It is intended solely for the 
addressee. Access to this message by anyone else is unauthorized. If you 
are not the intended recipient, any disclosure, copying, or distribution of 
the message, or any action or omission taken by you in reliance on it, is 
prohibited and may be unlawful. Please contact h...@powerupcloud.com 
immediately if you have received this message in error. Thank you.

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


Re: How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
FYI, The log is from my actual pipeline. The code snippet is just usage 
example.

-- 
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/c91cefca-aef6-4f1b-8c91-fb62b078b3a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting result of a stage in a pipeline job?

2017-04-07 Thread 'Per Ostman' via Jenkins Users
Ah! So you're using the fact that if one reaches the end of the stage, the
stage has succeeded... I feel stupid - I was trying to get hold of the
stage result through the java api...

Thanks! I'll try it out!

On Fri, Apr 7, 2017 at 1:14 PM, Idan Adar  wrote:

> You could something like the following, where if all actions have worked,
> it'll simply read the slack action and perform it.
>
> stage ("Publish CF app") {
>  environment {
> JENKINSBOT = credentials('...')
>  }
>
>  when {
> branch "develop"
>  }
>
>  steps {
> script {
>STAGE_NAME = "Publish CF app"
> }
>
> // Login and push
> sh "cf api ..."
> sh "cf login ... -u $JENKINSBOT_USR -p $JENKINSBOT_PSW"
> sh "cf push"
>
> slackSend (
>color: '#199515',
>message: "$JOB_NAME: <$BUILD_URL|Build #$BUILD_NUMBER>
> passed successfully."
> )
>  }
>   }
>
> You could also use the POST directive inside a stage:
>
> stage {
>steps {
>...
>}
>
>post {
>success {
>slack...
>}
>failure {
>slack...
>}
> }
> }
>
> Now, once a stage fails, the whole job fails, so you don't really need to
> handle the failure in each stage. Instead you can also use POST globally:
> And as you can see in my first example, I basically set a "STAGE_NAME" in
> each stage and use it in the failure directive globally
>
> stages {
> stage {
> steps {
>
> }
> }
>
>
> stage {
> steps {
>
> }
> }
>
>
> post {
> success {
>
> }
> failure {
> slackSend (
> color: '#F01717',
> message: "$JOB_NAME: <$BUILD_URL|Build #$BUILD_NUMBER>,
> '$STAGE_NAME' stage failed."
>  )
> }
> }
> }
>
>
>
> On Friday, April 7, 2017 at 1:41:29 PM UTC+3, Per Ostman wrote:
>>
>> Hi!
>>
>> I'm trying to figure out how to get hold of the result of a stage in a
>> pipeline job to report progress/status in e g slack as the pipeline stages
>> execute.
>>
>> Does anyone have any pointers to how to accomplish this?
>>
>> /P
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/FZqiw3_LZ5M/unsubscribe.
> To unsubscribe from this group and all its topics, 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/0c9ade5c-4541-4711-bd49-7cd5f8add805%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

All the best,
/Per
"If we have data, let’s look at data. If all we have are opinions, let’s go
with mine." —Jim Barksdale

*Per Östman*

Manager, Quality Control
*O*  +46 31 7504897  |  *M*  +46 766 477602  |  *E*  *per.ost...@tibco.com
* |

*TIBCO Software* |  Första Långgatan 26 41328 Gothenburg, Sweden |
www.tibco.com  |






The information transmitted in this electronic communication is intended
only for the person or entity to whom it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of or taking of any action in reliance upon this
information by persons or entities other than the intended recipient is
prohibited.

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


Re: Getting result of a stage in a pipeline job?

2017-04-07 Thread Idan Adar
You could something like the following, where if all actions have worked, 
it'll simply read the slack action and perform it.

stage ("Publish CF app") {
 environment {
JENKINSBOT = credentials('...')
 }
 
 when {
branch "develop"
 }
 
 steps {
script {
   STAGE_NAME = "Publish CF app"
}

// Login and push
sh "cf api ..."
sh "cf login ... -u $JENKINSBOT_USR -p $JENKINSBOT_PSW"
sh "cf push"
  
slackSend (
   color: '#199515',
   message: "$JOB_NAME: <$BUILD_URL|Build #$BUILD_NUMBER> 
passed successfully."
)
 }
  }

You could also use the POST directive inside a stage:

stage {
   steps {
   ...
   }
 
   post {
   success {
   slack...
   }
   failure {
   slack...
   }
}
}

Now, once a stage fails, the whole job fails, so you don't really need to 
handle the failure in each stage. Instead you can also use POST globally:
And as you can see in my first example, I basically set a "STAGE_NAME" in 
each stage and use it in the failure directive globally

stages {
stage {
steps {

}
}


stage {
steps {

}
}


post {
success {

}
failure {
slackSend (
color: '#F01717',
message: "$JOB_NAME: <$BUILD_URL|Build #$BUILD_NUMBER>, 
'$STAGE_NAME' stage failed."
 )
}
}
}



On Friday, April 7, 2017 at 1:41:29 PM UTC+3, Per Ostman wrote:
>
> Hi!
>
> I'm trying to figure out how to get hold of the result of a stage in a 
> pipeline job to report progress/status in e g slack as the pipeline stages 
> execute.
>
> Does anyone have any pointers to how to accomplish this?
>
> /P
>

-- 
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/0c9ade5c-4541-4711-bd49-7cd5f8add805%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to use trigger directive in a declarative pipeline?

2017-04-07 Thread Idan Adar
It sounds obvious from reading the docs 
,
 
but...

In a multi-branch pipeline there is no UI in Jenkins for defining a 
schedule to decide when should the job run automatically.
It seems that the following should do so, I don't understand how, given the 
file has to be read first after a checkout... but anyway...

I added the following triggers directive:

stages
triggers {
cron('H 4/* 0 0 1-5')
}


stage ("...") {
...
}
}


But once running the job with this directive, it fails with the following:

java.lang.IllegalArgumentException: Could not instantiate 
> {properties=[org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty@1523de8c,
>  
> @pipelineTriggers(=[@cron(=0 12,16,20 0 0 0)])]} for 
> JobPropertyStep
> ...
> ...


-- 
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/12df9e26-665b-4039-ae36-d68bc99cdc9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Getting result of a stage in a pipeline job?

2017-04-07 Thread 'Per Ostman' via Jenkins Users
Hi!

I'm trying to figure out how to get hold of the result of a stage in a 
pipeline job to report progress/status in e g slack as the pipeline stages 
execute.

Does anyone have any pointers to how to accomplish this?

/P

-- 
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/aeccba49-a0b8-4c08-ad65-e805f7f409ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


LTS upgrade has no slave.jar?

2017-04-07 Thread Consult Hyperion *
Normally when I upgrade Jenkins the first thing I have to do is go to 
\war\WEB-INF and get the slave.jar file for my Windows nodes. I ran the 
upgrade as usual this morning (to 2.46.1) and there was no slave.jar file 
there, or anywhere else I could see. I'm thinking they wouldn't have 
changed that so I can only assume it's missing. I tried downloading the WAR 
file but it's not there either. Surely they didn't just forget to put it in 
there?

-- 
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/4171c98c-ad7a-447b-aa90-cc306a25593d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins SAML + nginx + ELB

2017-04-07 Thread Grzegorz Szypa
Hi .

As prakhar said I also have the similar problem, because durring log in I 
get message in respons that"we get incorrect request"

here is some additional information which accompany above message:

"
Dodatkowe informacje techniczne:
Correlation ID: 985a69d5-d30e-4e4f-8ed6-96788d7d6dda
Timestamp: 2017-04-07 10:18:53Z
AADSTS70001: Application with identifier 
'http://vmsrv0.szypa.net:8080/securityRealm/finishLogin' was not found in 
the directory 5d71a3b0-a9e5-4b76-8c5b-d8a910a24c54
"
W dniu środa, 8 czerwca 2016 20:23:17 UTC+2 użytkownik Nick T napisał:
>
> I have my Jenkins server running with an nginx reverse proxy sitting in 
> front of it.  In front of that i have an AWS ELB that is terminating the 
> SSL.  So the problem is that Okta posts to https://myjenkins.mycompany.com, 
> but on the jenkins side it sees http.  so it fails.  Any tips?
>
> WARNING: Error while serving http://
> jenkins.mycompany.com/securityRealm/finishLogin
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>
>
> Caused by: org.opensaml.xml.security.SecurityException: SAML message intended 
> destination endpoint did not match recipient endpoint
>   at 
> org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder.checkEndpointURI(BaseSAMLMessageDecoder.java:217)
>   at 
> org.opensaml.saml2.binding.decoding.BaseSAML2MessageDecoder.decode(BaseSAML2MessageDecoder.java:72)
>   at 
> org.pac4j.saml.sso.Saml2WebSSOProfileHandler.receiveMessage(Saml2WebSSOProfileHandler.java:119)
>
>

-- 
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/d13d486e-5e03-49df-bf77-f201d76dca2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Repository Connector Plugin: usage in the DSL scripts

2017-04-07 Thread Ilija Rizovski
Hey Remi,

Unfortunately no, I gave up after a while so I don't have a solution to 
that.

Regards,
Ilija

On Friday, April 7, 2017 at 5:09:53 AM UTC+2, remi@gmail.com wrote:
>
> Hi Ilija,
>
> Did you find a solution to your problem? I am interested in achieving the 
> same thing as you! 
>
> Regards,
> Remi 
>
> On Friday, August 19, 2016 at 12:53:21 AM UTC+12, Ilija Rizovski wrote:
>>
>> Hi,
>>
>> I am using Repository Connector Plugin v1.1.3, and also using Job DSL 
>> Plugin v1.50.
>>
>> The question is:
>> How do I call this Repository Connector Plugin in my groovy script as a 
>> parameter?
>> I searched in the documentation 
>>  but 
>> couldn't find anything that relates with this plugin.
>> I am expecting usage to be similar to stringParam 
>> ,
>>  
>> so something like this:
>>
>> job('The job') {
>>  parameters {
>>   repoConnPlugin(repo, propertyName, artifactId, groupId, 
>> description)
>>  }
>> }
>>
>> Does anybody has an idea on how to use this plugin?
>>
>> Thanks,
>> Ilija
>>
>
-- 
De inhoud van dit emailbericht is strikt vertrouwelijk en uitsluitend 
bestemd om gelezen te worden door de geadresseerde. Wij verzoeken u 
derhalve dit bericht direct aan de geadresseerde te overhandigen. Indien 
deze email per vergissing door u is ontvangen verzoeken wij u contact met 
ons op te nemen. Iedere openbaarmaking, verspreiding of vermenigvuldiging 
van dit emailbericht is strikt verboden. Iedere aansprakelijkheid is 
beperkt tot het bedrag dat in het desbetreffende geval onder onze 
beroepsaansprakelijkheidsverzekering wordt uitbetaald. 

The contents of this email is strictly personal and confidential and is 
only intended for the use by the adressee named above. We request you tot 
deliver this email immediately to the adressee. If you have received this 
email in error, please notify us. Publication, circulation, or 
multiplication of this email is strictly prohibited. Any liability shall be 
limited to the amount which is paid under the Firm's professional Liability 
Policy in the matter concerned.

-- 
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/420bbd41-5783-47d7-8c07-e070d40407a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Invoke Windows Installer in Interactive mode Through Jenkins

2017-04-07 Thread 'Sebastian Glöckler' via Jenkins Users
Hi,

AutoIt is a basic-like scripting environment, which exposes parts of the 
lower-level Windows API. It’s free to use, no strings attached, but not open 
source. Documentation is also quite good. Look here for running a program in a 
different user context:

https://www.autoitscript.com/autoit3/docs/functions/RunAs.htm

Once you started the program, you can identify Elements in the  GUI, fill in 
fields, click buttons etc. and interact with them via ControlClick, 
ControlCommand inside the user session. No need for a “visible” screen, like an 
RDP session.

Cheers, Sebastian

From: Bangar Milind [mailto:milindbanga...@gmail.com]
Sent: Thursday, April 6, 2017 8:19 PM
To: Jenkins Users 
Cc: Sebastian Glöckler 
Subject: Re: Invoke Windows Installer in Interactive mode Through Jenkins

Thanks Sebastian for the pointer..

We are using Powershell remote session using WinRM service and then trying to 
run the installation interactively.

We tried with the solution provided by Benjamin in earlier post ad are able to 
install interactively. However, require a user session available. Meaning when 
I am on windows box through RDP the installation goes through , but if I 
minimise the window or disconnect, then it does not work. Any further 
configuration required for the same?

Is Autoit an open source tool?

Regards
Milind

On Thursday, 6 April 2017 09:07:53 UTC+1, Sebastian Glöckler wrote:
Hi,

we also have a windows server product which needs to be installed 
interactively. We have (click-)automated the installation process with AutoIt.
To get around the issue mentioned below, you might want to run your script in 
the context of a “real” user and load the user’s profile. CMD.exe’s “runas” 
does not let you specify the password on the command line, so it is no good for 
scripts. Maybe psexec or even a Powershell session, but I have not tried that.
As said,  an Autoit Program, run from the Jenkins slave (running as a service), 
does the trick for us.

Cheers,
Sebastian

From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Benjamin Lau
Sent: Thursday, April 6, 2017 9:51 AM
To: Jenkins Users 
Subject: Re: Invoke Windows Installer in Interactive mode Through Jenkins

Bangar,

I'd suspect the problem is similar to the one described in this thread about 10 
days ago:
https://groups.google.com/forum/#!topic/jenkinsci-users/zzECJya_vDY

Is your jenkins slave running the agent as a service? Try running the agent as 
a non-service as slide suggested and see if that works for you.

Cheers,
Ben

On Thu, Apr 6, 2017 at 12:17 AM, Bangar Milind 
 wrote:
Hi,

We are trying to automate the deployment of a windows application in which 
Setup.exe runs a MSI.

The MSI launches in interactive mode and has fields which will be required to 
updated dynamically.

We have written a Powershell script , which works fine when running on the 
Windows app server , but doesn't  when PS is called from Jenkins using a 
Windows slave.

If anyone has an experience on the same, request some help.

Please let me know, if further information is required.,

Regards
Milind
--
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/208c57d1-462e-4102-94c6-e6833faf7f12%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-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BvtdQY5-8suoTWOG43Zc7UTBkHSCwug-uHFjiuPbKZcNV_YiQ%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/F43D44A13A035247BEDF314F8ECFF2F331F95FBC%40ctd-exchange02.
For more options, visit https://groups.google.com/d/optout.


Delete workspace on slave

2017-04-07 Thread Romaric Crailox
Hello, 

I do not know if it's normal or a Jenkins error, but I have a job with 
configuration matrix to perform build on 2 computer.
I have "Delete workspace before build starts" option checked on this job.

Unfortunately, workspace is delete only on "master" node, that is node 
where main job (job which launch all the job necessary to cover 
configuration matrix) is perform.
Workspace on second node is not delete.

Do you know if it's normal?

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/8bdfc171-45fa-4fd2-ba22-7f9b021b09ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: StackOverFlow with pipeline script

2017-04-07 Thread Matej Švec
I have the same problem with Multibranch Pipeline.
Tried to update to the latest version 2.53, plugins updated as well - same 
results.

When a new branch is pushed (to Git), the job is triggered and failes with 
StackOverflowError.
It is sometimes possible to get it running after a few clicks on "Build 
Now", it eventually goes through and does not throw any error.


On Thursday, April 6, 2017 at 3:32:51 PM UTC+2, NickA wrote:
>
> Even that doesn't work; I've tried all kinds of examples and even this 
> simple one fails. Must be something with the configuration of the server 
> itself but where to look. :-s
> I'll check when our server will be upgraded.
>
> On Thursday, April 6, 2017 at 3:21:08 PM UTC+2, Knurek wrote:
>
> I checked that on Jenkins 2.32.2
>
> I assume that:
> node {
> stage('Build') {
> echo 'Building..'
> }
> }
> works fine?
>
> My understanding is that the pipeline/agent is part of the new declarative 
> extension of the pipeline DSL - that was only officially released in 
> February, so maybe you're lacking that in the 2.19.4 version
>
>
> On Thursday, April 6, 2017 at 3:07:21 PM UTC+2, NickA wrote:
>
> Thank you for the feedback; what version are you using?
> I am using 2.19.4.1 and can't update this company server.
>
> I see it immediately, I start it up and get the stack overflow and the 
> script doesn't even start.
>
> On Thursday, April 6, 2017 at 8:28:34 AM UTC+2, NickA wrote:
>
> Hi,
>
> I have a problem with a simple pipeline script. I tried multiple examples 
> from the web but all give the same error.
> When I run a simple hello world script, it gives a stack overflow 
> exception.
> pipeline {
> agent any
>
> stages {
> stage('Build') {
> steps {
> echo 'Building..'
> }
> }
> stage('Test') {
> steps {
> echo 'Testing..'
> }
> }
> stage('Deploy') {
> steps {
> echo 'Deploying'
> }
> }
> }
> post { 
> always { 
> echo 'I will always say Hello again!'
> }
> }
> }
>
> Kind Regards,
> Nick
>
> The stack trace doesn't give a lot of information for me to find the cause:
> java.lang.StackOverflowError
> at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.checkCall(PogoMetaClassSite.java:62)
> at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
> at 
> com.cloudbees.groovy.cps.CpsTransformer$_visitMethodCallExpression_closure8.doCall(CpsTransformer.groovy:402)
> at sun.reflect.GeneratedMethodAccessor13078.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
> at 
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
> at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
> at 
> com.cloudbees.groovy.cps.CpsTransformer$_visitMethodCallExpression_closure8.doCall(CpsTransformer.groovy)
> at sun.reflect.GeneratedMethodAccessor13077.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
> at 
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
> at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57)
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
> at 
> com.cloudbees.groovy.cps.CpsTransformer.makeChildren(CpsTransformer.groovy:355)
> at sun.reflect.GeneratedMethodAccessor4637.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
>