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

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

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"

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

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

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

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

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

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

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 ..."

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

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

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

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 >

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,

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

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

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

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

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

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

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

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

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

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" }

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

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

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

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

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! > >

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:

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

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