Re: maven projects become slow after a couple of months

2016-05-25 Thread Jorg Heymans
Hi,

We have a local maven repo per executor. We do not archive any artifacts. I 
have not configured anything specifically for fingerprinting so whatever is 
the default is currently active.

As i said the slowdown occurs during maven init, when it says 'Scanning for 
projects' , has Jenkins instrumented this part as well to execute some 
additional stuff perhaps ?

Thanks,
Jorg


On Wednesday, May 25, 2016 at 7:24:17 PM UTC+2, Karl Heinz Marbaise wrote:
>
> Hi, 
>
> That sounds like you are either archiving the results of each build or 
> do generate fingerprints of the artifacts...fingerprints are only needed 
> if you try to make dependencies between jobs with SNAPSHOT's otherwise 
> is useless. 
>
> Furthermore are you using a local maven cache (ake local repository) for 
> each job? 
>
> Kind regards 
> Karl Heinz Marbaise 
> On 5/25/16 11:21 AM, Jorg Heymans wrote: 
> > Hi, 
> > 
> > I reported this a couple of months ago, is anyone else seeing this ? 
> > 
> > https://issues.jenkins-ci.org/browse/JENKINS-34233 
> > 
> > Several times already we have noticed that the build time of certain of 
> > our maven jobs increases substantially over the course of several 
> > months. We are talking from 30s initially to 3-4 minutes after six 
> > months. This happens for jobs configured to run on our solaris build 
> > server , but also jobs configured to run on windows slaves. 
> > 
> > It is easy to tell a job is getting slow because during maven init it 
> > takes a long time to get passed "Scanning for projects" : 
> > 
> > 
> > 13:06:54 [INFO] Scanning for projects... 
> > 13:08:03 [INFO] 
>  
> > 
> > 
> > As you can see more than 70 seconds during maven init is not normal. 
> > 
> > We found out that when we recreate the job (basically just a copy of the 
> > job under a different name from the UI, then delete the slow one and 
> > rename the copy to the original) performance is back to normal. But 
> > after a few months the slowdown becomes noticeable again. 
> > 
> > 
> > Any thoughts as to what could be causing this ? 
> > 
> > 
> > Jorg 
>

-- 
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/08786696-ebe9-4293-8ce4-f3e7197113e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Controlling user Jenkins runs as

2016-05-25 Thread 'Stuart Henderson' via Jenkins Users
Hi,
Thank you. That worked as solved the problem. Much appreciated.

-- 
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/aef0f85f-e24b-4fb9-b0cc-2f2b70cb172b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to anonymously clone a Jenkins scriptler repository

2016-05-25 Thread Mark Eggers
As a followup - anonymous cloning works as expected with the following 
environment:

CentOS 6.7 64 bit

Tomcat 7.0.69 (ASF)
JRE 1.7.0_80 (Oracle - sigh)

Apache HTTPD 2.2.15-47
mod_jk 1.2.41 (ASF)

git 1.7.1

Jenkins 1.656
Scriptler 2.9

So I'm missing something in my upgrade from 1.656 to 2.x?

Mark
/mde/

On Wednesday, May 25, 2016 at 1:56:07 PM UTC-7, Mark Eggers wrote:
>
> Hi,
>
> I'm trying to reorganize a bunch of Groovy scripts with Scriptler, and I 
> would like to use the git repository.
>
> My environment:
>
> CentOS 6.8 64 bit
> JRE 1.8.0_92 (Oracle)
> git 1.7.12.4 (rpmforge)
>
> Apache HTTPD 2.2.15-53 (CentOS)
> mod_jk 1.2.41 (ASF)
> Tomcat 8.0.33 (ASF)
>
> Jenkins 2.6 (upgraded from the last 1.6x release)
> scriptler 2.9
> git 2.4.4
> git-client 1.19.6
> git-server 1.6
>
> From the documentation, it indicates that I should be able to clone the 
> git repository of scriptler from http://[jenkins-url]/scriptler.git
>
> However, if I try to clone this from Windows 7 64 bit (git 
> 2.6.3.windows.1), I get the following:
>
> Cloning into 'scriptler'...
> error: fatal: RPC failed; result=22, HTTP code = 403
> The remote end hung up unexpectedly
>
> I've tried this both through HTTPD and through Tomcat directly (port 8080).
>
> I understand that to push to the git repository, I'll have to have 
> credentials. However, I'm not able to clone the existing repository, whether
> it's empty or it contains a sample script.
>
> Obviously I am doing something wrong. What do I need to do to make this 
> work?
>
> Mark
> /mde/
>
>

-- 
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/682b8802-f7a9-4779-9c28-182b105f422e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-25 Thread Baptiste Mathus
Indeed, this plugin is up for adoption now that Damien stepped down.

But, as says Nicolas who created it, this plugin is unlikely to have a lot
of traction and any real future [1] so you're likely to have to dig into
the issue yourself.
But you're very welcome to step over as a maintainer AJ. Just tell us and
we can grant you the required permissions if you wish to fix and release it.

[1] not forgetting the merit of Nicolas and this plugin, which was actually
one of the inspirations for the Pipeline plugin.

2016-05-24 16:52 GMT+02:00 nicolas de loof :

> Pipeline is not perfect but definitively is more mature than build-flow
> has ever been (*)
>
> (*) I'm build-flow initial author, and gave up for major technical
> limitations
>
> 2016-05-24 16:48 GMT+02:00 Stefan Thomasson :
>
>> It is said that jenkins 2.x should be backwards compatible so I not
>> really sure why buildflow break the gui. For me it only dissapear when
>> navigating using the tab, so scrolling usually works.
>> Right now I do not consider pipeline mature enough for use in production
>> but you may be of other opinion.
>>
>>
>> 24 maj 2016 kl. 16:09 skrev AJ Ferrigno :
>>
>> Hello,
>>
>> We have been using the Build Flow plugin for about a year now. We have a
>> large block of DSL which we mostly needed for parallel execution.
>>
>> I have just tried upgrading to Jenkins 2.2, and I am now unable to edit
>> the DSL in our existing Build Flow job. I open the job, click
>> configuration, scroll down to where the DSL would be, and the entire DSL
>> just disappears from view. The only way I can edit the DSL is to navigate
>> to the config.xml file on the master, change it there, and then reload
>> configuration from disk. Obviously, this is an inconvenience.
>>
>> I have tried making a brand new (blank) Build Flow job and the same issue
>> happens. Once I paste in my DSL, save it, then return to the configuration
>> and scroll down, the DSL box disappears.
>>
>> Upgrading to Jenkins 2.6 does not fix the issue (in fact, it breaks other
>> things sadly). Upgrading all my plugins does not fix the issue.
>>
>> It looks like this plugin is deprecated in favor of Pipelines and may no
>> longer be supported. I will need to investigate Pipelines to see how to
>> move away from our DSL. However, there was a change this month to link it
>> to Pipelines. Is it possible to get this problem fixed as well? I even
>> volunteer myself to fixing it, although I am not a Jenkins developer and
>> wouldn't know where to start debugging this thing. I'm hoping someone else
>> would understand why something would disappear from the page as a result of
>> the 2.2 upgrade. Maybe after having it explained, I can make the hopefully
>> small code change to get it fixed.
>>
>> Thanks in advance,
>> AJ
>>
>> --
>> 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/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%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/E7D7FABA-27AA-4C7F-B93C-735C4F293241%40gmail.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/CANMVJzm-VDKN6nrEyujmC53YezQCjRYY%2BcKazR%2Be3fzEkP5%3DHA%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 

Unable to anonymously clone a Jenkins scriptler repository

2016-05-25 Thread Mark Eggers
Hi,

I'm trying to reorganize a bunch of Groovy scripts with Scriptler, and I 
would like to use the git repository.

My environment:

CentOS 6.8 64 bit
JRE 1.8.0_92 (Oracle)
git 1.7.12.4 (rpmforge)

Apache HTTPD 2.2.15-53 (CentOS)
mod_jk 1.2.41 (ASF)
Tomcat 8.0.33 (ASF)

Jenkins 2.6 (upgraded from the last 1.6x release)
scriptler 2.9
git 2.4.4
git-client 1.19.6
git-server 1.6

>From the documentation, it indicates that I should be able to clone the git 
repository of scriptler from http://[jenkins-url]/scriptler.git

However, if I try to clone this from Windows 7 64 bit (git 
2.6.3.windows.1), I get the following:

Cloning into 'scriptler'...
error: fatal: RPC failed; result=22, HTTP code = 403
The remote end hung up unexpectedly

I've tried this both through HTTPD and through Tomcat directly (port 8080).

I understand that to push to the git repository, I'll have to have 
credentials. However, I'm not able to clone the existing repository, whether
it's empty or it contains a sample script.

Obviously I am doing something wrong. What do I need to do to make this 
work?

Mark
/mde/

-- 
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/0a886a98-2a6f-42d5-b9e0-bccc01f6309f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline: Keep the main logic outside of Jenkinsfile

2016-05-25 Thread Baptiste Mathus
Did you possibly have a look at:
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Remote+Loader+Plugin
or
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Shared+Groovy+Libraries+Plugin
?

2016-05-24 16:00 GMT+02:00 Sverre Moe :

> What is the best design approach to keeping the Jenkinsfile small (little
> build logic as possible)?
>
> Having close to a hundred projects and several branches on each, then
> duplicating the pipeline logic within each Jenkinsfile would be a
> maintenance nightmare.
>
> 1)
> I could put the Pipeline script within Jenkins Scriptler
> def packageInformation = load
> '../../../scriptler/scripts/package-information.groovy'
> packageInformation.init()
> However I'm only able to access this on the master node
>
> 2)
> I could have all the pipeline scripts within a jenkins-ci-scripts project
> in Git.
> stage 'Init'
> git url: 'ssh://g...@git.company.com/tools/jenkins-ci-scripts.git'
> stash includes: '**/*.groovy', name: 'scripts'
>
> stage 'Checkout'
> checkout scm
> unstash scripts
> def packageInformation = load
> 'src/main/groovy/com/company/pipeline/package-information.groovy'
> packageInformation.init()
> I could then load the pipeline scripts from this stash. However I do not
> like having to duplicate even this much in all my different Jenkinsfile.
>
> 3)
> We have a inhouse build tool installed on all build machines. This
> contains various build scripts, shell, python, ruby.
>
>
> Example Jenkinsfile with little logic as possible
> def branch = env.BUILD_BRANCH
> def pipeline = load '/path/to/our/installed/build-pipeline.groovy'
> parallel pipeline.nodes(branch)
>
>
> My current Jenkins instance I comprised of Multi-configuration
> jobs/projects (a jenkins job/project for each release branch). Having aprox
> 8 release branches for each of the 60 projects. I am moving over to
> Pipeline because of a complex workflow and because Multi-configuration does
> not support a Prebuild-step that I need.
>
> --
> 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/126d204a-f002-4838-a67e-96d02913f7df%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/CANWgJS7UbVAcTKQ1v1PZ5aZYnLeCxTG626yX_ywGfrLH5NA_BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to solve Could not find (numeric) updateCenterVersion issue

2016-05-25 Thread Baptiste Mathus
Please avoid reposting. In that case, you could have forwarded the dev ML
email here.

So, quoting myself: "I think you're behind a proxy and Jenkins tries
parsing the 403 page or something like that.".

Did you look into that path?

2016-05-24 15:54 GMT+02:00 :

> Hi,
> I am trying to setup Jenkins and tried installing various version from
> 1.651 to latest version 2.6.  With all versions I am not able to see
> available plugins.  I encountered below error when click on Check Now to
> update.
> Please help me to resolve this issue.
>
> javax.servlet.ServletException: java.lang.IllegalArgumentException: Could
> not find (numeric) updateCenterVersion in {
> height:100%;
> padding:0;
> margin:0;
>   }
>   .oc{
> display:table;
> width:100%;
> height:100%;
>   }
>   .ic{
> display:table-cell;
> vertical-align:middle;
> height:100%;
>   }
>   div.msg{
> display:block;
> border:0px solid #30c;
> padding:0;
> width:800px;
> font-family:helvetica,sans-serif;
> margin:10px auto;
>   }
>   h1{
> font-weight:bold;
> color:#fff;
> font-size:20px;
> margin:0;
> padding:2px;
> text-align:center;
> background: #1e90ff;
>   }
>   h2{
> font-weight:bold;
> color:#fff;
> font-size:14px;
> margin:0;
> padding:2px;
> text-align:center;
> background: #1e90ff;
>   }
>   p{
> font-size:14px;
> margin:15px auto;
> width:75%;
> font-family:helvetica,sans-serif;
> text-align:center;
>   }
>   j{
> font-size:14px;
> margin-left:2in;
> 15px auto;
> width:75%;
> font-family:helvetica,sans-serif;
> text-align:center;
>   }
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> at org.kohsuke.stapler.MetaClass$2.doDispatch(MetaClass.java:174)
> at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
> at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> at
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at
> hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> at
> org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:370)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at
> 

Re: Unable to stop pipeline job

2016-05-25 Thread Baptiste Mathus
Did you try to click on the link in the logs, named "Click here to forcibly
terminate running steps"?

2016-05-24 9:08 GMT+02:00 Sverre Moe :

> After loading a Pipeline script the job froze and I was unable to stop the
> build.
> Clicking X had no effect.
> Restarting Jenkins had no effect.
> Deleting the job had no effect.
> A second restart after I deleted the job then the build executor was
> emptied.
>
> This is the output I got when loading a second Pipeline script.
> [Pipeline] unstash
> [Pipeline] load (../../../scriptler/scripts/package-information.groovy)
> [Pipeline] load {
> [Pipeline] } //load
> Aborted by anonymous
> Aborted by anonymous
> Aborted by anonymous
> Aborted by anonymous
> Click here to forcibly terminate running steps
> Click here to forcibly terminate running steps
> Click here to forcibly terminate running steps
> Click here to forcibly terminate running steps
>
> My Pipeline script
>
> node('master') {
> stage 'Checkout'
>
> checkout([$class: 'GitSCM',
> branches: [[name: '${BUILD_BRANCH}']],
> browser: [$class: 'GitWeb', repoUrl: '
> http://git.company.com/gitweb/?p=domain/projectA.git'],
> doGenerateSubmoduleConfigurations: false,
> extensions: [[$class: 'CleanBeforeCheckout']],
> submoduleCfg: [],
> userRemoteConfigs: [[url: 'ssh://
> g...@git.company.com/domain/projectA.git']]
> ])
>
> stage 'Init'
>
> def packageInformation = load
> '../../../scriptler/scripts/package-information.groovy'
>
> def packages = packageInformation.getPackages()
> println "Packages " + packages
>
> def buildRequirements = packageInformation.getBuildRequirements()
> println "buildRequirements " + buildRequirements
>
> stage 'Prebuild'
> println "Prebuild stage"
> }
>
> My second Pipeline script I am loading
> import java.lang.StringBuilder
>
> def projectName = ""
> def packages = new StringBuilder()
>
> def getProjectName() {
> projectName
> }
>
> def getPacakges() {
> packages
> }
>
> return this;
>
> If I remove return this; I have no problem running the extra pipeline
> script. Code outside any functions defined are run. However I need to
> return some values from that script.
>
> --
> 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/e296a9fd-f0bb-4985-99b8-6e556cf42c36%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/CANWgJS7v-Nr9pXa3%3Dh91DjFdmiA83R%3DyxMPszmMxQ3vDHuL%3Dbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline sh directive fails for all non-zero exit codes?

2016-05-25 Thread Mark L
This answers my sh 
issue: 
http://stackoverflow.com/questions/36956977/how-to-execute-a-command-in-a-jenkins-2-0-pipeline-job-and-then-return-the-stdou

Still would like to know how to exit a pipeline early.

On Wednesday, May 25, 2016 at 10:11:44 AM UTC-7, Mark L wrote:
>
> I'm play with the pipeline sh directive and can't get it to behave how I 
> want it to. Maybe there's a workaround?
>
> The bash script I'm calling has two success modes with the following 
> semantics: (1) everything succeeded, now go onto the next (Jenkins) stage, 
> and (2) everything succeeded and the build done, so don't run any further 
> stages.
>
> How do I return two separate exit codes and not have the pipeline mark one 
> of them as failed (in red)?
> How do I exit the pipeline early (not run all stages), and have the build 
> marked as successful?
>
> 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/09fba0c0-6827-4c33-91a7-cfb8d1a27545%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline set pipeline name from Jenkinsfile

2016-05-25 Thread Suresh Avadhanula
Hi,

I have multi branch pipeline that scans SVN repository for Jenkinsfile. 
 The build jobs are created with names as

foo/bar/somemodule/projectA
foo/bar/somemodule/projectB

Jenkins configures the workspace for the jobs as

${WORKSPACE_ROOT}/${PIPELINE_NAME}/foo%2Fbar%2Fsomemodule%2FprojectA

${WORKSPACE_ROOT}/${PIPELINE_NAME}/foo%2Fbar%2Fsomemodule%2FprojectB

This creates a problem for the build as maven encodes %2F again %252F while 
accessing a file from build target directory.


I tried setting the JOB_NAME to BRANCH_NAME in the Jenkinsfile



env.JOB_NAME = env.BRANCH_NAME.substring(env.BRANCH_NAME.lastIndexOf("/")+1)
echo  "JOB NAME is ${env.JOB_NAME}"


This did not help.

Is there a way to set the build job's name , not just display name, so that 
I can have the workspace directory as

${WORKSPACE_ROOT}/${PIPELINE_NAME}/foo_bar_somemodule_projectA 


Thanks

-Suresh

-- 
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/88912795-7146-4b2d-885a-0a6f2da1f10b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread Zoratto Thomas
Good to know, thanks !

> Le 25 mai 2016 à 19:41, nicolas de loof  a écrit :
> 
> ok, then you can use an init.groovy file for this purpose (stored in 
> jenkins_home)
> 
> 2016-05-25 19:35 GMT+02:00 Zoratto Thomas :
>> Docker exec is ok if you don't want to persist this configuration 
>> 
>>> Le 25 mai 2016 à 19:07, nicolas de loof  a écrit :
>>> 
>>> Can't you just docker exec this jenkins container and configure git to 
>>> accept this self-signed certificate ? see 
>>> https://git-scm.com/docs/git-repo-config/1.4.3#http.sslCAPath
>>> 
>>> 
>>> 2016-05-25 18:25 GMT+02:00 Zoratto Thomas :
 Hello,
 
 You can build your own Jenkins image based on the official one but with 
 the Java trust store configured with your certs. 
 
 Or you could use ssh (or event git protocol?) instead of https. 
 
 The plugin you are talking about seems broken and no longer maintained
 
 Thomas
 
> Le 25 mai 2016 à 15:37, christian polzer  a 
> écrit :
> 
> Hello,
> 
> I am currently trying to evaluate an update to Jenkins 2.x here at work 
> with the actual docker image of jenkinsci/jenkins.
> 
> For this I need to git pull my git repo from a selfhosted Bitbucket/Stash 
> Server via https.
> 
> Of course, the docker image's JVM has no clue of that cert.
> 
> So I wanted to give the plugin "skip-certificate-check" a try, which 
> isn't helping in this case.
> 
> After several hours of trying and searching my way through the interwebz, 
> I am turning to this group, with the hope that anyone here has solved 
> that problem before?
> 
> Kind regards,
> 
> Chris
> 
> 
>
> -- 
> 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/8c0b64a6-564b-4f61-aa06-e2dba5da3084%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/E2D5610F-CB6B-4762-BA0C-8BA9F1E5ABC7%40gmail.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/CANMVJz%3DA9PPABSyOQeJ3ekXwDL3XnFLP-zHioqWs3WxNwSOYPA%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/C6C3D2D8-7B24-4B71-A58C-892537F2DAC6%40gmail.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/CANMVJzkWK9zLoYr9-ijvTtEa-kZ%3D0qHvrRMj_bgaqvt-7zv4Bw%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/1E05EEB1-C2E1-4720-BAB3-C169BA574127%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread nicolas de loof
ok, then you can use an init.groovy file for this purpose (stored in
jenkins_home)

2016-05-25 19:35 GMT+02:00 Zoratto Thomas :

> Docker exec is ok if you don't want to persist this configuration
>
> Le 25 mai 2016 à 19:07, nicolas de loof  a
> écrit :
>
> Can't you just docker exec this jenkins container and configure git to
> accept this self-signed certificate ? see
> https://git-scm.com/docs/git-repo-config/1.4.3#http.sslCAPath
>
>
> 2016-05-25 18:25 GMT+02:00 Zoratto Thomas :
>
>> Hello,
>>
>> You can build your own Jenkins image based on the official one but with
>> the Java trust store configured with your certs.
>>
>> Or you could use ssh (or event git protocol?) instead of https.
>>
>> The plugin you are talking about seems broken and no longer maintained
>>
>> Thomas
>>
>> Le 25 mai 2016 à 15:37, christian polzer  a
>> écrit :
>>
>> Hello,
>>
>> I am currently trying to evaluate an update to Jenkins 2.x here at work
>> with the actual docker image of jenkinsci/jenkins.
>>
>> For this I need to git pull my git repo from a selfhosted Bitbucket/Stash
>> Server via https.
>>
>> Of course, the docker image's JVM has no clue of that cert.
>>
>> So I wanted to give the plugin "skip-certificate-check" a try, which
>> isn't helping in this case.
>>
>> After several hours of trying and searching my way through the interwebz,
>> I am turning to this group, with the hope that anyone here has solved that
>> problem before?
>>
>> Kind regards,
>>
>> Chris
>>
>>
>>
>>
>> --
>> 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/8c0b64a6-564b-4f61-aa06-e2dba5da3084%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/E2D5610F-CB6B-4762-BA0C-8BA9F1E5ABC7%40gmail.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/CANMVJz%3DA9PPABSyOQeJ3ekXwDL3XnFLP-zHioqWs3WxNwSOYPA%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/C6C3D2D8-7B24-4B71-A58C-892537F2DAC6%40gmail.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/CANMVJzkWK9zLoYr9-ijvTtEa-kZ%3D0qHvrRMj_bgaqvt-7zv4Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread nicolas de loof
Can't you just docker exec this jenkins container and configure git to
accept this self-signed certificate ? see
https://git-scm.com/docs/git-repo-config/1.4.3#http.sslCAPath


2016-05-25 18:25 GMT+02:00 Zoratto Thomas :

> Hello,
>
> You can build your own Jenkins image based on the official one but with
> the Java trust store configured with your certs.
>
> Or you could use ssh (or event git protocol?) instead of https.
>
> The plugin you are talking about seems broken and no longer maintained
>
> Thomas
>
> Le 25 mai 2016 à 15:37, christian polzer  a
> écrit :
>
> Hello,
>
> I am currently trying to evaluate an update to Jenkins 2.x here at work
> with the actual docker image of jenkinsci/jenkins.
>
> For this I need to git pull my git repo from a selfhosted Bitbucket/Stash
> Server via https.
>
> Of course, the docker image's JVM has no clue of that cert.
>
> So I wanted to give the plugin "skip-certificate-check" a try, which isn't
> helping in this case.
>
> After several hours of trying and searching my way through the interwebz,
> I am turning to this group, with the hope that anyone here has solved that
> problem before?
>
> Kind regards,
>
> Chris
>
>
>
>
> --
> 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/8c0b64a6-564b-4f61-aa06-e2dba5da3084%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/E2D5610F-CB6B-4762-BA0C-8BA9F1E5ABC7%40gmail.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/CANMVJz%3DA9PPABSyOQeJ3ekXwDL3XnFLP-zHioqWs3WxNwSOYPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread Zoratto Thomas
Hello,

You can build your own Jenkins image based on the official one but with the 
Java trust store configured with your certs. 

Or you could use ssh (or event git protocol?) instead of https. 

The plugin you are talking about seems broken and no longer maintained

Thomas

> Le 25 mai 2016 à 15:37, christian polzer  a écrit 
> :
> 
> Hello,
> 
> I am currently trying to evaluate an update to Jenkins 2.x here at work with 
> the actual docker image of jenkinsci/jenkins.
> 
> For this I need to git pull my git repo from a selfhosted Bitbucket/Stash 
> Server via https.
> 
> Of course, the docker image's JVM has no clue of that cert.
> 
> So I wanted to give the plugin "skip-certificate-check" a try, which isn't 
> helping in this case.
> 
> After several hours of trying and searching my way through the interwebz, I 
> am turning to this group, with the hope that anyone here has solved that 
> problem before?
> 
> Kind regards,
> 
> Chris
> 
> 
>
> -- 
> 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/8c0b64a6-564b-4f61-aa06-e2dba5da3084%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/E2D5610F-CB6B-4762-BA0C-8BA9F1E5ABC7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Making a Course on Pipeline Plugin

2016-05-25 Thread Kent Johnson
Hi all, I am making a course on how to use Jenkins with the Pipeline plugin 
to automate continuous integration and builds.
My goal is to make having a short, low-noise, high-reliability feedback 
loop a practical possibility for the average developer.
I am thinking this means that I would show how to use Docker to spin up 
Jenkins locally and a test-grid locally as well as how to create or plug 
into an existing enterprise Jenkins Pipeline build system.

See this Github repo for the TOC: 
https://github.com/kentoj/jenkins-pipeline-course

Though I have used the Pipeline plugin (back when it was called the 
Workflow plugin) I am not familiar with even a small fraction of the best 
use cases for it.

Will you, the other community members, help me put together a good table of 
contents or outline for a solid three to four hour course on how people 
could use and benefit from Jenkins with the Pipeline plugin?

I understand there are many ways to use Jenkins and the Pipeline so I am 
having to pick a small scope to begin with, though I would like to go as 
deep as showing test reports, running tests on test grids, and doing a 
build for every pushed branch to a repo.

I would greatly appreciate any contributions to the TOC. Please submit any 
suggestions or criticism as an issue or a pull request.

I believe we can create a great course together with the time I have to 
make it and the knowledge of this community.

-- 
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/353ea3a4-cbf6-4adc-8947-a76040714c20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Alternative to EnvInject?

2016-05-25 Thread 'Niksan' via Jenkins Users
Messy indeed. :)

Well, with luck I stumbled across this. 
https://themettlemonkey.wordpress.com/2014/10/03/programmatically-set-jenkins-build-variables/
And a bit of digging was able to utilize the EnvInject's plugin 
EnvInjectBuilderContributionAction.

That left me with a more flexible and sane way to deal with this as a 
groovy script.

import hudson.model.*
import org.jenkinsci.plugins.envinject.EnvInjectBuilderContributionAction

def params = [ 'SomeName' : 'SomeValue' ]
build.addAction(new EnvInjectBuilderContributionAction(params ))

Cheers.




On Wednesday, May 25, 2016 at 4:11:09 PM UTC+1, Eric Pyle wrote:
>
> IIRC, you can save the parameter value into a file (e.g. echo 
> MYPARAM=$MYPARAM > params.txt), and EnvInject can read it from there. Not 
> pretty, but should work.
>
> Eric
>
>
>
>
>
>  
>

-- 
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/21863dc3-1358-4c7a-8cd9-0e90a163c210%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Uploading files to Jenkins build from Ruby script

2016-05-25 Thread Andrew Moore
I have a ruby script to upload files to a Jenkins job but for some reason 
they don't appear in the job's workspace.

def jenkins_get_attempt(credentials, uri,payload)

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

headers = {'Content-Type' => "application/json", 'Accept-Encoding'=> 
"gzip,deflate",'Accept' => "application/json" }

request = Net::HTTP::Post.new(uri.request_uri,headers)
request.basic_auth credentials.username, credentials.password
request.body = payload.to_json

begin
response = http.request(request)
puts response.body
puts response.code
rescue StandardError, Timeout::Error => e
puts "Failed to get the resource: " + e.message
end

   return response.is_a?(Net::HTTPSuccess)
end


###
# Deploy a build file to Jenkins
# 
# @param credentials  [in] Jenkins credentials
# @param fileName [in] name of the file to deploy
#
###
def deploy_jenkins_ininspotability_ion_build(credentials,binZip, 
staticMediaZip)

host = our_jenkins_host:8443
token = "token"

job = "/job/{our job}/build"

uri= "https://; + host
uri << job
uri << "?token=" + token
uri << "_BIN="
uri << File.basename(binZip)
uri << "_RESOURCES="
uri << File.basename(staticMediaZip)
uri << "="
uri << binZip
uri << "="
uri << staticMediaZip

 payload = {
  :parameter => [{:name => "binary_zip", :file => 
"file0"},{:name => "resources_zip",:file => "file1"}, {:name => 
"SERVICE_BIN", :value => File.basename(binZip)}, {:name => 
"SHARED_RESOURCES", :value => staticMediaZip }]
 
   }

puts "URI = " + uri;

#uri = URI.parse(uri)

attempt = 0
maxAttempts = 10

begin
if jenkins_get_attempt(credentials, uri, payload, binZip, 
staticMediaZip)
return true
end

attempt += 1

puts "attempt #{attempt} failed"

end while attempt < maxAttempts

return false
end

The SERVICE_BIN and SHARED_RESOURCES values are populated, but the zip 
files don't get uploaded.

-- 
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/78b19185-b64c-4342-9263-e797fc9bbf0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: maven projects become slow after a couple of months

2016-05-25 Thread Jorg Heymans

No, we keep only two builds. And we do not even archive any artifacts, just 
a simple clean install.

Jorg

On Wednesday, May 25, 2016 at 3:39:32 PM UTC+2, David Karlsen wrote:
>
> Are you keeping a lot of build history? 
> 25. mai 2016 11:21 skrev "Jorg Heymans"  >:
>
>> Hi,
>>
>> I reported this a couple of months ago, is anyone else seeing this ? 
>>
>> https://issues.jenkins-ci.org/browse/JENKINS-34233
>>
>> Several times already we have noticed that the build time of certain of 
>> our maven jobs increases substantially over the course of several months. 
>> We are talking from 30s initially to 3-4 minutes after six months. This 
>> happens for jobs configured to run on our solaris build server , but also 
>> jobs configured to run on windows slaves.
>>
>> It is easy to tell a job is getting slow because during maven init it 
>> takes a long time to get passed "Scanning for projects" :
>>
>>
>> 13:06:54 [INFO] Scanning for projects...
>> 13:08:03 [INFO] 
>> 
>>
>>
>> As you can see more than 70 seconds during maven init is not normal.
>>
>> We found out that when we recreate the job (basically just a copy of the 
>> job under a different name from the UI, then delete the slow one and rename 
>> the copy to the original) performance is back to normal. But after a few 
>> months the slowdown becomes noticeable again.
>>
>>
>> Any thoughts as to what could be causing this ?
>>
>>
>> Jorg
>>
>> -- 
>> 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/c0fbdb20-5f5a-49fe-b829-dca09f3bcaed%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/0b1bbfb0-db44-4c7a-a655-ec763f164665%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: maven projects become slow after a couple of months

2016-05-25 Thread David Karlsen
Are you keeping a lot of build history?
25. mai 2016 11:21 skrev "Jorg Heymans" :

> Hi,
>
> I reported this a couple of months ago, is anyone else seeing this ?
>
> https://issues.jenkins-ci.org/browse/JENKINS-34233
>
> Several times already we have noticed that the build time of certain of
> our maven jobs increases substantially over the course of several months.
> We are talking from 30s initially to 3-4 minutes after six months. This
> happens for jobs configured to run on our solaris build server , but also
> jobs configured to run on windows slaves.
>
> It is easy to tell a job is getting slow because during maven init it
> takes a long time to get passed "Scanning for projects" :
>
>
> 13:06:54 [INFO] Scanning for projects...
> 13:08:03 [INFO] 
> 
>
>
> As you can see more than 70 seconds during maven init is not normal.
>
> We found out that when we recreate the job (basically just a copy of the
> job under a different name from the UI, then delete the slow one and rename
> the copy to the original) performance is back to normal. But after a few
> months the slowdown becomes noticeable again.
>
>
> Any thoughts as to what could be causing this ?
>
>
> Jorg
>
> --
> 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/c0fbdb20-5f5a-49fe-b829-dca09f3bcaed%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/CAGO7Ob1h0FZbyEUCMiq204Ub%2BPjyEJTnnEWsU_c%3DPBVkL1LLmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


jenkinsci/jenkins docker image ssl issues

2016-05-25 Thread christian polzer
Hello,

I am currently trying to evaluate an update to Jenkins 2.x here at work 
with the actual docker image of jenkinsci/jenkins.

For this I need to git pull my git repo from a selfhosted Bitbucket/Stash 
Server via https.

Of course, the docker image's JVM has no clue of that cert.

So I wanted to give the plugin "skip-certificate-check" a try, which isn't 
helping in this case.

After several hours of trying and searching my way through the interwebz, I 
am turning to this group, with the hope that anyone here has solved that 
problem before?

Kind regards,

Chris


   

-- 
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/8c0b64a6-564b-4f61-aa06-e2dba5da3084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [workflow-plugin] Access to environment variables in flow.groovy

2016-05-25 Thread ludovic SMADJA
I've deal with the same problem.
The variable is available as BRANCH_TEST (and not env.BRANCH_TEST). If
you need env variables, you must use WithEnv keyword.
regards,
-- 


Ludovic SMADJA
R engineer - build process and development
JALIOS SA
http://www.jalios.com

Le mardi 24 mai 2016 à 15:34 -0700, Matt Evans a écrit :
> I have tried many ways to bring variable in scope to a function, can
> you please clarify how the following code should be written to bring
> the variable "BRANCH_TEST" in scope?
> 
>    def BRANCH_TEST = "master"
>    
>    node {
>        deploy()
>    }
>    
>    def deploy(){
>        echo env.BRANCH_TEST
>    }
> 
> Console Output:
> [Pipeline] echo
> null
> 
> > > >  I think I could just echo "$env.BUILD_NUMBER" for those who
> > > > are wondering. I didn't test doing so though I am sure it would
> > > > work.
> > Either:
> > 
> > echo env.BUILD_NUMBER
> > 
> > or
> > 
> > echo "${env.BUILD_NUMBER}"
> > 
> > (Not sure whether Groovy gives higher precedence to `$` or `.` so
> > play it safe and use braces if inside a GString.)
> > 
> > BTW as of the 1.5 release, the live documentation (i.e., Snippet
> > Generator) for environment variable handling has been consolidated
> > into the help for the new withEnv step, which seemed the most
> > appropriate place for it.
> > 
> -- 
> 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/fa738334-df6c-48a6-987f-
> cf4299200cc8%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/1464183197.23944.7.camel%40jalios.com.
For more options, visit https://groups.google.com/d/optout.


Repository connector plugin : can't retrieve the selected VERSION since last Jenkins update ! Help

2016-05-25 Thread Yves-Marie LAINÉ
Hi All,

I updated my Jenkins instance yesterday, and since this moment my build is 
broken because the Repository connector plugin doesn't set the version 
parameter with the selected one.. I updated all the plugins as well. So is 
anybody experiencing the same problem ? 

Cheers,

Yves-Marie

-- 
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/53b25d2b-4bd9-45fe-a4bc-2481d02a1838%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Alternative to EnvInject?

2016-05-25 Thread 'Niksan' via Jenkins Users
I'm trying to inject a variable in to a job mid-flight who triggers another 
job and waits for it, 'inject environment variables' seems to do what I 
want with the caveat being it doesn't appear to do parameter substitution.

My build step does :

build.addAction(new ParametersAction([ new StringParameterValue("SomeVar", 
"SomeValue) ] ))

And I want this to be available on a child node job, like I say, the inject 
build step works but is not able to tackle substitution, I even tried 
having the parameter action as a single server groovy script build step 
hoping when the build step had finished the env variables would have been 
updated, but doesn't seem to be the case.

So, what alternatives are they to accomplish this task?

-- 
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/1cab60e8-2acd-47fe-ad8b-67a41cd12a33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins script groovy - AuthorizationMatrixProperty

2016-05-25 Thread Camila Bastos


How do I delete the job authorization matrix a specific user? I need to 
programmatically as there are many jobs. I found no specific method of 
AuthorizationMatrixProperty class that the user is in error or how to 
delete.








-- 
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/de419dbf-52c2-4bea-b3b3-1758d0918e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mulit-Branch Project Plugin and Post-build action "Publish artifacts in Maven repository (deploy)"

2016-05-25 Thread 'Sandra Parsick' via Jenkins Users
Thank you for your replies. I will try out both advices. 




Am Dienstag, 24. Mai 2016 20:19:10 UTC+2 schrieb David Karlsen:
>
> afaik the post-deploy step is specific to a maven-type job 
> specifically, so you just need to run a normal maven command. 
> You could also try this option 
>
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#deployAtEnd
>  
> to do it at the very end of the maven build. 
>
> 2016-05-24 20:14 GMT+02:00 Thomas Zoratto  >: 
> > Hello, 
> > 
> > I think you can solve your problem and improve your CI configuration by 
> > using the Pipeline plugin and more specifically the Pipeline:Multibranch 
> > plugin. 
> > 
> > Thomas 
> > 
> > Le mardi 24 mai 2016 09:17:04 UTC+2, Sandra Parsick a écrit : 
> >> 
> >> Hello, 
> >> 
> >> I have following problem and maybe someone has a good idea how I can 
> solve 
> >> it. 
> >> 
> >> I have a Git repository with several branches. I'd like to bring all 
> >> branches under CI control. That means, after every push to the 
> repository, 
> >> indepentent in which branch, a job should check whether the build is 
> >> successful. When the build is sucessful, the build artifact should be 
> >> uploaded to a Maven repository. But the upload step shouldn't be done 
> on 
> >> every branch. 
> >> 
> >> 
> >> I have tried the Multi-Branch Project Plugin, but I couldn't find the 
> >> Post-build action "Publish artifacts in Maven repository (deploy)", 
> that I 
> >> usually use in normal Maven-project build jobs. Do you have some ideas, 
> how 
> >> I can solve my problem? 
> >> 
> >> 
> >> Best regards, 
> >> 
> >> Sandra 
> > 
> > -- 
> > 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/9345dbab-587d-4199-b314-bc1a8fcfd751%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> -- 
> David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen 
>

-- 
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/9821a876-6a18-47eb-84cf-9f67bc6c123a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multiple memory map analysis plot

2016-05-25 Thread abhay kothari
Hello,

I have a job running in jenkins that compiles for 3 microcontroller targets 
How do plot the memory consumption (ram & rom) for all 3 targets in the 
same job
All 3 targets generate a CSV  & XML file during the build process which 
lists the consumption of memory 
How can i get a report in GUI with graph and display of component wise 
consumption as given by Read Memory consumption Log for all 3 targets.


The read memory consumption log works only for a single target 

Please help.

-- 
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/6c13b260-03b7-4390-ada8-00d6251ea446%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Global Library repository access

2016-05-25 Thread Jonathan Hodgson
For the record, once I had committed and pushed from the Linux machine, so 
the repository was no longer empty, I found I could clone to the windows 
machine.

So the issue was it being an empty repo, but why cloning it worked on 
Linux, but not on Windows, is still a mystery to me.

On Tuesday, May 24, 2016 at 4:01:15 PM UTC+1, Jonathan Hodgson wrote:
>
> Well, in my best Homer Simpson voice..
>
> "Doh!"
>
> I had it right on my windows machine (more on this in a moment), but when 
> I tried switching to a linux one (since instructions for using ssh tend to 
> be geared towards Linuz/Unix systems) I missed the capital L, and by that 
> point I wasn't looking for anything quite that obvious!
>
> Thanks for that.
>
> So now on Linux I seem to get a successful clone, I get
>
> warning: remote HEAD refers to nonexistent ref, unable to checkout.
>
> Which I'm guessing is just because it's a completely empty repository, as 
> mentioned i the docs?
>
> So a partial success, but when I try on windows (using either tortoisegit 
> or gitbash), I get
>
> fatal: could not fetch refs from ssh://
>
> It's finding the repository now (I checked by intentionally using the 
> wrong name, and the message is different), and I can successfully do the 
> who-am-i  using ssh inside git-bash.
>
> The issue may be obvious to many people, but I'm primarily a mercurial 
> user, not a git one.
>
> regards
>
> Jon
>
> On Tuesday, May 24, 2016 at 2:30:30 PM UTC+1, Eric Pyle wrote:
>>
>> It may be that you need to specify workflowLibs (note capital "L").
>>
>> On 5/24/2016 8:56 AM, Jonathan Hodgson wrote:
>>
>> Hi, 
>>
>> I appear to have Jenkin's ssh server set up correctly, and can connect to 
>> it and run who-am-i as on this page
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH
>>
>> whereupon it responds with
>>
>> Authenticated as: Jon
>> Authorities:
>>   authenticated
>>
>> But when I try to clone the workflowlibs git repository, as in the 
>> "Accessing repository" section here..
>>
>>
>> https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md
>>
>> I get 
>>
>> hudson.AbortException: No such repository exists:/workflowlibs.git
>>
>> What am I missing? The "pipeline: shared groovy libraries" plugin is 
>> installed, is there a step I have to do to create the repository on the 
>> server?
>>
>> regards
>>
>> Jon
>>
>>
>> -- 
>> 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/5454c77e-38dd-473e-8e1b-316e5be78493%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> -- 
>>
>> * Eric Pyle * 
>> Release Engineer 
>> Lebanon 
>> +1 603-277-3060 (T)
>> +1 603-359-8670 (M)
>> eric...@cd-adapco.com 
>> http://www.cd-adapco.com 
>>
>

-- 
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/bd456802-2c28-4c5e-b514-1967b40051c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Startup failure - probably due to Active Directory being temporarily unavailable

2016-05-25 Thread Mehmet F. YUCE
Restarting Jenkins solved it for me but you can also try the answer 
provided here;

https://groups.google.com/forum/#!msg/jenkinsci-users/Qj17COl6Ij8/gUM5yHzvXSoJ


On Thursday, 9 June 2011 16:03:37 UTC+3, Jacob Robertson wrote:
>
> Once a week, our server admin team restarts our hudson machine (for
> server maintenance), and I don't think there's any way for me to get
> around that.  What we've been seeing for a while is that Hudson gets
> in an error state, and can't recover - we are forced to restart the
> Hudson service.  This appears to be because the "activeDirectory" bean
> can't be instantiated, and I'm guessing it's because AD itself hasn't
> quite become available on the machine yet.  So it's a timing issue
> with all the services (including the Hudson service) coming up at the
> same time. (Full stack trace below)
>
> Does anyone have any suggestions on how a Hudson admin might fix this
> problem, knowing that the server admins may not be willing or able to
> do much from their side?
> We're currently on Version 1.368 - if there was a good chance that
> upgrading to a newer version would help with this problem, then we
> would do that.
>
> org.jvnet.hudson.reactor.ReactorException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'activeDirectory': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
>  at hudson.model.Hudson.executeReactor(Hudson.java:696)
>  at hudson.model.Hudson.(Hudson.java:613)
>  at hudson.model.Hudson.(Hudson.java:553)
>  at hudson.WebAppMain$2.run(WebAppMain.java:222)
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'activeDirectory': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:917)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:873)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>  at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
>  at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
>  at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
>  at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
>  at 
> hudson.util.spring.DefaultRuntimeSpringConfiguration.getApplicationContext(DefaultRuntimeSpringConfiguration.java:94)
>  at 
> hudson.util.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:388)
>  at 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm.createSecurityComponents(ActiveDirectorySecurityRealm.java:97)
>  at 
> hudson.security.SecurityRealm.getSecurityComponents(SecurityRealm.java:359)
>  at hudson.security.HudsonFilter.reset(HudsonFilter.java:134)
>  at hudson.model.Hudson.setSecurityRealm(Hudson.java:1775)
>  at hudson.model.Hudson$13.run(Hudson.java:2173)
>  at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
>  at 

Re: Startup failure - probably due to Active Directory being temporarily unavailable

2016-05-25 Thread Mehmet F. YUCE
Rstarting Jenkins solved it for me but you can also try the answer provided 
here;

https://groups.google.com/forum/#!msg/jenkinsci-users/Qj17COl6Ij8/gUM5yHzvXSoJ


On Thursday, 9 June 2011 16:03:37 UTC+3, Jacob Robertson wrote:
>
> Once a week, our server admin team restarts our hudson machine (for
> server maintenance), and I don't think there's any way for me to get
> around that.  What we've been seeing for a while is that Hudson gets
> in an error state, and can't recover - we are forced to restart the
> Hudson service.  This appears to be because the "activeDirectory" bean
> can't be instantiated, and I'm guessing it's because AD itself hasn't
> quite become available on the machine yet.  So it's a timing issue
> with all the services (including the Hudson service) coming up at the
> same time. (Full stack trace below)
>
> Does anyone have any suggestions on how a Hudson admin might fix this
> problem, knowing that the server admins may not be willing or able to
> do much from their side?
> We're currently on Version 1.368 - if there was a good chance that
> upgrading to a newer version would help with this problem, then we
> would do that.
>
> org.jvnet.hudson.reactor.ReactorException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'activeDirectory': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
>  at hudson.model.Hudson.executeReactor(Hudson.java:696)
>  at hudson.model.Hudson.(Hudson.java:613)
>  at hudson.model.Hudson.(Hudson.java:553)
>  at hudson.WebAppMain$2.run(WebAppMain.java:222)
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'activeDirectory': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:917)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:873)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>  at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
>  at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
>  at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
>  at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
>  at 
> hudson.util.spring.DefaultRuntimeSpringConfiguration.getApplicationContext(DefaultRuntimeSpringConfiguration.java:94)
>  at 
> hudson.util.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:388)
>  at 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm.createSecurityComponents(ActiveDirectorySecurityRealm.java:97)
>  at 
> hudson.security.SecurityRealm.getSecurityComponents(SecurityRealm.java:359)
>  at hudson.security.HudsonFilter.reset(HudsonFilter.java:134)
>  at hudson.model.Hudson.setSecurityRealm(Hudson.java:1775)
>  at hudson.model.Hudson$13.run(Hudson.java:2173)
>  at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
>  at