Re: JENKINS-27530 - cannot create a build with number X

2017-09-06 Thread Shaun Thompson
This happens after Jenkins notes that it's fully up and running. On Tue, Sep 5, 2017 at 5:07 PM Jesse Glick wrote: > Perhaps you are attempting to schedule the build early during Jenkins > startup, before state is actually initialized? Just a guess. > > -- > You received

doCheck methods not being called

2017-08-21 Thread Shaun Thompson
I'm currently developing a plugin and trying to do form validation. I've tried multiple approaches and nothing has worked to invoke the doCheck methods. Any help would be appreciated. Here is my index.jelly file Here is my java file @Extension public

Re: WorkflowJob getDescriptor Null

2017-08-28 Thread Shaun Thompson
>From the command line it works. It looks like I'll have to dig into the extensions bit and see how this is getting setup. On Friday, August 25, 2017 at 2:23:38 PM UTC-5, Jesse Glick wrote: > > On Fri, Aug 25, 2017 at 12:52 PM, Shaun Thompson <sth...@gmail.com > > wrote: &g

Re: WorkflowJob getDescriptor Null

2017-08-28 Thread Shaun Thompson
at 2:11:08 PM UTC-5, Shaun Thompson wrote: > > > From the command line it works. It looks like I'll have to dig into the > extensions bit and see how this is getting setup. > > On Friday, August 25, 2017 at 2:23:38 PM UTC-5, Jesse Glick wrote: >> >> On Fri, A

WorkflowJob getDescriptor Null

2017-08-25 Thread Shaun Thompson
I'm currently trying to create Workflow job from my plugin using the following code. Jenkins.getInstance().createProject(WorkflowJob.class, SomeClass.class. getSimpleName()); It fails to find the descriptor when running the following public Descriptor getDescriptor(Class type) { for(

JENKINS-27530 - cannot create a build with number X

2017-09-05 Thread Shaun Thompson
I have a WorkflowJob that I've created dynamically on the installation of my custom plugin. I'm running into the issue noted in the subject when scheduling a build after a restart of Jenkins - testing locally. ``` workflowJob.scheduleBuild2(0, new SomeAction()); ``` I thought the job would

slf4j & TaskListener.getLogger intercept

2017-12-16 Thread Shaun Thompson
I'm looking for ideas on a clean way to intercept logging in a Pipeline coming from the TaskListener.PrintStream getLogger() for other API's that are using slf4j. Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe

Re: slf4j & TaskListener.getLogger intercept

2017-12-18 Thread Shaun Thompson
I'm looking to output external logging, API's that use slf4j, to the build logs. On Monday, December 18, 2017 at 8:16:18 AM UTC-6, Jesse Glick wrote: > > On Sat, Dec 16, 2017 at 2:18 PM, Shaun Thompson <sth...@gmail.com > > wrote: > > intercept logging in a Pipe

Re: slf4j & TaskListener.getLogger intercept

2017-12-19 Thread Shaun Thompson
, 2017 at 10:02:31 AM UTC-6, Shaun Thompson wrote: > > The way my plugin is setup is that I have a core API that has zero > knowledge of Jenkins. This allows the code to be used in a standalone cmd > line or war type application. Jenkins plugin just orchestrates the code. &g

Re: Jenkins.createProject - ACL

2017-10-24 Thread Shaun Thompson
On Tue, Oct 24, 2017 at 12:35 PM, Shaun Thompson <sth...@gmail.com > > wrote: > > I'm programmatically creating a job when the > > user installs it's corresponding plugin. > > This seems like a bad idea. > > > How do I allow the job to create the project

Jenkins.createProject - ACL

2017-10-24 Thread Shaun Thompson
Running into an issue where I'm programmatically creating a job when the user installs it's corresponding plugin. The Jenkins instance has security enabled with either logged in users can do anything or matrix based security. If those are set, it will fail with Anonymous does not have create

Re: Jenkins.createProject - ACL

2017-10-24 Thread Shaun Thompson
I appreciate the warnings but this is a plugin used internally by our company for release automation. Context always help :) On Tuesday, October 24, 2017 at 3:12:50 PM UTC-5, Shaun Thompson wrote: > > That doesn't line up with what I'm seeing. Plugin fails to create the job >

Re: Jenkins.createProject - ACL

2017-10-24 Thread Shaun Thompson
That doesn't line up with what I'm seeing. Plugin fails to create the job so an ACL is in effect. I guess I'll figure it out on my own. On Tuesday, October 24, 2017 at 1:11:08 PM UTC-5, Jesse Glick wrote: > > On Tue, Oct 24, 2017 at 1:23 PM, Shaun Thompson <sth...@gmail.com

juseppe - Jenkins Update Site Embedded for Plugin Publishing Easily - support

2018-10-14 Thread Shaun Thompson
As I need to publish plugins internally at my organization, I've been using the this project to do so. The author no longer has time to maintain it and was inquiring if this could come under the jenkinsci umbrella for long term support and

Re: JavaScriptMethod & 403 - No valid crumb was included in the request

2020-08-28 Thread Shaun Thompson
t; > Can you see the JUnit or warnings trend charts? They use @JavaScriptMethod > as well. > > Am 28.08.2020 um 22:06 schrieb Shaun Thompson : > > After looking at it a bit - it appears that the crumb header is being > issued with the request as `Crumb`. > > The

Re: JavaScriptMethod & 403 - No valid crumb was included in the request

2020-08-28 Thread Shaun Thompson
, August 28, 2020 at 3:41:11 PM UTC-5 ullrich...@gmail.com wrote: > > Am 28.08.2020 um 22:33 schrieb Shaun Thompson : > > At least for the JUnit plugin they are referencing an older version of > Jenkins. > > > The compile time dependency is < 2.250, yes. But it will repla

JavaScriptMethod & 403 - No valid crumb was included in the request

2020-08-28 Thread Shaun Thompson
I'm developing a custom plugin that includes a class with a method annotated with @JavaScriptMethod. It was working until I updated to the latest version of Jenkins 2.250 which forces CSRF protection. I can't find anything to indicate how to get/add the CSRF token when calling this method

Re: JavaScriptMethod & 403 - No valid crumb was included in the request

2020-08-28 Thread Shaun Thompson
After looking at it a bit - it appears that the crumb header is being issued with the request as `Crumb`. The CrumbFilter is looking for `Jenkins-Crumb` or `.crumb`. As such it fails. Appears to be a bug to me? On Friday, August 28, 2020 at 2:53:39 PM UTC-5 Shaun Thompson wrote: >

Re: JavaScriptMethod & 403 - No valid crumb was included in the request

2020-08-28 Thread Shaun Thompson
UTC-5 Shaun Thompson wrote: > Upgraded to 2.254 and now my plugin isn't loaded on startup but is shown > as installed on the manage plugins page. > > The source posted above still appears to be the same for 2.254 so I assume > the problem still persists. > > Once I figure ou

Re: JavaScriptMethod & 403 - No valid crumb was included in the request

2020-08-28 Thread Shaun Thompson
ield=Crumb to work past this. On Friday, August 28, 2020 at 9:28:12 PM UTC-5 Shaun Thompson wrote: > So the JUnit plugin JavaScript method works as it adds both `Crumb` and > `Jenkins-Crumb` to the outgoing request headers. > > This method is invoked through the echarts API but I haven't