Re: disabled project can be triggered remotely

2016-06-23 Thread S C
There it is: https://issues.jenkins-ci.org/browse/JENKINS-36193
Thanks a lot!
Sorin

On Thu, Jun 23, 2016 at 4:55 PM, Daniel Beck <m...@beckweb.net> wrote:

> Please file a bug against core and assign it to me.
>
> Mention that ParameterizedJobMixIn#doBuildWithParameters does not check
> isBuildable().
>
> https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue
>
> > On 23.06.2016, at 15:43, S C <sote...@gmail.com> wrote:
> >
> > It's a freestyle project triggered remotely via the REST API (with a
> security token)...
> >
>
> --
> 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/_Fy4qGdMIzs/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/0C861FF4-FDA3-416A-8A5E-5DCB4D4E7E0F%40beckweb.net
> .
> 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/CAN-aYrRnoqd-0n_g-3hCfOFa3ud9niSV%3DnC2zHbMZ5TXpngh_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: disabled project can be triggered remotely

2016-06-23 Thread S C
It's a freestyle project triggered remotely via the REST API (with a
security token)...

On Thu, Jun 23, 2016 at 3:10 PM, Daniel Beck  wrote:

> What kind of project? And how exactly does it get triggered, a request to
> /subversion/notifyCommit?
>
> > On 23.06.2016, at 14:41, Sorin  wrote:
> >
> > Is this the way it's expected to work? I disable the project in Jenkins
> GUI but the remote SVN trigger has no problem starting a build when I
> checkin.
> > I thought disabled means disabled... but seems I'm wrong.
> > Thanks for any clarification!
> > Sorin
> >
> > --
> > 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/951fd124-2414-4fd4-ae4e-5c170fc7f18a%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/_Fy4qGdMIzs/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/DCAA7054-FD92-414A-9AF7-803A6BED160D%40beckweb.net
> .
> 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/CAN-aYrRUC0jdeEzD3mO%2BAwoaVcQWPdMLNvs328-ByOeQouBthA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: can't trigger remote buildWithParameters to save my life

2016-05-11 Thread S C
Thanks a lot, really comprehensive info on that page. It's just too bad a
Google search won't show the same, because I had no idea there'd be
anything interesting in the footer (I never scroll until there).

However: the page only talks about POSTing to URL, says nothing about
sending URL parameters with PUT (or GET), and also recommends - guess what
- the "hackish" way of sending the params as form data! It even says that
using the remote trigger plugin is "deprecated" so... if I'm not mistaking
it goes exactly against all the recommendations above.

As for myself I'm very happy with your recommendation so I'll ignore the
Jenkins info page. Triggering a state change with PUT seems to me anyway
the RESTful way, not POSTing some transient data :) Now if only GETting
from that trigger address would return me "building job xyz..." if still
building and the (latest if done) build location - instead of triggering a
new build... Now that GET will change state and in the event of a automatic
retry - not so unheard-of - would try to change state many times, then it
would be a perfect world! But that's first world problems indeed ;)

It's also worth noticing that I cannot cancel in GUI a build job queued via
remote trigger. I guess because it was not queued by my GUI user - it makes
sense but still not very convenient (I'm in GUI an admin user so I had
expectations...).

Thank you for taking your time to answer!
Sorin


On Wed, May 11, 2016 at 2:13 PM, Daniel Beck <m...@beckweb.net> wrote:

>
> > On 11.05.2016, at 09:46, S C <sote...@gmail.com> wrote:
> >
> > I think people try these hackish solutions when they aren't shown any
> recommended solution. Could we (I'd gladly do it) add the above answer to
> the relevant Jenkins page, so nobody has to lose hours like I did?
>
> https://yourjenkins/job/whatever/api documents the job-related API. The
> section "Perform a build" will explain how to do this. It's linked from the
> job page's footer.
>
> --
> 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/DXhHQbp6zUw/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/947CBB5F-256D-4E6B-987A-7845C3AB5858%40beckweb.net
> .
> 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/CAN-aYrQx8m1sNEMhftUD9YVRS3ZUt9t8sKJOsBjFJR-Z9L8tPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: can't trigger remote buildWithParameters to save my life

2016-05-11 Thread S C
Oh this is really useful indeed - and it doesn't require those senseless
(nb: senseless in a build trigger case) crumbs either. Thanks a lot!
Sorin

On Wed, May 11, 2016 at 9:54 AM, 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
>
> And take a look at
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin as
> well. This should help you to not require overall read permissions.
>
> Björn
>
> Am Mittwoch, 11. Mai 2016 09:48:55 UTC+2 schrieb Sorin:
>>
>> Oh and a PUT can trigger as well - I'll rather take PUT.
>> Many thanks again,
>> Sorin
>>
> --
> 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/DXhHQbp6zUw/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/e78fba1a-eef9-4142-8c7b-49d6052df692%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/CAN-aYrQnn5PX8cfeXOnz%3DMOx_sTvYRnUs-C404dLJdiP4Ei_YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: can't trigger remote buildWithParameters to save my life

2016-05-11 Thread S C
Oh and a PUT can trigger as well - I'll rather take PUT.
Many thanks again,
Sorin

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


Re: can't trigger remote buildWithParameters to save my life

2016-05-11 Thread S C
On Tue, May 10, 2016 at 10:53 AM, Daniel Beck  wrote:

>
> > On 10.05.2016, at 10:13, Sorin  wrote:
> >
> > - sending a GET or PUT request with URL encoded parameters, failed
> miserably .../buildWithParameters?token=MY_TOKEN=VALUE answers
> dryly 403 forbidden (why forbidden?)
>
> The token only allows building if the authentication otherwise allows read
> access to the job.
>

Thank you - I went to Jenkins general security settings, enabled anon users
readonly access and lo, triggering builds with the GET URL works!



> > - sending a POST request with payload like
> json='{"parameter":[{"myparam":"VALUE"}]}' (or



> Note that passing the JSON string is a hackish unsupported solution --
> this approach emulates what a web browser does, and the browser submits
> whatever the "Build with Parameters" form tells him to, i.e. there's no
> reasonable expectation of backwards compatibility if we ever change the
> form.
>

I think people try these hackish solutions when they aren't shown any
recommended solution. Could we (I'd gladly do it) add the above answer to
the relevant Jenkins page, so nobody has to lose hours like I did?

Many thanks
Sorin

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


Re: Jenkins with Saml 2.0 SSO Authentication

2015-10-15 Thread S C NG
Hi Michal,

Wondering if you could share any guidelines for this case? We have done the 
PingFederate and Jenkins SAML2 Plugin config, but 
"javax.servlet.ServletException: 
org.pac4j.saml.exceptions.SamlException: No valid subject assertion found 
in response" issue found after redirecting back to Jenkins' "finishLogin" 
URL... Tried to check the link at 
https://github.com/connectifier/jenkins-saml-plugin/issues/4 
but not able to figure out any what's wrong with my config. Would like to 
understand the setup which was working for you.

Thanks in Advance.



On Tuesday, September 15, 2015 at 7:56:36 PM UTC+8, Michal Gubik wrote:
>
> Hi, 
>
> I just got plugin working with pingfederate I will write up guide and post 
> it here ;)
>
> Michal
>
> On Wednesday, February 18, 2015 at 4:09:23 PM UTC, John Burrows wrote:
>>
>> Hi Ben,
>>  
>> Thank you for your help, I have been trying to get the SAML plugin 
>> working with our Ping federated server and have been unsuccessful.
>>  
>> Here is what is happening:
>>  
>>
>> Jenkins v 1.597 SAML plugin v 0.3
>>
>> We are using an internal PingFederated server and I have entered the xml 
>> metedata contents into the Security configuration of Jenkins.
>>
>> I have tried on two servers, one set up HTTPS (SSL) and one just HTTP.
>>
>> We get errors when trying to login using SSO that pertain to the 
>> *https://servername/securityRealm/finishLogin* 
>>  redirect and the same for 
>> non-SSL server.
>>
>> We are stumped on what to check here, the PingFederated administrator has 
>> it set for the postback to the securityRealm/finishLogin URL, which is what 
>> is in the code for the plugin, we just are not sure how to proceed. 
>>
>> The contents of the xml metadata:
>>
>> > "PT1440M" entityID="ENTITYIDHERE:Saml2:POC" xmlns:md=
>> "urn:oasis:names:tc:SAML:2.0:metadata">> protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol" 
>> WantAuthnRequestsSigned="false">> >http://www.w3.org/2000/09/xmldsig#;> 
>>   CERTIFICATECODE HERE
>> 
>> 
>> urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
>> > "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="
>> https://SSOSERVERNAME/idp/SSO.saml2"/>> "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="
>> https://SSOSERVERNAME/idp/SSO.saml2"/>> "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="
>> https://SSOSERVERNAME/idp/SSO.saml2"/>> "urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="
>> https://SSOSERVERNAME/idp/SSO.saml2;
>> />> >COMPANYNAME
>> 
>>
>> Any suggestions or hlep would be greatly appreciated.
>>
>> Thanks,
>>
>> John
>>  
>>
>> On Friday, January 23, 2015 at 11:51:07 AM UTC-5, Ben McCann wrote:
>>
>> Yes, all the contents of the xml file
>>
>> On Fri, Jan 23, 2015 at 8:29 AM, John Burrows > > wrote:
>>
>> Or is it just all the contents of the xml file?
>>
>> Thanks,
>> John
>>
>> ---
>>
>> John Burrows
>>
>> Supervisor Software Engineering, USA
>>
>> SCM: AD Common Services 
>> 
>>
>> T + 1 704 423 2531 / M + 1 864 490 1091
>>
>> *Vacation Alert :*
>>
>> *Feb 27 / **Mar 30-Apr 2 / Jun 29-Jul 2*
>>
>>
>> ACI Worldwide 
>> www.aciworldwide.com 
>> 
>> ---
>>
>> For *AD Common Services: Infrastructure Services* support contact:
>>  Jeni Jones 
>> For *AD Common Services:* *ARLM *support email:
>>  grp-arlm...@aciworldwide.com
>> For *AD Common Services: **SCM *support refer to the Google Site:
>> * SCM Contact/Request Information 
>> *
>> For *AD Common Services: **Security* or *AD Tools* support contact:
>>  Andie Srivastava 
>>
>>
>> On Fri, Jan 23, 2015 at 11:27 AM, John Burrows <
>> john.b...@aciworldwide.com> wrote:
>>
>> Ben,
>>
>> Thanks for the quick response, maybe I wasnt clear, but what I am asking, 
>> is what info goes into that field and in what format?
>>
>> Can you send me an example?
>>
>> Thanks,
>> John
>>
>> ---
>>
>> John Burrows
>>
>> Supervisor Software Engineering, USA
>>
>> SCM: AD Common Services 
>> 
>>
>> T + 1 704 423 2531 / M + 1 864 490 1091
>>
>> *Vacation Alert :*
>>
>> *Feb 27 / **Mar 30-Apr 2 / Jun 29-Jul 2*
>>
>>
>> ACI Worldwide 
>> www.aciworldwide.com 
>> 
>> ---
>>
>> For *AD Common Services: Infrastructure Services* support contact:
>>  Jeni Jones 
>> For *AD Common Services:* *ARLM *support email:
>>  grp-arlm...@aciworldwide.com
>> For *AD Common Services: **SCM *support refer to the Google Site:
>> * SCM