Re: Building Jenkins in Eclipse

2019-01-03 Thread Baptiste Mathus
That is definitely abnormal. This is an Eclipse bug then, because that
configuration is already inherited by the cli module (you can check
yourself using mvn help:effective-pom).

Le jeu. 3 janv. 2019 à 14:17, Steffen Elste  a
écrit :

> Hi,
> after i modified the pom.xml of the *cli* project to include
>
> 
>  org.codehaus.mojo
>  build-helper-maven-plugin
>  3.0.0
>  
>  
>  add-source
>  generate-sources
>  
>  add-source
>  
>  
>  
>
>  ${project.build.directory}/generated-sources/localizer
>  
>  
>  
>  
>   
>
>
> and re-imported everything the build path is set up correctly.
> Cheers,
>
> Steffen
>
> --
> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CANWgJS6LiHgXC%2B-bxgy-Q5QNHFwibMVD4DFHidEYrwqb%3DPR%3DbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Move work space in Jenkins File

2019-01-03 Thread vinit ratan
Hi Neil,

By default when we are using Jenkins Pipeline, in order to see workspace we
need to follow below steps:-

Click on build no. => Click On Pipeline Steps=> Click on Allocate Node
Start link.=> Here uset sees workspace on Left

However what we need is to have workspace on the project home page the way
we see it in free style or other non pipeline projects. We do not want to
go through the whole step mentioned above in order to see the workspace.

Hope this explains my query in a better way. So if you can please respond
accordingly.

Thanks and Regards
Vinit Ratan
Automation Test Engineer
Infosys Ltd.
8600102248

On Thu, 3 Jan 2019, 20:52 Neil T  [image: Boxbe]  This message is eligible
> for Automatic Cleanup! (n...@thump.org) Add cleanup rule
> 
> | More info
> 
> Hi Vinit
>
> The workspace is a file system. The job screen is HTML page.  What you are
> asking makes no sense (to me) unless you mean you want to archive artifacts
> produced by job/pipeline and have the linked in the job details screen ? In
> which case search on 'archiving artifacts'. It's easy with DSL.
>
> On Thursday, 3 January 2019 14:44:54 UTC, vinit ratan wrote:
>>
>> Hi All,
>>
>> Can some one please suggest the code to move work space to job screen in
>> Jenkins file.
>>
>> Thanks and Regards
>> Vinit Ratan
>> Automation Test Engineer
>> Infosys Ltd.
>>
> --
> 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/52fd712d-1cd7-46f1-a5ec-2c411785e08c%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/CABB%2BumPqLLNCCAibE8mWfBCpK_q3MP4rY7Br16E7h94KSFytPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Gerry Storm
Thank you Ullrich and all.
I was able to import and build jenkins as follows:

1) git clone https://github.com/jenkinsci/jenkins.git
2) cd jenkins; mvn install -DskipTests
3) Started inlellij, imported and built the projects, no errors just tons
of warnings.

I now want to debug the jenkins.war. I created a debug configuration
following
https://stackoverflow.com/questions/21114066/attach-intellij-idea-debugger-to-a-running-java-process
.

Then I started the application using the command: mvnDebug jenkins-dev:run
and connected from intellij,
I saw a bunch of info in the terminal windows where I ran mvnDebug and
finally the error:

mvnDebug jenkins-dev:run
Preparing to execute Maven in debug mode
Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects...
[WARNING] The POM for
org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.0 is missing, no
dependency information available
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:maven-checkstyle-plugin:3.0: Plugin
org.apache.maven.plugins:maven-checkstyle-plugin:3.0 or one of its
dependencies could not be resolved: Failure to find
org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.0 in
http://repo.jenkins-ci.org/public/ was cached in the local repository,
resolution will not be reattempted until the update interval of
repo.jenkins-ci.org has elapsed or updates are forced
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is
missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for
org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could
not be resolved: Failure to find
org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in
http://repo.jenkins-ci.org/public/ was cached in the local repository,
resolution will not be reattempted until the update interval of
repo.jenkins-ci.org has elapsed or updates are forced
Downloading from repo.jenkins-ci.org:
http://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-metadata.xml
Downloading from central:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central:
https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading from repo.jenkins-ci.org:
http://repo.jenkins-ci.org/public/org/codehaus/mojo/maven-metadata.xml
Downloaded from repo.jenkins-ci.org:
http://repo.jenkins-ci.org/public/org/apache/maven/plugins/maven-metadata.xml
(9.9 kB at 15 kB/s)
Downloaded from repo.jenkins-ci.org:
http://repo.jenkins-ci.org/public/org/codehaus/mojo/maven-metadata.xml (20
kB at 30 kB/s)
Downloaded from central:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
(14 kB at 19 kB/s)
Downloaded from central:
https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
(20 kB at 28 kB/s)
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.402 s
[INFO] Finished at: 2019-01-03T16:34:25-08:00
[INFO]

[ERROR] No plugin found for prefix 'jenkins-dev' in the current project and
in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
available from the repositories [local (/home/gerry/.m2/repository),
repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/), central (
https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException


On Thu, Jan 3, 2019 at 3:23 PM Ullrich Hafner 
wrote:

> Building is quite easy:-) Just importing it into an IDE is complex since
> Jenkins uses a lot of hacks around the maven infrastructure so it does not
> work out of the box.
>
> E.g., the compile error in IntelliJ is due to missing generated resource
> files. These generated sources are not picked up automatically. You need to
> make sure that the folder target/generated-sources/localizer is recognized
> as source folder.
>
> Am 03.01.2019 um 21:19 schrieb Gerry Storm :
>
> I'm a bit surprised. jenkins is widely used and it looks looks like there
> are tons of contributors. I assumed it would be a breeze to build it from
> the source. I wonder if this is just my bad luck?
>
> On Thu, Jan 3, 2019 at 12:08 PM Gerry Storm  wrote:
>
>> I have tried inlelliji and still got one error when building projects:
>> Error:(26, 25) java: package hudson.cli.client does not exist
>>
>> in cli/src/main/java/hudson/cli/CLI.java at "import
>> hudson.cli.client.Messages;"
>>
>>
>>
>> On Thu, Jan 3, 2019 at 8:56 AM Jan 

Re: Building Jenkins in Eclipse

2019-01-03 Thread Ullrich Hafner
Building is quite easy:-) Just importing it into an IDE is complex since 
Jenkins uses a lot of hacks around the maven infrastructure so it does not work 
out of the box. 

E.g., the compile error in IntelliJ is due to missing generated resource files. 
These generated sources are not picked up automatically. You need to make sure 
that the folder target/generated-sources/localizer is recognized as source 
folder. 

> Am 03.01.2019 um 21:19 schrieb Gerry Storm :
> 
> I'm a bit surprised. jenkins is widely used and it looks looks like there are 
> tons of contributors. I assumed it would be a breeze to build it from the 
> source. I wonder if this is just my bad luck? 
> 
> On Thu, Jan 3, 2019 at 12:08 PM Gerry Storm  > wrote:
> I have tried inlelliji and still got one error when building projects:
> Error:(26, 25) java: package hudson.cli.client does not exist
> 
> in cli/src/main/java/hudson/cli/CLI.java at "import 
> hudson.cli.client.Messages;"
> 
> 
> 
> On Thu, Jan 3, 2019 at 8:56 AM Jan Monterrubio  > wrote:
> I personally use intellij idea, since it lets you import a project ( and if 
> it is maven it will wire things up on its own). 
> https://blog.jetbrains.com/idea/2008/03/opening-maven-projects-is-easy-as-pie/
>  
> 
> 
> 
> On Thu, Jan 3, 2019 at 10:55 AM Gerry Storm  > wrote:
> Thank you all very much. I am not particularly fond of Eclipse per se. I have 
> used it in the past and it was my first choice. If you think Apache NetBeans 
> or IntelliJ IDEA are better I will switch to one of those. Which one would 
> you recommend and are there instructions available I could follow? 
> 
> On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste  > wrote:
> Hi,
> after i modified the pom.xml of the cli project to include
> 
> 
>  org.codehaus.mojo
>  build-helper-maven-plugin
>  3.0.0
>  
>  
>  add-source
>  generate-sources
>  
>  add-source
>  
>  
>  
>  
> ${project.build.directory}/generated-sources/localizer
>  
>  
>  
>  
>   
> 
> 
> and re-imported everything the build path is set up correctly.
> Cheers,
> 
> Steffen
> 
> -- 
> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%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/CADgiF9LAebb%2B-0tXsf2Vx5uCeKO0c7Rj4Ze8-uNiZCGpDtoS0A%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 

Re: Error when manually updating Role-Strategy, when initially configured via JCasC plugin

2019-01-03 Thread spikkie
hi,

I created folloing issue

https://issues.jenkins-ci.org/browse/JENKINS-55394
Error when manually updating Role-Strategy, when initially configured via 
JCasC plugin


kind regards,
Bas


Am Donnerstag, 3. Januar 2019 12:43:08 UTC+1 schrieb Oleg Nenashev:
>
> Could you please create a Jenkins JIRA issue for that?
> https://wiki.jenkins.io/display/JENKINS/How+to+report+an+issue 
>
> On Wednesday, December 19, 2018 at 12:57:37 PM UTC+1, spikkie wrote:
>>
>> Hi Jenkins JCasC-Plugin and Role-Strategy-Plugin teams,
>>
>> I found a work around for this issue. :-)
>>
>> Initially when Jenkins has started I go to "role-strategy/manage-roles"
>>
>> http://localhost/role-strategy/manage-roles
>>
>> and then just click "Save" button
>>
>> After this "save" I can make changes to 
>> http://localhost/role-strategy/assign-roles without errors
>>
>> Now I'm trying to find out how to make a groovy script to implement this 
>> workaround
>>
>> I tried the following code but that didn't work
>>
>>   def currentAuthenticationStrategy = 
>> Jenkins.instance.getAuthorizationStrategy()
>>   
>> Jenkins.instance.setAuthorizationStrategy(currentAuthenticationStrategy)
>>   Jenkins.instance.save()
>>
>> I hope you can support me here.
>>
>> thanx
>>
>> kind regards,
>> Bas
>>
>> Am Samstag, 8. Dezember 2018 14:31:44 UTC+1 schrieb spikkie:
>>>
>>> Hi Jenkins JCasC-Plugin and Role-Strategy-Plugin teams,
>>>
>>> following isse:
>>> I have configured Role-Strategy using JCasC plugin see configuration 
>>> and the end.
>>> But now following error occurs when updating manually 
>>>
>>> http://localhost/jenkins/role-strategy/assign-roles
>>>User/group to add -> newuser -> save
>>>
>>> When I add a new user manually I will get following error:
>>>
>>> 
>>> Stack trace
>>>
>>> java.lang.UnsupportedOperationException
>>> at 
>>> java.util.Collections$UnmodifiableCollection.clear(Collections.java:1074)
>>> at 
>>> com.michelin.cio.hudson.plugins.rolestrategy.RoleMap.clearSidsForRole(RoleMap.java:208)
>>> at 
>>> com.michelin.cio.hudson.plugins.rolestrategy.RoleMap.clearSids(RoleMap.java:248)
>>> at 
>>> com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$DescriptorImpl.doAssignSubmit(RoleBasedAuthorizationStrategy.java:696)
>>> at 
>>> com.michelin.cio.hudson.plugins.rolestrategy.RoleStrategyConfig.doAssignSubmit(RoleStrategyConfig.java:165)
>>> at 
>>> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>>> at 
>>> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
>>> at 
>>> org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
>>> at 
>>> org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
>>> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
>>> at 
>>> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
>>> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
>>> at 
>>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
>>> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
>>> Caused: javax.servlet.ServletException
>>> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:784)
>>> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
>>> at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
>>> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
>>> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
>>> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)
>>> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>> at 
>>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
>>> at 
>>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
>>> at 
>>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
>>> at 
>>> com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
>>> at 
>>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>>> at 
>>> hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
>>> at 
>>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>>> at 
>>> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
>>> at 
>>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
>>> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)
>>> at 
>>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
>>> at 
>>> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>>> at 
>>> 

Re: Building Jenkins in Eclipse

2019-01-03 Thread Bassam Khouri
I had an issue trying to create a plugin one.  I has a settings.xml in my
~/.m2 folder.  If you've got a settings.xml file, I wonder if it can be
causing the issue you are encountering.  Back it up, remove it, and see if
you can build.

---
"What we can or cannot do, what we consider possible or impossible, is
rarely a function of our true capability. It is more likely a function of
our beliefs about who we are." - Tony Robbins


On Thu, Jan 3, 2019 at 3:24 PM Slide  wrote:

> It could be your bad luck, I have never had the same issues you are
> having. I just imported the top level directory into IntelliJ IDEA as a
> Maven project and it worked flawlessly for me.
>
> On Thu, Jan 3, 2019 at 1:19 PM Gerry Storm  wrote:
>
>> I'm a bit surprised. jenkins is widely used and it looks looks like there
>> are tons of contributors. I assumed it would be a breeze to build it from
>> the source. I wonder if this is just my bad luck?
>>
>> On Thu, Jan 3, 2019 at 12:08 PM Gerry Storm  wrote:
>>
>>> I have tried inlelliji and still got one error when building projects:
>>> Error:(26, 25) java: package hudson.cli.client does not exist
>>>
>>> in cli/src/main/java/hudson/cli/CLI.java at "import
>>> hudson.cli.client.Messages;"
>>>
>>>
>>>
>>> On Thu, Jan 3, 2019 at 8:56 AM Jan Monterrubio 
>>> wrote:
>>>
 I personally use intellij idea, since it lets you import a project (
 and if it is maven it will wire things up on its own).

 https://blog.jetbrains.com/idea/2008/03/opening-maven-projects-is-easy-as-pie/


 On Thu, Jan 3, 2019 at 10:55 AM Gerry Storm 
 wrote:

> Thank you all very much. I am not particularly fond of Eclipse per se.
> I have used it in the past and it was my first choice. If you think Apache
> NetBeans or IntelliJ IDEA are better I will switch to one of those. Which
> one would you recommend and are there instructions available I could
> follow?
>
> On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste 
> wrote:
>
>> Hi,
>> after i modified the pom.xml of the *cli* project to include
>>
>> 
>>  org.codehaus.mojo
>>  build-helper-maven-plugin
>>  3.0.0
>>  
>>  
>>  add-source
>>  generate-sources
>>  
>>  add-source
>>  
>>  
>>  
>>
>>  ${project.build.directory}/generated-sources/localizer
>>  
>>  
>>  
>>  
>>   
>>
>>
>> and re-imported everything the build path is set up correctly.
>> Cheers,
>>
>> Steffen
>>
>> --
>> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%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/CADgiF9LAebb%2B-0tXsf2Vx5uCeKO0c7Rj4Ze8-uNiZCGpDtoS0A%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 

Re: Building Jenkins in Eclipse

2019-01-03 Thread Slide
It could be your bad luck, I have never had the same issues you are having.
I just imported the top level directory into IntelliJ IDEA as a Maven
project and it worked flawlessly for me.

On Thu, Jan 3, 2019 at 1:19 PM Gerry Storm  wrote:

> I'm a bit surprised. jenkins is widely used and it looks looks like there
> are tons of contributors. I assumed it would be a breeze to build it from
> the source. I wonder if this is just my bad luck?
>
> On Thu, Jan 3, 2019 at 12:08 PM Gerry Storm  wrote:
>
>> I have tried inlelliji and still got one error when building projects:
>> Error:(26, 25) java: package hudson.cli.client does not exist
>>
>> in cli/src/main/java/hudson/cli/CLI.java at "import
>> hudson.cli.client.Messages;"
>>
>>
>>
>> On Thu, Jan 3, 2019 at 8:56 AM Jan Monterrubio 
>> wrote:
>>
>>> I personally use intellij idea, since it lets you import a project ( and
>>> if it is maven it will wire things up on its own).
>>>
>>> https://blog.jetbrains.com/idea/2008/03/opening-maven-projects-is-easy-as-pie/
>>>
>>>
>>> On Thu, Jan 3, 2019 at 10:55 AM Gerry Storm 
>>> wrote:
>>>
 Thank you all very much. I am not particularly fond of Eclipse per se.
 I have used it in the past and it was my first choice. If you think Apache
 NetBeans or IntelliJ IDEA are better I will switch to one of those. Which
 one would you recommend and are there instructions available I could
 follow?

 On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste 
 wrote:

> Hi,
> after i modified the pom.xml of the *cli* project to include
>
> 
>  org.codehaus.mojo
>  build-helper-maven-plugin
>  3.0.0
>  
>  
>  add-source
>  generate-sources
>  
>  add-source
>  
>  
>  
>
>  ${project.build.directory}/generated-sources/localizer
>  
>  
>  
>  
>   
>
>
> and re-imported everything the build path is set up correctly.
> Cheers,
>
> Steffen
>
> --
> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%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/CADgiF9LAebb%2B-0tXsf2Vx5uCeKO0c7Rj4Ze8-uNiZCGpDtoS0A%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/CA%2BQZyc%3DOS1WdsNQS-fScq0ukj0r-dfSWSoO3%2BBG1T92aCChKRw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and 

Re: Building Jenkins in Eclipse

2019-01-03 Thread Gerry Storm
I'm a bit surprised. jenkins is widely used and it looks looks like there
are tons of contributors. I assumed it would be a breeze to build it from
the source. I wonder if this is just my bad luck?

On Thu, Jan 3, 2019 at 12:08 PM Gerry Storm  wrote:

> I have tried inlelliji and still got one error when building projects:
> Error:(26, 25) java: package hudson.cli.client does not exist
>
> in cli/src/main/java/hudson/cli/CLI.java at "import
> hudson.cli.client.Messages;"
>
>
>
> On Thu, Jan 3, 2019 at 8:56 AM Jan Monterrubio 
> wrote:
>
>> I personally use intellij idea, since it lets you import a project ( and
>> if it is maven it will wire things up on its own).
>>
>> https://blog.jetbrains.com/idea/2008/03/opening-maven-projects-is-easy-as-pie/
>>
>>
>> On Thu, Jan 3, 2019 at 10:55 AM Gerry Storm  wrote:
>>
>>> Thank you all very much. I am not particularly fond of Eclipse per se. I
>>> have used it in the past and it was my first choice. If you think Apache
>>> NetBeans or IntelliJ IDEA are better I will switch to one of those. Which
>>> one would you recommend and are there instructions available I could
>>> follow?
>>>
>>> On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste 
>>> wrote:
>>>
 Hi,
 after i modified the pom.xml of the *cli* project to include

 
  org.codehaus.mojo
  build-helper-maven-plugin
  3.0.0
  
  
  add-source
  generate-sources
  
  add-source
  
  
  

  ${project.build.directory}/generated-sources/localizer
  
  
  
  
   


 and re-imported everything the build path is set up correctly.
 Cheers,

 Steffen

 --
 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%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/CADgiF9LAebb%2B-0tXsf2Vx5uCeKO0c7Rj4Ze8-uNiZCGpDtoS0A%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/CA%2BQZyc%3DOS1WdsNQS-fScq0ukj0r-dfSWSoO3%2BBG1T92aCChKRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Gerry Storm
I have tried inlelliji and still got one error when building projects:
Error:(26, 25) java: package hudson.cli.client does not exist

in cli/src/main/java/hudson/cli/CLI.java at "import
hudson.cli.client.Messages;"



On Thu, Jan 3, 2019 at 8:56 AM Jan Monterrubio 
wrote:

> I personally use intellij idea, since it lets you import a project ( and
> if it is maven it will wire things up on its own).
>
> https://blog.jetbrains.com/idea/2008/03/opening-maven-projects-is-easy-as-pie/
>
>
> On Thu, Jan 3, 2019 at 10:55 AM Gerry Storm  wrote:
>
>> Thank you all very much. I am not particularly fond of Eclipse per se. I
>> have used it in the past and it was my first choice. If you think Apache
>> NetBeans or IntelliJ IDEA are better I will switch to one of those. Which
>> one would you recommend and are there instructions available I could
>> follow?
>>
>> On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste 
>> wrote:
>>
>>> Hi,
>>> after i modified the pom.xml of the *cli* project to include
>>>
>>> 
>>>  org.codehaus.mojo
>>>  build-helper-maven-plugin
>>>  3.0.0
>>>  
>>>  
>>>  add-source
>>>  generate-sources
>>>  
>>>  add-source
>>>  
>>>  
>>>  
>>>
>>>  ${project.build.directory}/generated-sources/localizer
>>>  
>>>  
>>>  
>>>  
>>>   
>>>
>>>
>>> and re-imported everything the build path is set up correctly.
>>> Cheers,
>>>
>>> Steffen
>>>
>>> --
>>> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%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/CADgiF9LAebb%2B-0tXsf2Vx5uCeKO0c7Rj4Ze8-uNiZCGpDtoS0A%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/CA%2BQZyc%3DXjfFp7jyjid2-bh5hDn%2BPST-%2B34KCBYwEci1jTW4jEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Disable 'Build' button when there is one item in a list

2019-01-03 Thread Bassam Khouri
To disable the "Build" button, you need to disable the Job. this way, a
Jenkins user will not be able to trigger a build.


On Thu, Jan 3, 2019 at 2:19 PM  wrote:

> I have few Jenkins job which builds with parameters.
> Parameters are like Dev, Val and Prod.
>
> Few jobs has only one parameter like Dev or Val or Prod. In these cases I
> would like to disable the Build button.
>
> The Build button must be active only if all three parameters exists in the
> job.
>
> Attached screenshot of it.
>
> Help is appreciated.
>
> Thanks in advance!
>
>
>
>
> --
> 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/f4c224dc-c9e1-412b-ac45-cab9242cabb6%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/CAPeymofMuN6XJXdL6BNVZSXZb%2BoArOHvkCfBcUa4jbSJg7jSkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Disable 'Build' button when there is one item in a list

2019-01-03 Thread samyakpuram
I have few Jenkins job which builds with parameters.
Parameters are like Dev, Val and Prod.

Few jobs has only one parameter like Dev or Val or Prod. In these cases I 
would like to disable the Build button.

The Build button must be active only if all three parameters exists in the 
job. 

Attached screenshot of it. 

Help is appreciated. 

Thanks in advance!

  
 

-- 
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/f4c224dc-c9e1-412b-ac45-cab9242cabb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


'make' exit code is ignored in declarative script

2019-01-03 Thread David Aldrich
I have a declarative script that builds a C++ application on multiple
agents in parallel.  A stage looks like:

stage('build') {
parallel {
stage('znsim08') {
agent { label "znsim08" }

steps {
sh '''
make
'''

recordIssues minimumSeverity: 'HIGH', tools:
[gcc4(id: 'centos5-warnings', name: 'Centos 5', pattern: 'build.log')]

archiveArtifacts 'build.log'
}
}
etc.

I find that if make fails:

make[1]: *** [_gnuRelease/SINRCalculation.o] Error 1
make[1]: Leaving directory `/data/hudsonuser/workspace/gcc_all_versions/'
make: *** [../StarLibs/] Error 2


the stage still succeeds.  make's exit code seems to be ignored.


What am I missing?

-- 
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/CAJK_iejiJHHejCQeQQ%2Byy81KSZaBq3qqZGf%2BoYj1X%2BEOPL66GA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


not able to download tfs plugin in jenkins 2.15 version

2019-01-03 Thread Sreedevi vasudevan
trying to download tfs (visual sudio) plugin shows read timeout issue .
i want to download plug in .
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/CAPLqa2woO9OrhOoeHv9Pq-jDb8MYwkJEDHb06oC5wkfLVjRn%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with setting up Jenkins agent to run everytime on windows reboot.

2019-01-03 Thread Pravin Patil
I tried with following settings on the task within task-scheduler
:
Right click on your task > "Properties" > "General
"Run with highest privileges" (test both options)
"Run wheter user is logged on or not" (test both options)
"Configure for" is set to machine's OS version

But that hasnt helped.




On Wednesday, 2 January 2019 21:20:37 UTC-8, Pravin Patil wrote:
>
> Hi,
>
> I am not able to setup jenkins agent to start on windows reboot. I have 
> followed the document - 
> https://wiki.jenkins.io/display/JENKINS/Launch+Java+Web+Start+slave+agent+via+Windows+Scheduler
> When I manually run the task from task-scheduler, a command prompt window 
> flashes and disappears. The task scheduler shows the task as running, but 
> on jenkins Nodes the agent shows disconnected. Screenshots attached
>
> If I run the command from command prompt, it works (agent connects 
> successfully). Its only with task scheduler, that the task shows as 
> running, but agent is not connected
>
> please suggest
>
> [image: JenkinsAgentIssue.jpg]
>

-- 
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/63bb0e95-a1a1-4ffa-89ba-b8da69c78ec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Jan Monterrubio
I personally use intellij idea, since it lets you import a project ( and if
it is maven it will wire things up on its own).
https://blog.jetbrains.com/idea/2008/03/opening-maven-projects-is-easy-as-pie/


On Thu, Jan 3, 2019 at 10:55 AM Gerry Storm  wrote:

> Thank you all very much. I am not particularly fond of Eclipse per se. I
> have used it in the past and it was my first choice. If you think Apache
> NetBeans or IntelliJ IDEA are better I will switch to one of those. Which
> one would you recommend and are there instructions available I could
> follow?
>
> On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste 
> wrote:
>
>> Hi,
>> after i modified the pom.xml of the *cli* project to include
>>
>> 
>>  org.codehaus.mojo
>>  build-helper-maven-plugin
>>  3.0.0
>>  
>>  
>>  add-source
>>  generate-sources
>>  
>>  add-source
>>  
>>  
>>  
>>
>>  ${project.build.directory}/generated-sources/localizer
>>  
>>  
>>  
>>  
>>   
>>
>>
>> and re-imported everything the build path is set up correctly.
>> Cheers,
>>
>> Steffen
>>
>> --
>> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%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/CADgiF9LAebb%2B-0tXsf2Vx5uCeKO0c7Rj4Ze8-uNiZCGpDtoS0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Gerry Storm
Thank you all very much. I am not particularly fond of Eclipse per se. I
have used it in the past and it was my first choice. If you think Apache
NetBeans or IntelliJ IDEA are better I will switch to one of those. Which
one would you recommend and are there instructions available I could
follow?

On Thu, Jan 3, 2019 at 5:17 AM Steffen Elste 
wrote:

> Hi,
> after i modified the pom.xml of the *cli* project to include
>
> 
>  org.codehaus.mojo
>  build-helper-maven-plugin
>  3.0.0
>  
>  
>  add-source
>  generate-sources
>  
>  add-source
>  
>  
>  
>
>  ${project.build.directory}/generated-sources/localizer
>  
>  
>  
>  
>   
>
>
> and re-imported everything the build path is set up correctly.
> Cheers,
>
> Steffen
>
> --
> 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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%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/CA%2BQZycn1-AO%2BrC5KhRi_QJwfJtxXzZdjrvs9-9kcjf5p2rjbNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins is keeping all the old builds

2019-01-03 Thread Jan Monterrubio
Does the building of all the wire files for all the customers also happen
outside of jenkins? This might be a misconfiguration of maven (I assume
since you mention war and target folder).

On Thu, Jan 3, 2019 at 8:44 AM madhvendra.thakur via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
> I'm using Jenkins to build the war file.
> I have configured everything like a number of build or number or artifacts
> etc.
> I have multiple customers, So I have written a script to build the war
> file for a specific one.
> With the log, it showing that Jenkins building the war for only one
> customer, but inside the artifact (target folder). Jenkins Keeps all the
> war file for all the customers.
> How is it possible?
> *With the log, it showing that Jenkins building the war for only one
> customer, but inside the artifact (target folder). Jenkins Keeps all the
> war file for all the customers. *
> *If I delete the artifact the target folder is deleted.*
> *But whenever I run the script to build the war file for some customer and
> check the target folder. *
> *It is again showing all the war file *
>
> *Please help me to resolve this problem*
> *Thanks in advance*
>
> --
> 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/157a5b07-69d3-4767-b9a1-7ecd90d910b3%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/CADgiF9JMTNvpqxbeYCJVTti2mpxVY4dEJXKdeFxPukf%2Buy9R6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Kubernetes plugin configuration using groovy

2019-01-03 Thread Alex
Hi there,

It works for me with the CASC plugin like this:

jenkins:
  clouds:
- kubernetes:
name: "Kubernetes"
skipTlsVerify: true
namespace: "jenkins"
jenkinsUrl: "http://localhost:8080;
connectTimeout: 0
readTimeout: 0
containerCapStr: 100
maxRequestsPerHostStr: 64
retentionTimeout: 5
templates:
  - name: "jenkins-slave"
namespace: "jenkins"
nodeUsageMode: NORMAL
containers:
  - name: "jnlp"
image: "jenkinsci/jnlp-slave"
alwaysPullImage: false
workingDir: "/home/jenkins"
ttyEnabled: true
resourceRequestCpu: "500m"
resourceLimitCpu: "1000m"
resourceRequestMemory: "1Gi"
resourceLimitMemory: "2Gi"
idleMinutes: "30"
activeDeadlineSeconds: "900"
slaveConnectTimeout: "120"
serviceAccount: "jenkins"


These are the plugins that i use:

configuration-as-code
configuration-as-code-support
kubernetes:1.13.3
kubernetes-cd
crowd2
workflow-aggregator
git
pipeline-utility-steps

Alex

On Thursday, 3 January 2019 15:07:26 UTC, unguiculus wrote:
>
> Did you manage to solve the issue? I'm actually having the same problem 
> but I do use the CasC plugin as Carlos suggested. Everything looks ok in 
> the UI but only starts working if I hit "Save".
>
> I copied away the whole JENKINS_HOME before and after hitting "Save". As 
> expected, the diff doesn't show any changes. I tried triggering a reload of 
> the config via CLI and via Groovy init script. Nothing helped but manually 
> saving in the UI.
>
> Here's the relevant part from the jenkins.yaml:
>
> jenkins:
>   clouds:
> - kubernetes:
> name: kubernetes
> serverUrl: https://kubernetes.default
> namespace: default
> jenkinsUrl: http://jenkins-master:8080
> jenkinsTunnel: jenkins-agent:5
> templates:
>   - name: k8s-agent
> idleMinutes: 30
> containers:
>   - name: jnlp
> image: jenkinsci/jnlp-slave:3.27-1-alpine
> command: ""
> args: ""
>
>
> Jenkins version: 2.150.1 LTS
>
> Installed plugins:
>
> configuration-as-code:1.4
> workflow-aggregator:2.6
> kubernetes:1.14.2
> kubernetes-credentials-provider:0.10
> timestamper:1.8.10
> locale:1.4
>
> I'd appreciate any help.
>
> --Reinhard
>
>
> On Monday, August 20, 2018 at 4:39:57 PM UTC+2, Carlos Sanchez wrote:
>>
>> Have you tried configuration as code plugin?
>>
>> On Mon, Aug 20, 2018, 15:54 Alex  wrote:
>>
>>> I am trying to configure the kubernetes plugin by using groovy at 
>>> startup. 
>>>
>>> The problem that I have is that I can see the configuration in the 
>>> "Configure System" menu, but it's not working unless i click on "Save"
>>>
>>> This is my groovy:
>>>
>>> import org.csanchez.jenkins.plugins.kubernetes.*
>>> import jenkins.model.*
>>>
>>> def jenkins_instance = Jenkins.instance
>>> def kubernetes = new KubernetesCloud('Kubernetes')
>>>
>>> // Configure Kubernetes Cloud
>>> kubernetes.setNamespace('jenkins')
>>> kubernetes.setJenkinsUrl(jenkins_instance.getRootUrl())
>>> kubernetes.setMaxRequestsPerHostStr('30')
>>> kubernetes.setConnectTimeout(30)
>>> kubernetes.setReadTimeout(30)
>>> kubernetes.setUsageRestricted(false)
>>>
>>> // Configure Jenkins Slave Container
>>> jenkins_slave_image = System.getenv('JENKINS_SLAVE_IMAGE').toString()
>>> def jenkins_container = new ContainerTemplate('jenkins-slave', 
>>> jenkins_slave_image)
>>> jenkins_container.setTtyEnabled(true)
>>> jenkins_container.setName('jeknins-slave')
>>>
>>> // Configure Jenkins Slave Pods
>>> def jenkins_slave_pod = new PodTemplate()
>>> jenkins_slave_pod.setNamespace('jenkins')
>>> jenkins_slave_pod.setName('jenkins-slave')
>>> jenkins_slave_pod.setContainers([jenkins_container])
>>> jenkins_slave_pod.save()
>>>
>>> // Save Changes
>>> kubernetes.addTemplate(jenkins_slave_pod)
>>> jenkins_instance.clouds.removeAll(KubernetesCloud)
>>> jenkins_instance.clouds.addAll(kubernetes)
>>> jenkins_instance.save()
>>>
>>> Any thoughts on this?
>>>
>>>
>>> -- 
>>> 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/85bd4d52-5083-4536-ae26-61370ac984a4%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 

Re: Move work space in Jenkins File

2019-01-03 Thread Neil T
Hi Vinit

The workspace is a file system. The job screen is HTML page.  What you are 
asking makes no sense (to me) unless you mean you want to archive artifacts 
produced by job/pipeline and have the linked in the job details screen ? In 
which case search on 'archiving artifacts'. It's easy with DSL.

On Thursday, 3 January 2019 14:44:54 UTC, vinit ratan wrote:
>
> Hi All,
>
> Can some one please suggest the code to move work space to job screen in 
> Jenkins file.
>
> Thanks and Regards
> Vinit Ratan
> Automation Test Engineer
> Infosys Ltd.
>

-- 
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/52fd712d-1cd7-46f1-a5ec-2c411785e08c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins is keeping all the old builds

2019-01-03 Thread Neil T
I think you need to hire a jenkins consultant! 

On Thursday, 3 January 2019 14:44:42 UTC, madhvend...@dogmasystems.com 
wrote:
>
> Hi,
> I'm using Jenkins to build the war file.
> I have configured everything like a number of build or number or artifacts 
> etc.
> I have multiple customers, So I have written a script to build the war 
> file for a specific one. 
> With the log, it showing that Jenkins building the war for only one 
> customer, but inside the artifact (target folder). Jenkins Keeps all the 
> war file for all the customers.
> How is it possible?
> *With the log, it showing that Jenkins building the war for only one 
> customer, but inside the artifact (target folder). Jenkins Keeps all the 
> war file for all the customers. *
> *If I delete the artifact the target folder is deleted.*
> *But whenever I run the script to build the war file for some customer and 
> check the target folder. *
> *It is again showing all the war file *
>
> *Please help me to resolve this problem*
> *Thanks in advance*
>
>

-- 
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/cf7b4e04-0f4e-43ed-8783-381b05b938a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Kubernetes plugin configuration using groovy

2019-01-03 Thread unguiculus
Did you manage to solve the issue? I'm actually having the same problem but 
I do use the CasC plugin as Carlos suggested. Everything looks ok in the UI 
but only starts working if I hit "Save".

I copied away the whole JENKINS_HOME before and after hitting "Save". As 
expected, the diff doesn't show any changes. I tried triggering a reload of 
the config via CLI and via Groovy init script. Nothing helped but manually 
saving in the UI.

Here's the relevant part from the jenkins.yaml:

jenkins:
  clouds:
- kubernetes:
name: kubernetes
serverUrl: https://kubernetes.default
namespace: default
jenkinsUrl: http://jenkins-master:8080
jenkinsTunnel: jenkins-agent:5
templates:
  - name: k8s-agent
idleMinutes: 30
containers:
  - name: jnlp
image: jenkinsci/jnlp-slave:3.27-1-alpine
command: ""
args: ""


Jenkins version: 2.150.1 LTS

Installed plugins:

configuration-as-code:1.4
workflow-aggregator:2.6
kubernetes:1.14.2
kubernetes-credentials-provider:0.10
timestamper:1.8.10
locale:1.4

I'd appreciate any help.

--Reinhard


On Monday, August 20, 2018 at 4:39:57 PM UTC+2, Carlos Sanchez wrote:
>
> Have you tried configuration as code plugin?
>
> On Mon, Aug 20, 2018, 15:54 Alex > 
> wrote:
>
>> I am trying to configure the kubernetes plugin by using groovy at 
>> startup. 
>>
>> The problem that I have is that I can see the configuration in the 
>> "Configure System" menu, but it's not working unless i click on "Save"
>>
>> This is my groovy:
>>
>> import org.csanchez.jenkins.plugins.kubernetes.*
>> import jenkins.model.*
>>
>> def jenkins_instance = Jenkins.instance
>> def kubernetes = new KubernetesCloud('Kubernetes')
>>
>> // Configure Kubernetes Cloud
>> kubernetes.setNamespace('jenkins')
>> kubernetes.setJenkinsUrl(jenkins_instance.getRootUrl())
>> kubernetes.setMaxRequestsPerHostStr('30')
>> kubernetes.setConnectTimeout(30)
>> kubernetes.setReadTimeout(30)
>> kubernetes.setUsageRestricted(false)
>>
>> // Configure Jenkins Slave Container
>> jenkins_slave_image = System.getenv('JENKINS_SLAVE_IMAGE').toString()
>> def jenkins_container = new ContainerTemplate('jenkins-slave', 
>> jenkins_slave_image)
>> jenkins_container.setTtyEnabled(true)
>> jenkins_container.setName('jeknins-slave')
>>
>> // Configure Jenkins Slave Pods
>> def jenkins_slave_pod = new PodTemplate()
>> jenkins_slave_pod.setNamespace('jenkins')
>> jenkins_slave_pod.setName('jenkins-slave')
>> jenkins_slave_pod.setContainers([jenkins_container])
>> jenkins_slave_pod.save()
>>
>> // Save Changes
>> kubernetes.addTemplate(jenkins_slave_pod)
>> jenkins_instance.clouds.removeAll(KubernetesCloud)
>> jenkins_instance.clouds.addAll(kubernetes)
>> jenkins_instance.save()
>>
>> Any thoughts on this?
>>
>>
>> -- 
>> 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/85bd4d52-5083-4536-ae26-61370ac984a4%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/3cbc1fcf-cb2c-4045-a7e0-2b7530f8c667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: why won't builds trigger with multibranch pipeline github branch source ?

2019-01-03 Thread Neil T
Right, I think the docs are misleading me

https://support.cloudbees.com/hc/en-us/articles/115003019232-GitHub-Webhook-Pipeline-Multibranch

*Notes: Suppress Automatic SCM trigger property: It disables any automatic 
triggering, not only coming from push / pull request / repository 
notification but also from branch indexing.*

but on jenkins help 

*Suppresses the normal SCM commit trigger coming from branch indexing.*

On Thursday, 3 January 2019 14:43:14 UTC, Neil T wrote:
>
> I meant to add that the I can see the triggers are firing from github in 
> the jenkins logs. 
>
> On Thursday, 3 January 2019 13:32:52 UTC, Neil T wrote:
>>
>> Hi All
>>
>> My desired behaviour for triggering multi branch pipelines is:
>>
>> - trigger build on commit / push to git hub
>> - don't trigger builds when the repository scanner runs (on cron)
>> - don't trigger builds when PR is opened 
>>
>> Issue is
>>
>> - builds only trigger is noTriggerBranchProperty() is commented out / 
>> absent
>>
>> F
>>
>

-- 
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/a5829c26-ba7c-47c3-a39e-9f2298d2b893%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Move work space in Jenkins File

2019-01-03 Thread vinit ratan
Hi All,

Can some one please suggest the code to move work space to job screen in 
Jenkins file.

Thanks and Regards
Vinit Ratan
Automation Test Engineer
Infosys Ltd.

-- 
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/9157f46a-d9b7-4458-b412-131145fd93dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Conversion of XML REport to HTML in Jenkins

2019-01-03 Thread vinit ratan
Hi All,

I am get the correct script to convert the report generated in xml to HTML 
format in Jenkins File while working on Jenkins PipeLine. If some one can 
please help.

Thanks and Regards
Vinit Ratan
Automation Test Engineer
Infosys Ltd.

-- 
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/41f30ed7-7de8-4a29-b82f-05d3e1b08587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins is keeping all the old builds

2019-01-03 Thread madhvendra.thakur via Jenkins Users
Hi,
I'm using Jenkins to build the war file.
I have configured everything like a number of build or number or artifacts 
etc.
I have multiple customers, So I have written a script to build the war file 
for a specific one. 
With the log, it showing that Jenkins building the war for only one 
customer, but inside the artifact (target folder). Jenkins Keeps all the 
war file for all the customers.
How is it possible?
*With the log, it showing that Jenkins building the war for only one 
customer, but inside the artifact (target folder). Jenkins Keeps all the 
war file for all the customers. *
*If I delete the artifact the target folder is deleted.*
*But whenever I run the script to build the war file for some customer and 
check the target folder. *
*It is again showing all the war file *

*Please help me to resolve this problem*
*Thanks in advance*

-- 
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/157a5b07-69d3-4767-b9a1-7ecd90d910b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: why won't builds trigger with multibranch pipeline github branch source ?

2019-01-03 Thread Neil T
I meant to add that the I can see the triggers are firing from github in 
the jenkins logs. 

On Thursday, 3 January 2019 13:32:52 UTC, Neil T wrote:
>
> Hi All
>
> My desired behaviour for triggering multi branch pipelines is:
>
> - trigger build on commit / push to git hub
> - don't trigger builds when the repository scanner runs (on cron)
> - don't trigger builds when PR is opened 
>
> Issue is
>
> - builds only trigger is noTriggerBranchProperty() is commented out / 
> absent
>
> F
>

-- 
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/379dd971-2cb3-4ef3-a360-e97af8c9db22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Steffen Elste
Hi,
after i modified the pom.xml of the *cli* project to include


 org.codehaus.mojo
 build-helper-maven-plugin
 3.0.0
 
 
 add-source
 generate-sources
 
 add-source
 
 
 

 ${project.build.directory}/generated-sources/localizer
 
 
 
 
  


and re-imported everything the build path is set up correctly.
Cheers,

Steffen

-- 
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/46b79a6d-78d1-48f5-b1dd-8798eb82a9bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Steffen Elste
Hi Baptiste,
i did a quick check - removed the projects from the workspace, deleted all 
Eclipse-related files and folders, then bumped the version of the plugin up 
to 3.0.0 - but i still get the compile error, the build path is not set.

Can You give me a hint on how to go about updating the wiki, i'll give it a 
try?!
Regards,

Steffen

-- 
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/a124c55d-a630-43ba-9700-5af767af3c1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


problems using google chat notification plugin

2019-01-03 Thread Faad Sayaou
Hello everyone,
I am trying to use the Google chat notification plugin to post successful 
or failed builds 
I used the pipeline snippet generator to generate the command for this. 
However there are different ways of the defining the URL.

I am now trying to configure google webhook but I do not know which link to 
insert in the avatar URL field.

Can someone help me please?

-- 
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/fe061d29-15b0-4eb5-885c-24e35ab8c93c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error when manually updating Role-Strategy, when initially configured via JCasC plugin

2019-01-03 Thread Oleg Nenashev
Could you please create a Jenkins JIRA issue for that?
https://wiki.jenkins.io/display/JENKINS/How+to+report+an+issue 

On Wednesday, December 19, 2018 at 12:57:37 PM UTC+1, spikkie wrote:
>
> Hi Jenkins JCasC-Plugin and Role-Strategy-Plugin teams,
>
> I found a work around for this issue. :-)
>
> Initially when Jenkins has started I go to "role-strategy/manage-roles"
>
> http://localhost/role-strategy/manage-roles
>
> and then just click "Save" button
>
> After this "save" I can make changes to 
> http://localhost/role-strategy/assign-roles without errors
>
> Now I'm trying to find out how to make a groovy script to implement this 
> workaround
>
> I tried the following code but that didn't work
>
>   def currentAuthenticationStrategy = 
> Jenkins.instance.getAuthorizationStrategy()
>   
> Jenkins.instance.setAuthorizationStrategy(currentAuthenticationStrategy)
>   Jenkins.instance.save()
>
> I hope you can support me here.
>
> thanx
>
> kind regards,
> Bas
>
> Am Samstag, 8. Dezember 2018 14:31:44 UTC+1 schrieb spikkie:
>>
>> Hi Jenkins JCasC-Plugin and Role-Strategy-Plugin teams,
>>
>> following isse:
>> I have configured Role-Strategy using JCasC plugin see configuration and 
>> the end.
>> But now following error occurs when updating manually 
>>
>> http://localhost/jenkins/role-strategy/assign-roles
>>User/group to add -> newuser -> save
>>
>> When I add a new user manually I will get following error:
>>
>> 
>> Stack trace
>>
>> java.lang.UnsupportedOperationException
>> at 
>> java.util.Collections$UnmodifiableCollection.clear(Collections.java:1074)
>> at 
>> com.michelin.cio.hudson.plugins.rolestrategy.RoleMap.clearSidsForRole(RoleMap.java:208)
>> at 
>> com.michelin.cio.hudson.plugins.rolestrategy.RoleMap.clearSids(RoleMap.java:248)
>> at 
>> com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy$DescriptorImpl.doAssignSubmit(RoleBasedAuthorizationStrategy.java:696)
>> at 
>> com.michelin.cio.hudson.plugins.rolestrategy.RoleStrategyConfig.doAssignSubmit(RoleStrategyConfig.java:165)
>> at 
>> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>> at 
>> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
>> at 
>> org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
>> at 
>> org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
>> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
>> at 
>> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
>> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
>> at 
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
>> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
>> Caused: javax.servlet.ServletException
>> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:784)
>> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
>> at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
>> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
>> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
>> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)
>> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>> at 
>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
>> at 
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
>> at 
>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
>> at 
>> com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
>> at 
>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>> at 
>> hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
>> at 
>> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
>> at 
>> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
>> at 
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
>> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)
>> at 
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
>> at 
>> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>> at 
>> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
>> at 
>> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>> at 
>> jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
>> at 
>> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>> at 
>> 

Re: Building Jenkins in Eclipse

2019-01-03 Thread Baptiste Mathus
@Steffen and James, can you pretty please update the wiki page for Eclipse?
I'd do it myself, but I don't use Eclipse anymore, so my experience is ~3
years outdated now.

IMO, do not hesitate to remove many things, and make it very short, so that
it does not become stale too quickly.

For the `target/generated-sources/localizer'` path that does not get added,
I just checked, and I think I know the reason.
It's using the quite standard build-helper-maven-plugin, and so M2E should
be automatically configuring paths, but the support for M2E got added only
in 3.0.0.

Filed https://github.com/jenkinsci/jenkins/pull/3831 to help this. Can you
please check that bumping this manually on your machine does fix this issue
when importing with Eclipse ?

Thanks


Le jeu. 3 janv. 2019 à 09:57, Steffen Elste  a
écrit :

> Hi,
> gave it at try this morning.
>
> I downloaded the current 'Eclipse IDE for Enterprise Java Developers' (the
> smaller 'Eclipse IDE for Java Developers' should do as well).
> Cloned the repository - without importing any projects in the first place
> - then imported 'Existing Maven Projects' into the workspace.
> Eclipse then recognizes a missing m2e extension and displays a dialog to
> automatically install it - of course it's possible to do that manually
> beforehand, the extension is called M2E Buildhelper Connector
> 
> .
>
> There are a couple of errors after Eclipse finishes compiling the code -
> the missing 'hudson.cli.client' import is easy to fix: m2e doesn't realize
> that the source for localized messages is located in
> 'target/generated-sources/localizer' - You simply have to add that
> directory to the build path of the CLI project.
>
> I'm still faced with an XML and two JSON errors, plus there are two
> compile errors left (in 'DelegateSecurityManager' and
> 'DescriptorExtensionList') ... (Java 8 issue?!)
>
> Well, although Eclipse has gotten better of the last couple of years with
> respect to Maven integration it is - in my opinion - still the worst of the
> 'Big Three'.
> Apache NetBeans and IntelliJ IDEA are much better choices if You use build
> systems like Maven or Gradle.
>
> Btw, i agree with James Nord - the instructions are totally outdated if
> not outright wrong for Eclipse Neon upwards and should either be fixed or
> removed.
> Cheers,
>
> Steffen
>
> --
> 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/b80df4b4-dc6c-4b31-9d8f-b87da6ed336e%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/CANWgJS6j2H-XvnnCSUYGwx2mhTUg-%3D-U7nPtB2oc3_FCG%3Dmr-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building Jenkins in Eclipse

2019-01-03 Thread Steffen Elste
Hi,
gave it at try this morning.

I downloaded the current 'Eclipse IDE for Enterprise Java Developers' (the 
smaller 'Eclipse IDE for Java Developers' should do as well).
Cloned the repository - without importing any projects in the first place - 
then imported 'Existing Maven Projects' into the workspace.
Eclipse then recognizes a missing m2e extension and displays a dialog to 
automatically install it - of course it's possible to do that manually 
beforehand, the extension is called M2E Buildhelper Connector 

.

There are a couple of errors after Eclipse finishes compiling the code - 
the missing 'hudson.cli.client' import is easy to fix: m2e doesn't realize 
that the source for localized messages is located in 
'target/generated-sources/localizer' - You simply have to add that 
directory to the build path of the CLI project.

I'm still faced with an XML and two JSON errors, plus there are two compile 
errors left (in 'DelegateSecurityManager' and 'DescriptorExtensionList') 
... (Java 8 issue?!)

Well, although Eclipse has gotten better of the last couple of years with 
respect to Maven integration it is - in my opinion - still the worst of the 
'Big Three'.
Apache NetBeans and IntelliJ IDEA are much better choices if You use build 
systems like Maven or Gradle.

Btw, i agree with James Nord - the instructions are totally outdated if not 
outright wrong for Eclipse Neon upwards and should either be fixed or 
removed.
Cheers,

Steffen

-- 
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/b80df4b4-dc6c-4b31-9d8f-b87da6ed336e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.