Re: Jenkins plugins to push tags to git repo after successful builds

2016-06-30 Thread Kanstantsin Shautsou
If you are keeping credentials in GIT Scm configuration you should use git 
publisher.
If not then you can create a trick with anybuildstep-plugin and do pushes 
from shell execution.

On Thursday, June 30, 2016 at 4:21:05 PM UTC+3, piyush joshi wrote:
>
> Hi,
>
> Is there any Jenkins plugins to push a tag to a git repo after successful 
> build creation as a post build step.
>
> Thanks 
> Piyush Joshi
> Phone No - 8859902165
>

-- 
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/51787c2f-c5d9-4dac-b101-a25208c88fb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scheduled maintenance window April 15th - April 17th

2016-04-18 Thread Kanstantsin Shautsou
So you started migration on Friday? ;-))

On Monday, April 18, 2016 at 7:18:47 AM UTC+3, R Tyler Croy wrote:
>
> (replies inline) 
>
> On Fri, 15 Apr 2016, R. Tyler Croy wrote: 
>
> > Howdy folks, starting today I am migrating services from various hosts 
> this 
> > weekend. The services that are primarily going to be affected are: 
> > 
> >  * ci.jenkins-ci.org 
> >  * mirrors.jenkins-ci.org 
> >  * LDAP 
>
>
>
> With a *lot* of effort between Kohsuke and myself (with some help from 
> nibalizer, danielbeck and bwalding) we've migrated a few key services. 
> Most 
> notably ldap which is online at its new home. Our mirror infrastructure is 
> also 
> migrated and I will be performing the final cut-over in the morning. 
>
>
> Unfortunately we've run out of weekend time for the migration of 
> ci.jenkins-ci.org, which is going to expand into Monday. Aside from 
> builds 
> not running, this means that update center generation is on-hold until the 
> new 
> hosts are properly online. 
>
>
> I apologize for the inconvenience and trust that I'm working as fast as my 
> fingers and machine I/O will let me to get the service migration finished. 
>
>
> Cheers 
> - R. Tyler Croy 
>
> -- 
>  Code:  
>   Chatter:  
>
>   % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F 
> -- 
>

-- 
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/5bd63707-ed0b-46bd-a9f1-e8e2c8369a23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


New GitHub Integration/PullRequest plugin

2016-03-23 Thread Kanstantsin Shautsou
Hi all. Maybe it will be useful for somebody.
I started making this plugin 1 year ago when wasn't satisfied with ghprb 
quality. I was able optimise performance and solved various bugs in jenkins 
and github-api library to make it work better. 
With @lanwen's help we was able to extend github-plugin and reuse new APIs. 

Entry 
page https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Integration+Plugin 
Features are listed 
here https://github.com/jenkinsci/github-integration-plugin/wiki/Features

Last year it was stable and used in production. I also had ideas on 
enhancing commits triggering modes (with better polling for cloud based 
slaves) so PR plugin is under "integration" hat.  

-- 
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/4e0a1cc1-0ab1-48e5-8357-a1575bffdc8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 Proposal: Pipeline as code front and center

2015-11-10 Thread Kanstantsin Shautsou
s/Workflow/.?/ is of course interesting idea, but i looks like it has the 
gulf between the two sides. 
- Freestyle has barrier between build steps and Publishers that constantly 
causes headache for plugin devs. I tried add SimpleBuildStep support and 
got other problems (see jenkins PRs) with generic Run objects.
- Workflow seems solve many difficult cases, but adds other complexities 
like new mixed APIs, no input validations, no config migrations. Adding 
workflow support is impossible without busy @jglick help.

What i really expected - it fixes/improvements in Freestyle (that is really 
not a "free style" today) with base support for workflow APIs. This should 
allow having UI features (that was a really feature killer against other CI 
systems) and allow easily jump to DSLs. New comers will be able to have UI 
and advanced will be able to pick config.

On Tuesday, November 10, 2015 at 3:59:11 PM UTC+3, maciej wrote:
>
> I think there are two problems with workflow and other script related 
> plugins:
>
>1. There is slim-to-none documentation on Jenkins APIs. There is no 
>single authoritative place to learn about available interfaces with basic 
>to advanced examples of their usage. Frankly, I haven't found a good book 
>about it either.
>2. A killer feature would be to be able to convert build steps (at 
>least some basic ones) to e.g. Groovy. This would greatly lower the 
> barrier 
>of converting from GUI based configuration to code driven job dentitions. 
>
> 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/7323428c-696e-43d7-936f-6a8211faa751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to auto trigger Build when a change is pushed to GitHub

2015-11-10 Thread Kanstantsin Shautsou
Just install github-plugin, configure global and job settings according 
to https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin and replace 
"poll scm" with "Build whenever commit is pushed to github".

On Tuesday, November 3, 2015 at 5:17:06 PM UTC+3, Suryateja Hanumandla 
wrote:
>
> Hi,
> Currently I'm doing with git poll, where I'm doing poll for every 2 mins. 
> Is there any possibility instead of git poll mechanism in jenkins, because 
> every now and then we need to poll the repo and check.
>
> Thanks,
> Surya.
>

-- 
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/64cdc1bb-851e-4376-a618-6197c4c78c78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Seeking help with Github plugin web hooks

2015-11-10 Thread Kanstantsin Shautsou


Poked 

Means that it poked GitSCM poll logic. That mean that it called the same algo 
as "Poll SCM" trigger. You should check and review Git polling logs of git 
configuration.

GitSCM provides ability to specify required for build branches with "Branch 
Specifier". 



On Monday, November 2, 2015 at 11:15:53 PM UTC+3, kg...@cardtapp.com wrote:
>
> Hi, I'm struggling to get Github web hooks working as expected after 
> following instructions here:
>
>
> https://wiki.jenkins-ci.org/display/JENKINS/Github+Plugin#GitHubPlugin-Troubleshootinghooks
>
> I'm trying to accomplish the following:
>
> 1. Build project per commit on any feature branch
>
> 2. Build target branch upon merge of a PR to that branch.
>
> For my project:
>
> I've set the branch specifier to "**" as I wish to build any branch which 
> has been pushed/merged to.
>
> I've set the "Github Project" and repository URL to the 
> "g...@github.com//.git 
> per the instructions.
>
> I've selected the "Build when a change is pushed to GitHub" option for 
> the Build Trigger.
>
> On github, I've added a new Webhook integration on the project settings 
> page and set the payload URL to:
>
>
> "http://:@/github-webhook/"
>
> Once enabled, I can see 200 responses on payloads sent from Github to the 
> Jenkins server. If I enable logging in the Jenkins "Manage Log" settings, I 
> can see output indicating that Jenkins is receiving the web hook 
> notification and "poking" the project. For example:
>
> Received POST for https://github.com//
>
> Nov 02, 2015 7:47:41 PM FINE 
> org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1
>  run
>
> Considering to poke 
>
> Nov 02, 2015 7:47:41 PM INFO 
> org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1
>  run
>
> Poked 
>
>
> Given this it seems like the basic communication is working. The problem is 
> that I can only seem to trigger the build on Jenkins when I've deleted the 
> workspace beforehand. For example, if on Github web hooks page, I resend a 
> successful push notification payload to the Jenkins server, assuming the 
> workspace has been populated, it will not trigger a run of the job. If I 
> clear the workspace, and then repeat, then the job is triggered as expected. 
> I've been pulling my hair out for a couple days trying to understand what I'm 
> doing wrong or misunderstanding here and am stuck. 
>
>
> If anyone has experience setting this up and can offer advice I'd greatly 
> appreciate it.
>
>
> Thanks,
>
>
> Kris
>
>

-- 
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/5ade2ea4-33b4-4299-ad53-1587c9888947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Approve workflow script from Job DSL plugin

2015-09-22 Thread Kanstantsin Shautsou
When i'm adding script manually in job it approved, when converting to dsl 
- it requires approval. This is not very convenient.

On Sunday, August 16, 2015 at 11:29:46 AM UTC+3, David Resnick wrote:
>
> I've set the script to be sandboxed in the Job DSL script, though it looks 
> link only a marginal improvement because of the need to approve missing 
> method signatures.
>
> What would the Job DSL plugin need to do to automatically approve the 
> non-sandboxed script it sets in a job? As you mention, security here is 
> already being by-passed when the Job DSL plugin is in use.
>
> - David
>
> On Thursday, August 13, 2015 at 12:05:14 AM UTC+3, Jesse Glick wrote:
>>
>> On Tuesday, July 21, 2015 at 4:17:51 PM UTC-4, David Resnick wrote:
>>>
>>> How can I have the workflow job script updated via Job DSL without 
>>> having to approve the script each time it changes?
>>>
>>
>> If the Job DSL plugin supports setting sandbox=true here, use that. 
>> However it would be a nice enhancement for the Job DSL integration to 
>> automatically approve a flow definition with sandbox=false that it creates. 
>> (Job DSL builds have unrestricted access to Jenkins so anything created 
>> that way can be assumed to be from a superuser. I am not even sure how you 
>> would secure a Jenkins installation containing this plugin, unless you are 
>> using only basic security levels like “any logged-in user”.)
>>
>

-- 
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/d3b53457-b1bd-43ac-891f-5bebce881b5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Crowd2 plugin sso issues

2015-09-19 Thread Kanstantsin Shautsou
ATM SSO logic is under "remember me" checkbox. If it doesn't work, then you 
probably something misconfigured, verify cookies that you receiving in 
browser before/after auth.

PS. We are working on plugin refactoring to get better remember me and 
standard authentications.

On Monday, September 14, 2015 at 2:45:40 PM UTC+3, LIGADE, SHAILESH wrote:
>
> This post has NOT been accepted by the mailing list yet. 
>
> Hello, 
>
> Jenkins - 1.594 behind apache, crowd 2.8.0 
>
> I have configured crowd2 plugin in Jenkins. However, I am unable to do 
> SSO. If I logon to crowd first and then try to logon to Jenkins, I still 
> get login screen. 
>
> Crowd and Jenkins are in the same domain, however, apache virtual host is 
> different 
>
> Crowd Url - https:///crowd 
> Application Name - jenkins 
> Application Password - x 
> Restrict groups - 
> Use nested groups  - checked 
> Use SSO - checked 
> cookie.domain  - set to .
> cookie.tokenkey  - crowd.token_key 
> Enable Proxy - unchecked 
> session.validationinterval - 30 
> http.max.connections - 20 
> http.timeout - 5000 
> socket.timeout - 2 
>
> Setting or not setting restricted groups has no effect. 
> Tested with different domain names, but no effect. 
>
> Here are the log entries 
>
>
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdServletFilter doFilter 
> FINE: User is not logged in (anymore) via Crowd => logout user 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdRememberMeServices 
> logout 
> FINE: Logout user and close SSO session 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdServletFilter doFilter 
> FINE: User is not logged in (anymore) via Crowd => logout user 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdRememberMeServices 
> logout 
> FINE: Logout user and close SSO session 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdServletFilter doFilter 
> FINE: User is not logged in (anymore) via Crowd => logout user 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdRememberMeServices 
> logout 
> FINE: Logout user and close SSO session 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdServletFilter doFilter 
> FINE: User is not logged in (anymore) via Crowd => logout user 
> Sep 11, 2015 2:17:38 PM de.theit.jenkins.crowd.CrowdRememberMeServices 
> logout 
> FINE: Logout user and close SSO session 
>
> This keeps on repeating 
>
> sometimes, I also get 
>
> SEVERE: Host connection pool not found, 
> hostConfig=HostConfiguration[host=https://:9443] 
> Sep 11, 2015 2:12:32 PM 
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager 
> freeConnection 
> SEVERE: Host connection pool not found, 
> hostConfig=HostConfiguration[host=https://::9443] 
> Sep 11, 2015 2:12:32 PM 
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager 
> freeConnection 
> SEVERE: Host connection pool not found, 
> hostConfig=HostConfiguration[host=https://::9443] 
> Sep 11, 2015 2:12:32 PM 
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager 
> freeConnection 
> SEVERE: Host connection pool not found, 
> hostConfig=HostConfiguration[host=https://::9443] 
>
> Not sure what is it complaining about.. 
>
> Any suggestions? 
>
> Thanks in advance 
>
> M
>

-- 
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/6fb42648-a745-4725-8f00-ab4ae82b56ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Meetups and CIA

2015-09-18 Thread Kanstantsin Shautsou
 120,000 active plugins 

/me choked

-- 
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/cdb0875f-aa38-48fa-8066-a31b8a6d67ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins and GitHub Enterprise "Forking"

2015-09-07 Thread Kanstantsin Shautsou
Validate GH PRs, work in forks, when fork will be ready for merge - PR to 
target branch, wait verification/do review. Pretty simple and easy.

On Wednesday, September 2, 2015 at 2:40:13 PM UTC+3, Eric Fontana wrote:
>
> I'm new to Jenkins, I have the GitHub plugin installed and its connected 
> to our GitHub Enterprise.  I'm able to have it watch a Repo and build
> upon an agreed upon schedule.
>
> My question is, with GitHub's "Fork a Repo" flow, when a user forks a repo 
> (which was currently being tracked by Jenkins), it no longer
> gets builds by Jenkins, since its a new repo now.If we want the forked 
> repo to get built upon commit/pushes whats the best way
> to handle this?
>
> 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/d0ed87b2-4550-4c65-a089-a7755d80e68b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: JUC East and EU - slides/videos available

2015-07-23 Thread Kanstantsin Shautsou
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/977f0b19-b2f6-4686-8ac2-4a9706e63095%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: multiple LDAP connections

2015-07-07 Thread Kanstantsin Shautsou
Currently jenkins doesn't support 
failovers https://issues.jenkins-ci.org/browse/JENKINS-15063
Also note that current security library is outdated and implementing 
something using is maybe a waste of time.
There is existed issue for 
it https://issues.jenkins-ci.org/browse/JENKINS-5303 and @ndeloof even 
created branch in jenkins repo 
https://github.com/jenkinsci/jenkins/commits/spring-security but didn't end 
it.

In case of ldap you can try implement failover in ldap-plugin. 
On Monday, July 6, 2015 at 9:47:27 PM UTC+3, Ashish Yadav wrote:

  How do I configure jenkins to connect to multiple ldaps?

  Example: 
 ldap://ldap1.company.com:389
 ldap://ldap2.company.com:389

  In case there is an issue with ldap1. I want jenkins to use ldap2 
 automatically.
  
  

-- 
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/ab95e6af-0ef7-4f3b-9f1f-ee56a3dd52ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins slave appear offline - SSHLauncher threads BLOCKED

2015-07-04 Thread Kanstantsin Shautsou



 If anyone else is interested, we will be releasing our scalability test 
 harness (actually I will be ripping the bottom out of the acceptance test 
 framework and putting the scalability harness in its place... But the 
 harness is also useful for scalability testing). We will also be publishing 
 our findings.

  Was it released?

-- 
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/9610cc35-d727-44ff-b673-23e7d78474dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException in org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

2015-05-28 Thread Kanstantsin Shautsou
NPE is always a bug, please fill issue for artifactory-plugin component 

On Thursday, May 21, 2015 at 11:09:05 PM UTC+3, John Lemp wrote:

 Not sure if it is the same issue but we had the same error after upgrading 
 Jenkins and the artifactory plugin. The project settings for the 
 Artifactory plugin had no/empty values for Resolution releases repository 
 and Resolution snapshots repository. After we set those values it 
 worked.

 On Tuesday, April 21, 2015 at 4:48:48 AM UTC-4, Alexander Dvorsky wrote:

 Hi there,

  

 Since this weekend we are encountering the following problem when we try 
 to execute a maven project right after the SVN Update traces in the console 
 output:

  

 ERROR: Processing failed due to a bug in the code. Please report this to 
 .. jenkinsci google group.

 java.lang.RuntimeException: java.lang.NullPointerException

 at 
 org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

 at 
 hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)

 at 
 hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)

 at 
 hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)

 at 
 hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)

 at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)

 at hudson.model.Run.execute(Run.java:1741)

 at 
 hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)

 at 
 hudson.model.ResourceController.execute(ResourceController.java:98)

 at hudson.model.Executor.run(Executor.java:374)

 Caused by: java.lang.NullPointerException

 at 
 org.jfrog.hudson.util.ExtractorUtils.setResolverInfo(ExtractorUtils.java:184)

 at 
 org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:150)

 at 
 org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:128)

 ... 9 more

 project=hudson.maven.MavenModuleSet@49bcf9f0[3.8-IAS-Inc-Webadmin]


 project.getModules()=[hudson.maven.MavenModule@3252a7b0[3.8-IAS-Inc-Webadmin/com.vasco:webadmin][3.8-IAS-Inc-Webadmin/com.vasco:webadmin][relativePath:]]

 project.getRootModule()
 =hudson.maven.MavenModule@3252a7b0[3.8-IAS-Inc-Webadmin/com.vasco:webadmin][3.8-IAS-Inc-Webadmin/com.vasco:webadmin][relativePath
 :]

 FATAL: java.lang.NullPointerException

 java.lang.RuntimeException: java.lang.NullPointerException

 at 
 org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

 at 
 hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)

 at 
 hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)

 at 
 hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)

 at 
 hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)

 at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)

 at hudson.model.Run.execute(Run.java:1741)

 at 
 hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)

 at 
 hudson.model.ResourceController.execute(ResourceController.java:98)

 at hudson.model.Executor.run(Executor.java:374)

 Caused by: java.lang.NullPointerException

 at 
 org.jfrog.hudson.util.ExtractorUtils.setResolverInfo(ExtractorUtils.java:184)

 at 
 org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:150)

 at 
 org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:128)

 ... 9 more

   

 I have never seen an error like this. Even our java guy is out of ideas…

 Have anyone of you encountered something like this and know how to 
 revive my Maven Jobs?


 best regards,

 Alexander D.
 ...



-- 
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/95d3d71c-9802-4c96-880a-2c3a1f7e6f1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker Plugin 0.9.0-RC1

2015-05-28 Thread Kanstantsin Shautsou
Please fill issue with providing steps for reproducing.   

On Wednesday, May 13, 2015 at 5:50:50 AM UTC+3, Richard Bywater wrote:

 Hi

 I've been playing with the latest RC1 version of the Docker Plugin to see 
 if it fixes some of the issues I had previously.

 Overall it seems a bit more stable but it still doesn't seem to like 
 starting more than one container for a particular Docker template/label. 
 That is, if I have a template with the label of docker, start one job which 
 has that label, and then start another, the second job just sits there 
 until the first job finishes.

 Is there suppose to be a fix in the new version to force it to create a 
 new container or is that still a work in progress?

 Cheers
 Richard.


-- 
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/da5784db-8282-4c5c-b3d8-3784e7833f74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Execute two jobs in Jenkins without losing session

2015-04-29 Thread Kanstantsin Shautsou
AFAIK it's currently jenkins limitation that you can't bind sequence of 
jobs to one slave. I hope something will change after Cloud API 
improvements.
All that you can do it just create a static slave in EXCLUSION mode (run 
only tied jobs), assign label, bind job to this label. 

On Tuesday, April 28, 2015 at 6:42:50 AM UTC+3, gaurav kodmalwar wrote:

 Hi All, 

 I have configured Jenkins for executing multiple SAS jobs sequentially 
 but libraries defined in first job being used by another job however 
 second jobs unable to identify those libraries. When I redefined 
 libraries in second job then issue got resolved. This issue doesn't 
 come up if I run same job in windows task scheduler. I suspect that 
 Jenkin is executing all jobs in a new sessions, how can I configure to 
 run all sequential jobs in a single session? 

 By the way, I am calling my sas jobs through windows batch and that 
 windows batch call is configured in Jenkin\Task Scheduler. In Jenkins, 
 I selected option Execute Windows Batch Command and provided 
 following code: 
 D:\SAS\SASFoundation\9.4\sas.exe -sysin D:\spa\MasterDriverMain.sas 

 MasterDriverMain.sas calls multiple sas jobs  takes care of looping etc. 

 Thanks in advance. 

 Gaurav 


-- 
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/14cea02c-7216-4073-b48d-99a9572b98b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SQL Injection Vulnerability

2015-02-03 Thread Kanstantsin Shautsou
This is not an SQL injection, configuration page calls all checks for form 
validations https://wiki.jenkins-ci.org/display/JENKINS/Form+Validation

On Tuesday, February 3, 2015 at 9:35:15 PM UTC+3, Daniel Beck wrote:

 Just to clear this up, since it was reported publicly: 

 This appears to be from the CVS plugin and is clearly a false positive: 

 https://github.com/jenkinsci/cvs-plugin/blob/master/src/main/java/hudson/scm/ExcludedRegion.java#L100
  

 It seems the scanner mistakes printing parts of the input (to return a 
 helpful error message about an invalid regex to the user) as SQL injection 
 for some reason. 

 On 03.02.2015, at 15:54, Wt Riker wtrik...@gmail.com javascript: 
 wrote: 

  I posted this once but it seems to have disappeared so my apologies if 
 it shows up as a duplicate. I have discovered a security vulnerability in 
 Jenkins (1.569). I am a sys admin, not a Jenkins admin, so I do not know 
 how this link is generate and I don't want to start mucking with Jenkins 
 code to fix it. When a job is created a link like this is generated: 
  
  
 http://jenkins.server.com:8080/job/64-bit_CHRIS_PLAY_TEST_HUV02MS/descriptorByName/hudson.scm.ExcludedRegion/checkPattern
  
  
  This link is vulnerable to SQL injection. The usual way to correct this 
 is to use prepared statements. In any case I am guessing this has been 
 addressed already and I am looking for the fix. TIA. 
  
  -- 
  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 javascript:. 
  To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/eb52c2a4-1359-4603-afa1-61dd0f39d172%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/0a5f4b5a-917b-4ab8-bf40-073bf7f60331%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: P4 plugin and Perforce plugin???

2015-02-03 Thread Kanstantsin Shautsou
For github features there are even 4 or 5 plugins ;)
About perforce search initial thread in jenkins-devel maillist. One plugin 
supported by community, second by perforce itself.

On Tuesday, February 3, 2015 at 9:44:02 PM UTC+3, rginga wrote:

  I use the Perforce plugin version 1.3.26 and another Jenkins server is 
 our company is using the P4 plugin version 1.0.14. why are there 2? I 
 prefer the Perforce plugin I am using but which is the official one?

  

 *Dick Ginga, Informatics RD*

 *PerkinElmer Inc. *
 *| For the Better **HUMAN HEALTH **|* *ENVIRONMENTAL HEALTH*
 940 Winter Street, Waltham MA 02451

  

 *dick.ginga**@perkinelmer.com javascript:*  

 Mobile – 508-847-1434

 Office – 781-663-6947

   
  

-- 
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/1ccd592d-d0c8-422d-a49c-9ff660695a3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to exit a Groovy postbuild script gracefully?

2015-02-03 Thread Kanstantsin Shautsou
Just don't throw error, especially RuntimeException.

On Thursday, January 29, 2015 at 3:04:52 AM UTC+3, MCSF wrote:

 Hello,
 I want to be able to exit the Groovy postbuild step gracefully if the 
 build status was ABORTED.
 Here is what I have now:

def buildstatus = manager.build.getResult() 
if ($buildstatus.equalsIgnoreCase( ABORTED ) ) 
{
  manager.addShortText(Build $buildstatus; exiting Groovy, red, 
 white, 0px, white)
  throw new RuntimeException(buildstatus is $buildstatus ) 
}
// do normal stuff if build was not aborted


 The above code works, but it spews a bunch of Groovy errors onto the build 
 page:

 *Groovy script failed:*

 java.lang.RuntimeException: buildstatus is ABORTED 
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
   at 
 org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
   at 
 org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
   at 
 org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
   at 
 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:54)
   at 
 org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
   at 
 org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
   at Script1.run(Script1.groovy:5)
   at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
   at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
   at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
   at 
 org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.perform(GroovyPostbuildRecorder.java:312)
   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
   at 
 hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
   at 
 hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
   at hudson.model.Build$BuildExecution.post2(Build.java:183)
   at 
 hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725)
   at hudson.model.Run.execute(Run.java:1709)
   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
   at hudson.model.ResourceController.execute(ResourceController.java:88)
   at hudson.model.Executor.run(Executor.java:231)




-- 
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/a91ff9cf-7816-432b-9dd8-cb3631b60f07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question on running simultaneous jobs in Jenkins

2014-11-12 Thread Kanstantsin Shautsou
Please, try ask it in users mail list. 
You can also try 
register http://devops.com/news/ci-and-cd-across-enterprise-jenkins/ where 
first topic 
   
   - Orchestrate Continuous Delivery pipelines with the new workflow 
   feature, may potentially help you.


On Wednesday, November 12, 2014 8:39:54 PM UTC+3, alok kumar wrote:

 Hi All,
 I have a requirement where in I have Prameterized build project which acts 
 as a master project. This job does a lot of pre scm steps after which is 
 supposed to initiate other jobs simultanously based on a condition for 
 which I am using the conditinal build srep plugin. But, when I have more 
 than one condition to check and initiate the jobs based on both the 
 conditions simultaneously, I am not able to proceed on it.

 So, lets say we have:
 condition A - triggers jobA, jobB
 condition B - triggers jobC, jobD

  What I would like is to execute these conditions at the same time so that 
 all the jobs start together?

 Can anyone please help me achieve this? This will be really appreciated.

 Thanks,
 Alok


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: ssh slaves connection timeout

2014-10-22 Thread Kanstantsin Shautsou
Do you have any logs? In http://your_jenkins_url/log and jenkins.log ?

On Friday, May 23, 2014 6:07:17 PM UTC+3, Guillaume Boucherie wrote:

 Hi,

 I made more tests and I find something very interesting.
 When I launch the slave with a custom script the communication between 
 master and slave never stopped.
 But when I launch the slave with Jenkins buit in ssh connection I have 
 problems.

 So maybe there is a problem in trilead-ssh2 library ?
 Anyone as an idea about this ?

 Thanks

 Guillaume


 2014-05-23 10:24 GMT+02:00 Guillaume Boucherie guillaume...@gmail.com 
 javascript::

 Hi,

 My slaves are on the same VPC as my master.
 I try with a very low restricted Security Group that allow all traffic 
 from all port and protocol without success.
 Anyway I will try to fixed the tcp port used as you say.
 Thanks

 Guillaume


 2014-05-22 18:32 GMT+02:00 Gareth Bowles gbo...@gmail.com javascript:
 :

 We have masters and slaves set up in VPC at my job.  The only thing to 
 make sure of is that the master / slave communication port is open in your 
 security groups; this should be set to a fixed value via the TCP port for 
 JNLP slave agents field in http://yourjenkins/configureSecurity (even 
 though the field description mentions JNLP, this port is used for SSH 
 connection as well).  

 Are your slaves running in the same VPC as your master (this is the case 
 for me) ?  If not, there might be some additional network access issues.


 On Thursday, May 22, 2014 5:05:25 AM UTC-7, Guillaume Boucherie wrote:

 After more research and test I find that the problem is link to AWS VPC.
 I'm did a simple test, running two instance in AWS (one for master and 
 one for slave) and create a job that simply echo 1000 times Lorem ipsum 
 dolor sit amet, consectetur adipiscing elit. Maecenas et..
 When I did this on AWS VPC I can reproduce the problem after 2-3 job 
 execution, on classic EC2 its never failed.

 Does anyone have already trying to setup a Jenkins master/slave in AWS 
 VPC ?

 Thanks

 Guillaume Boucherie


 Le lundi 5 mai 2014 11:32:23 UTC+2, Guillaume Boucherie a écrit :

 Hi,

 I'm facing very unstable ssh connection between master/slaves on my 
 Jenkins installation.
 Both master and slaves are AWS instance that run on AWS Linux system.
 After some time the ssh connection stop, current job that run are 
 freeze and failed after 15min.
 I attached the stacktrace from jenkins.log

 Does anybody face the same problem ?
 Maybe its related to ssh configuration ?
 I'm running Jenkins 1.554.1 and salve version used is 2.36.

 Thanks
 Guillaume Boucherie

  -- 
 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/hWNTI4xRy_A/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 jenkinsci-use...@googlegroups.com javascript:.
 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.
For more options, visit https://groups.google.com/d/optout.


Re: significance of .jenkins diectory tree

2013-01-16 Thread Kanstantsin Shautsou
This directory looks like cache directory that used by winstone.
If yes, then you can delete it and it will be filled by cache again.
All depends on how you installed jenkins.

On 28.12.2012, at 23:26, Kamal Ahmed kamalah...@yahoo.com wrote:

 Hi,
 Does anyone know the significance of /home/user/.jenkins and the 
 files/Directories under it?
 Can i remove them without having any impact on my jenkins Instance ?
 
 .jenkins
 
 .jenkins$ cd war
 hostname:~/.jenkins/war$ ls
 ColorFormatter.class  JNLPMain.class   MainDialog.class
 css   LogFileOutputStream$1.class  
 Main$FileAndDescription.class
 dc-license.txtLogFileOutputStream$2.class  META-INF
 executableLogFileOutputStream.classrobots.txt
 favicon.ico   Main.class   scripts
 help  MainDialog$1$1.class WEB-INF
 imagesMainDialog$1.class   winstone.jar
 



Re: ldap authentication

2013-01-06 Thread Kanstantsin Shautsou
You should look it periodically to get dynamic of processes also you can try 
modify plugin sources to print debug information and recompile.

On 06.01.2013, at 12:54, Levin, Ilya ilya.le...@hp.com wrote:

 Hello,
  
 I’m using Jenkins v 1.472 with ldap authentication, but the performance is 
 very bad.
 It takes about 5 min or more to authenticate a user when logging.
 I tried looking at  http://server/hudson/threadDump but it doesn’t tell me 
 much.
  
 How can I know where the spending time occurs?
 Thanks for the help!
  
  



Re: Archived Artifacts

2012-12-18 Thread Kanstantsin Shautsou
You use maven style project, it saves build artifacts. If you have problems 
with space, decrease history.

On 10.12.2012, at 20:41, Nicky Ramone nixe...@gmail.com wrote:

 Hello.
 
 I noticed that despite my configuration is defined so that no artifacts are 
 archived, the artifacts are stored in the disk anyway for all builds.
 Example:
 $JENKINS_HOME/jobs/dummy/modules/com.dummy/builds/2012-07-12_10-24-06/archive/com.dummy/dummy/dummy,tar.gz
 
 Is this due to fingerprinting? is there any way to avoid this?
 
 Thanks
 Regards



Re: workspace deletion

2012-08-06 Thread Kanstantsin Shautsou
Also check $JENKINS_HOME/workspace/${JOB} .

On 03.08.2012, at 19:39, David Weintraub qazw...@gmail.com wrote:

 In Unix, you could do something like this:
 
 $ rm -rf $JENKIN_HOME/jobs/*/workspace/*
 
 Another possibility is:
 
 $ cd $JENKINS_HOME/jobs
 $ find .  -regex \./[^/]+/workspace/[^/]+ -exec rm {} \;
 
 On Fri, Aug 3, 2012 at 12:23 PM, phil swenson phil.swen...@gmail.com wrote:
 Is there an easy way to delete all the workspaces on all nodes?
 
 I looked at the CLI - doesn't appear to help.
 
 thanks
 
 
 
 -- 
 David Weintraub
 qazw...@gmail.com



Re: Problems with JVM Parameters in Freestyle Jobs with Maven Builder

2012-07-29 Thread Kanstantsin Shautsou
Does it work for maven based jobs?
Looks like you can't set more memory for maven then you gave to jenkins
process, because maven executes in parent jenkins java process.

2012/7/26 Markward Schubert markward.schub...@gmail.com

 Hi Group!

 Is there some known issue with JVM Parameters being ignored for Maven
 build steps in freestyle jobs? I have the following parameters set:

 -XX:PermSize=128m -XX:MaxPermSize=512m -Xms512m -Xmx1g

 It seems that these are ignored, because when I put -Xmx8g, the build runs
 as if i wrote 1g, although the machine has a total of about 4g of ram.
 So I would expect the job to stop with a message, that i assigned more
 mem, than available.
 The reason for me to investigate in this is, because after activating the
 checkstyle plugin, I start getting heapspace Exceptions and started to
 experiment with these settings.