Re: [Jenkins-infra] Scheduled infrastructure maintenance window June 3 00:00 UTC

2016-06-02 Thread R. Tyler Croy

Any we're done, closing out INFRA-731
(https://issues.jenkins-ci.org/browse/INFRA-731)

Tune in next week for when we, hopefully, roll out that JIRA 7 upgrade.


- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
--

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20160603013518.GN6548%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


Re: [Jenkins-infra] Scheduled infrastructure maintenance window June 3 00:00 UTC

2016-06-02 Thread R. Tyler Croy
(replies inline)

On Thu, 02 Jun 2016, R. Tyler Croy wrote:

> (replies inline)
> 
> On Wed, 01 Jun 2016, R. Tyler Croy wrote:
> 
> > 
> > Consider this notice that there will be a scheduled maintenance window June 
> > 3rd
> > 00:00 UTC or June 2nd 16:00 PDT for project infrastructure.
> > 
> > The work is tracked in this ticket
> > (https://issues.jenkins-ci.org/browse/INFRA-731) and should last between 1-2
> > hours.
> 
> 
> This work is beginning, some services may be periodically on/off-line for the
> next couple hours.



Work is still on-going. I have had to punt the JIRA upgrade until next week
unfortunately, and am slowly working my way through the various security
updates in our various datacenters >_<





- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
--

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20160603010613.GM6548%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


Re: [Jenkins-infra] Scheduled infrastructure maintenance window June 3 00:00 UTC

2016-06-02 Thread R. Tyler Croy
(replies inline)

On Wed, 01 Jun 2016, R. Tyler Croy wrote:

> 
> Consider this notice that there will be a scheduled maintenance window June 
> 3rd
> 00:00 UTC or June 2nd 16:00 PDT for project infrastructure.
> 
> The work is tracked in this ticket
> (https://issues.jenkins-ci.org/browse/INFRA-731) and should last between 1-2
> hours.


This work is beginning, some services may be periodically on/off-line for the
next couple hours.




- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
--

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20160602231154.GL6548%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


Re: using maven.config

2016-06-02 Thread Derek
Nirish,
Update what in the configuration?  The only things I see there are choices 
for settings.xml and a repository location.

>  
>

-- 
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/15b84281-86af-4bb8-a97b-6eedc5eea18a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: using maven.config

2016-06-02 Thread niristotle okram
Navigate to manage jenkins - configure system & update the Maven
Configuration

On Thu, Jun 2, 2016 at 1:31 PM, Derek  wrote:

> I have been unable to get Jenkins to run maven in such a way that it
> honors the .mvn/maven.config properties file (introduced in maven
> 3.3).  I have tried running with a Maven project type and a Freestyle
> project type.  If I execute maven from the command line on the Jenkins
> slave in the workspace, it works fine.  Executing maven from Jenkins
> against the pom, builds the project but the maven.config is never
> picked up like it should be.
>
> Any ideas why I Maven run from Jenkins does not pickup maven.config?
>
> Using
> Jenkins ver. 1.642.1
> Maven 3.3.9
> Maven Plugin 2.7.1
>
> Example:
> .mvn/maven.config
> -Dmyproperty=HelloWorld
>
> pom.xml
>
> http://maven.apache.org/POM/4.0.0;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd;>
>   4.0.0
>   my.test
>   jenkins-maven-config
>   1.0-SNAPSHOT
>   pom
>
>   
> ERROR: Not Set
>   
>
>   
> 
>   
> org.codehaus.mojo
> exec-maven-plugin
> 1.4.0
> 
>   
> echo parameter
> generate-sources
> 
>   exec
> 
> 
>   echo ${myproperty}
> 
>   
> 
>   
> 
>   
>
> 
>
> --
> 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/CAM0rHLz9Hm9zVLeMzfHKnxkkTxC6311vsk-L%2Bhv1EoHmMyzXiQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

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


using maven.config

2016-06-02 Thread Derek
I have been unable to get Jenkins to run maven in such a way that it
honors the .mvn/maven.config properties file (introduced in maven
3.3).  I have tried running with a Maven project type and a Freestyle
project type.  If I execute maven from the command line on the Jenkins
slave in the workspace, it works fine.  Executing maven from Jenkins
against the pom, builds the project but the maven.config is never
picked up like it should be.

Any ideas why I Maven run from Jenkins does not pickup maven.config?

Using
Jenkins ver. 1.642.1
Maven 3.3.9
Maven Plugin 2.7.1

Example:
.mvn/maven.config
-Dmyproperty=HelloWorld

pom.xml

http://maven.apache.org/POM/4.0.0;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
  4.0.0
  my.test
  jenkins-maven-config
  1.0-SNAPSHOT
  pom

  
ERROR: Not Set
  

  

  
org.codehaus.mojo
exec-maven-plugin
1.4.0

  
echo parameter
generate-sources

  exec


  echo ${myproperty}

  

  

  



-- 
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/CAM0rHLz9Hm9zVLeMzfHKnxkkTxC6311vsk-L%2Bhv1EoHmMyzXiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Install and Login Jenkins with linux account user

2016-06-02 Thread seemant bisht
Hello,
I want to install Jenkins and use it to build projects as linux account 
user (e.g. linus). How can I achieve that? Please help.
I have installed jenkins as user jenkins and added linus as new user but 
when I try to build project it starts saying incorrect password.

-- 
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/0bbf2e30-65ab-4acb-a053-8922d5001dee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Enable Manual Promotion of multibranch pipeline builds

2016-06-02 Thread Greg Smith

Hi,

I would like to enable a user to manually promote builds, that are defined 
by Jenkinfiles in a multibranch build configuration.

I'm not quite sure how to set this up, or if its possible.  Ideally it 
would work like this:

For any "master" branch in any project in our github organization, an 
approved person could select one of the builds that had already completed, 
and click "Promote".  That promotion would "Save artifacts forever", and 
kick off a downstream build with the promoted artifacts.

I was able to configure jobs like this before, with a Freestyle project.  
But I can't figure out how I should be doing this now with pipeline builds 
automatically configured by a scan of our github project sets.

Is this still possible, or should I be thinking differently with the new 
pipeline style of doing things.

Thanks,
Greg

-- 
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/6d661051-78ab-4761-b41d-0ee016522789%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to determine the workspace error

2016-06-02 Thread Hitesh Gupta
Hi,
I am getting below error when jenkins start building the project.  However,
get latest succeeds.  I have tried all option and run tf commands as
suggested in the message but no luck.  Even I have uninstalled jenkins,
reinstalled and reconfigured but still getting same error.  I have even
manually deleted the workspace, unmapped and again created workspace and
mapping but no luck.

Did anyone faced similar issue and found the solution?

(PreBuildEvent target) ->
  EXEC : Unable to get TFS Changeset Number tf history command error :
Unable to determine the workspace. You may be able to correct this by
running 'tf workspaces /collection:TeamProjectCollectionUrl'.
  
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5):
error MSB3073: The command "cscript "C:\Program Files
(x86)\Jenkins\workspace\abc\version.wsf"" exited with code -1.


Thanks in Advance.

Hkg

-- 
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/CAHbyDFMS-%2BnTMC_13Sp7cpM-aP4vQ3ddqdPDNzGp%3DggKJ2D1Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-06-02 Thread Hitesh Gupta
Thank you Mathus.  It helped.  I configured the proxy and now able to see
available plugins.

Regards,
Hitesh

On Thu, May 26, 2016 at 2:21 AM, Baptiste Mathus  wrote:

> 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
>> 

Re: Jenkins Log4j warning

2016-06-02 Thread Shrikant Nanda
Hi Gaurang, Did you manage to find solution of this problem?

-Shrikant

On Tuesday, September 10, 2013 at 8:08:28 AM UTC+1, Gaurang shah wrote:
>
> Hi Mathus,
>
>
> I did what you suggested, moved *log4j.property* file in 
> *src\test\resources* folder, however it still shows the warning. 
>
> Gaurang Shah
>
> Gaurang Shah
> Blog: qtp-help.blogspot.com
> Mobile: +91 738756556
>
>
> On Tue, Sep 10, 2013 at 12:12 PM, Baptiste Mathus  > wrote:
>
>> Did you apply what I asked?
>>
>> " As for your issue, move your log4j.properties file to 
>> src/test/resources."
>>
>> With maven, only source code goes into src/*/java. .properties must be 
>> inside src/*/resources.
>> Le 10 sept. 2013 07:31, "Gaurang shah"  
>> a écrit :
>>
>> I don't think it is a maven question, as when i run project thorough 
>>> maven i don't see any warning, however when i run though Jenkins then i see 
>>> *log4j 
>>> *warning and so many other logs and mention below 
>>>
>>> Please guys let me know how to get rid of this warning and logs messages.
>>>
>>> log4j:WARN No appenders could be found for logger 
>>> (org.apache.commons.beanutils.converters.BooleanConverter).
>>> log4j:WARN Please initialize the log4j system properly.
>>>
>>> Executing Maven:  -B -f C:\Users\gaurang_shah\workspace\MavenTest\pom.xml 
>>> checkstyle:checkstyle test
>>>
>>> [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener - 
>>> Scanning for projects...
>>> [pool-1-thread-1] INFO org.apache.maven.cli.event.ExecutionEventLogger - 
>>> Scanning for projects...
>>>
>>> [pool-1-thread-1] INFO hudson.maven.Maven3Builder$MavenExecutionListener 
>>>
>>> 
>>>
>>>  
>>>
>>>
>>> Gaurang Shah
>>> Blog: qtp-help.blogspot.com
>>> Mobile: +91 738756556
>>>
>>>
>>> On Mon, Sep 9, 2013 at 1:36 AM, Baptiste Mathus >> > wrote:
>>>
 Maven question. Please better post on Maven users mailing list next 
 time.

 As for your issue, move your log4j.properties file to 
 src/test/resources.

 Cheers


 2013/9/6 Gaurang shah 

> Hi Guy, 
>
> I have configured log4j in my project, however the problem is when i 
> run that in jenkins i get following log4j jenkins. have i missed 
> something 
> in log4j.properties file or have i misplaced it ??
>
> I am using maven project. 
> *Error Messages*
>
> log4j:WARN No appenders could be found for logger 
> (org.apache.commons.beanutils.converters.BooleanConverter).
>
> log4j:WARN Please initialize the log4j system properly.
>
> *Location of the log4j.properties -  *src\test\java
>
> *log4j.properties:*
> # Root logger option
> log4j.rootLogger=INFO, stdout
>  
> # Direct log messages to stdout
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.Target=System.out
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%d{-MM-dd HH:mm:ss} 
> %-5p %c{1}:%L - %m%n
>
> -- 
> 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 .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
> -- 
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor ! nbsp;! 

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Jenkins Users" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/jenkinsci-users/kYcWTysgIok/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 jenkinsci-use...@googlegroups.com .
 For more options, visit https://groups.google.com/groups/opt_out.

>>>
>>> -- 
>>> 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 .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jenkinsci-users/kYcWTysgIok/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkinsci-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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 

update-center.json - plugin sha1 values

2016-06-02 Thread DrGR
Hello,

Within our development environment, we have a jenkins installation within a 
secure environment without direct connection to the web. It means when we 
want to install/update a jenkins plugin they have to be imported within 
secure environment. Before that can happen, it must be approved by security 
to be imported - part of that process requires us to provide a hash (e.g. 
md5/sha1) provided by the supplier (in this case jenkins) in order to 
verify it matches after downloading the artefact.

I am trying to download a jenkins plugin, in this case ws-cleanup version 
0.29. I have obtained the sha1 which I found 
from https://updates.jenkins-ci.org/update-center.json. its specifies the 
sha1 as "3DJdsVMUX8PB4/oHbWwsdvBjdNs=". but when I download the plugin and 
check the hash locally it is "DC325DB153145FC3C1E3FA076D6C2C76F06374DB".

Can anyone tell me why there is discrepancy and if there is any way of 
resolving it. E.g. is there any other location where I can get the correct 
sha1 keys, that doesn't involve generating it my self.

Many Thanks in advance for any help,

RG

-- 
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/d8bbe4bf-d134-431c-9c52-aedbf1482048%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline global library no longer works on latest builds on Windows

2016-06-02 Thread tomwilson001 . us
Thanks Craig, that's seem to be the way I'm going to resolve this problem

On Wednesday, June 1, 2016 at 6:17:12 PM UTC-5, Craig Rodrigues wrote:
>
> Hi,
>
> My advice will differ from some of the advice on this list, but I would
> advise you to find a way to accomplish your goal
> without using the pipeline global library mechanism.
> It is really weird, and as you have found, hard to debug when it doesn't 
> work.
>
> My advice is for you to try to find a way to treat your Jenkinsfile as a 
> Groovy script,
> and somehow include your script library in your Jenkinsfile via Groovy 
> language mechanisms.
>
> When Jenkins runs your Jenkinsfile, it dynamically creates a class called 
> Workflowscript,
> and places your entire Jenkinsfile inside a Workflowscript.run() method.  
> I posted some hints
> as to what I figured out when I was debugging my scripts:
>
> https://groups.google.com/forum/#!msg/jenkinsci-users/P7VMQQuMdsY/bHfBDSn9GgAJ
>
> I don't have a solution for you, because I am not a Groovy expert.  But if 
> you figure something
> out, please post your solution to the list.
>
> --
> Craig
>
> On Wed, Jun 1, 2016 at 3:22 PM,  
> wrote:
>
> Currently, I only call one variable/function under the vars directory.  If 
>> the pipeline global library mechanism is so unstable, is there anyway I can 
>> call the function but under a different location without changing the 
>> Jenkinsfile?  After I add the Jenkinsfile to the trunk of my project, it 
>> has been branched to so many other branches owned by many different 
>> developers.  If I start changing Jenkinsfile in their branches, their first 
>> reaction would be to raise the question why I mess with their territory.
>>
>

-- 
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/f79dd330-b0b3-45c8-b742-e762c8d2a851%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Git Client Plugin wiki page missing data?

2016-06-02 Thread Dunnigan, Terrence J
Nice, thank you!

Terry

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Christopher Orr
Sent: Wednesday, June 01, 2016 7:07 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Git Client Plugin wiki page missing data?

Hi there,

On 01 Jun 2016, at 18:53, Dunnigan, Terrence J 
> wrote:
Does anyone know why the Git Client Plugin wiki page is missing most of its 
data?

Both of these URLs appear to point to the same page, and both appear to be 
missing everything save the Plugin Information table.

https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin
https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=97091701

I’ve fixed it (I think).

Confluence, for some odd reason, appears not to understand "+" in a URL like 
everybody else does, and somebody seems to have added an empty 
„Git+Client+Plugin“ page a couple of months ago.
I’ve deleted that page now, and when accessing that URL (bypassing our wiki 
cache), it properly displays the existing „Git Client Plugin“ page:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin?nocache

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/9CC7E58C-AB84-4FAB-A72F-332EDC5BC573%40orr.me.uk.
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/18be0e0c645d4b8793cfa36a08071d82%40XCH15-05-11.nw.nos.boeing.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline: Transfer files via SSH

2016-06-02 Thread Sverre Moe
I need to transfer some files to a server. 
Have followed the suggestion mention in 
https://issues.jenkins-ci.org/browse/JENKINS-27963
Tried sshagent with both scp and rsync. Neither works.

I have created a Credential for this server in Jenkins.

Using rsync
sshagent(['repository']) {
sh "rsync -av *.rpm 
r...@server.company.com:/srv/www/htdocs/staging_rpms/"
}

[ssh-agent] Using credentials build (repohost)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] Started.
[Pipeline] {
[Pipeline] sh
[master] Running shell script
+ rsync -av *.rpm r...@server.company.com:/srv/www/htdocs/staging_rpms
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(641) 
[sender=3.0.4]


Using scp
sshagent(['repository']) {
sh "scp *.rpm r...@server.company.com:/srv/www/htdocs/staging_rpms/"
}

[ssh-agent] Using credentials build (repohost)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] Started.
[Pipeline] {
[Pipeline] sh
[master] Running shell script
+ scp *.rpm r...@server.company.com:/srv/www/htdocs/staging_rpms/
Host key verification failed.
lost connection

Problem because of this:
The authenticity of host 'server.company.com (192.24.17.73)' can't be 
established.
ECDSA key fingerprint is 00:00:00:00:00:00:00:bc:cc:51:3f:39:f8:06:df:18 
[MD5].
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server.company.com' (ECDSA) to the list of 
known hosts.

Fixing this first "manually" and continued.

Using rsync
[ssh-agent] Using credentials build (repohost)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] Started.
[Pipeline] {
[Pipeline] sh
[master] Running shell script
+ rsync -av *.rpm r...@server.company.com:/srv/www/htdocs/staging_rpms/
Permission denied (publickey,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(641) 
[sender=3.0.4]

Using scp
[ssh-agent] Using credentials build (repohost)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] Started.
[Pipeline] {
[Pipeline] sh
[master] Running shell script
+ scp *.rpm r...@server.company.com:/srv/www/htdocs/staging_rpms/
Permission denied (publickey,keyboard-interactive).
lost connection

-- 
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/fb3f547a-32ad-49b0-a012-9dfa69f91a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Global Library - predefined properties in a variable

2016-06-02 Thread Itai Sanders
just to add - for now I am using a sort of a compromising in the form of an 
init method that initializes these properties.
as long as I only call this method only once at the beginning of the 
pipeline, everything works great. this might be the only way to do this. I 
would still rather find a way to do it without the init method, or at least 
making sure the init method would never redefine already defined 
properties, just on the safe side.

 

On Thursday, June 2, 2016 at 4:29:37 PM UTC+3, Itai Sanders wrote:
>
> Hi,
>
> I am looking for some help regarding the Pipeline Global Library 
> 
>  
> functionality.
>
> it seems like there is no way (or at least no straight way) to create a 
> script that will hold both predefined properties and pipeline methods. I 
> need to do this in order to write a wrapper to some Artifactory 
> 
>  
> functionality to be used in multiple pipelines. I need the Artifactory api 
> to be placed inside the global library so I can call it with simple calls, 
> yet those methods need to interact with a single-per-build Artifactory 
> object instance which holds the Artifactory identity and a global build 
> info object to aggregate the published artifacts info into.
>
> the naive implementation was something like this:
>
>> server = Artifactory.server('artifactory-server-id')
>
> buildInfo = Artifactory.newBuildInfo()
>
>
>> def upload(file, target) {
>
> def uploadSpec = "{$file,.$target..}" 
>>
>> server.upload(uploadSpec, buildInfo)
>>
>> }
>
>  
>
> def publisInfo() {
>
> server.publishBuildInfo(buildInfo)
>>
>> }  
>
>   
> I managed to implement it fairly easily using the fileLoader plugin, but 
> pulling from the external git seems to be problematic from various reasons. 
> I thought implementing it as a Global Library would be fairly easy, but is 
> seems to be much more pain that I thought.
> the script itself is indeed recognized as the artifactory variable (the 
> script is called artifactory.groovy and placed in the vars folder), but 
> when I call the artifactory.upload method I get the following error:
>
>> No such property: server for class: groovy.lang.Binding
>>
>> which suggests that the server property wasn't defined as I expected (and 
> as happens in the fileLoader method of running things).
>
> I then tried to create some sort of functionality that will define these 
> properties only if they are not yet defined. something like this.server = 
> this.server ?: Artifactory.server('artifactory-server-id') or calling 
> on binding.variables.containsKey("server") inside an if statement, but this 
> kind of logic seems to throw the entire pipeline into an infinite recursion.
>
>
> I will appreciate any idea, workaround or alternative way to achieve the 
> same effect. calling Artifactory.server('artifactory-server-id') in each 
> method is an option, but I can't call Artifactory.newBuildInfo() inside a 
> method since the object needs be used on all upload calls.
> right now it seems like the only way is to keep those in the actual 
> pipeline script, which ruins much of the idea of keeping all Artifactory 
> management inside artifactory.groovy
>
> Itai
>
>  
>

-- 
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/768c93d6-4aeb-41db-818f-4b5e690c5080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SDLC for Pipeline Templates?

2016-06-02 Thread Jason Hull
I really like the Pipeline Templates feature of Jenkins. I am using PL 
templates to build/test/promote a variety of content types, such as Chef 
Cookbooks.

Its important that I can modify and enhance these templates in a safe way 
that does not adversely impact the users that instantiate these templates.

How do I develop, test, and promote pipeline templates themselves? Are 
people out there creating pipelines for their pipeline templates or using 
other techniques? I'd love to know the community's thoughts and experience 
here!

-Jason

-- 
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/63b3a1e8-6623-431c-bb8f-53c2cca2f689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline Global Library - predefined properties in a variable

2016-06-02 Thread Itai Sanders
Hi,

I am looking for some help regarding the Pipeline Global Library 

 
functionality.

it seems like there is no way (or at least no straight way) to create a 
script that will hold both predefined properties and pipeline methods. I 
need to do this in order to write a wrapper to some Artifactory 

 
functionality to be used in multiple pipelines. I need the Artifactory api 
to be placed inside the global library so I can call it with simple calls, 
yet those methods need to interact with a single-per-build Artifactory 
object instance which holds the Artifactory identity and a global build 
info object to aggregate the published artifacts info into.

the naive implementation was something like this:

> server = Artifactory.server('artifactory-server-id')

buildInfo = Artifactory.newBuildInfo()


> def upload(file, target) {

def uploadSpec = "{$file,.$target..}" 
>
> server.upload(uploadSpec, buildInfo)
>
> }

 

def publisInfo() {

server.publishBuildInfo(buildInfo)
>
> }  

  
I managed to implement it fairly easily using the fileLoader plugin, but 
pulling from the external git seems to be problematic from various reasons. 
I thought implementing it as a Global Library would be fairly easy, but is 
seems to be much more pain that I thought.
the script itself is indeed recognized as the artifactory variable (the 
script is called artifactory.groovy and placed in the vars folder), but 
when I call the artifactory.upload method I get the following error:

> No such property: server for class: groovy.lang.Binding
>
> which suggests that the server property wasn't defined as I expected (and 
as happens in the fileLoader method of running things).

I then tried to create some sort of functionality that will define these 
properties only if they are not yet defined. something like this.server = 
this.server ?: Artifactory.server('artifactory-server-id') or calling 
on binding.variables.containsKey("server") inside an if statement, but this 
kind of logic seems to throw the entire pipeline into an infinite recursion.


I will appreciate any idea, workaround or alternative way to achieve the 
same effect. calling Artifactory.server('artifactory-server-id') in each 
method is an option, but I can't call Artifactory.newBuildInfo() inside a 
method since the object needs be used on all upload calls.
right now it seems like the only way is to keep those in the actual 
pipeline script, which ruins much of the idea of keeping all Artifactory 
management inside artifactory.groovy

Itai

 

-- 
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/36998b3d-9089-4823-8118-8114b1933c67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What I miss with Pipeline: Console output from each node

2016-06-02 Thread Sverre Moe
The main Console Output prepends all lines with the node name

[master-sles11-i686] + ./autogen.sh
[master-sles11-x86_64] + ./autogen.sh


This could be use to split out the main Console Output with one for each 
node.

When https://issues.jenkins-ci.org/browse/JENKINS-26107 is finished it 
would make the Log in Stage View more readable with label so one could 
distinguish between steps of "Shell script". However the list of steps 
within one stage is not structured by which node it executed on.

torsdag 2. juni 2016 09.17.04 UTC+2 skrev Sverre Moe følgende:
>
> I have installed Pipeline Stage View Plugin and already been using it. I 
> get Stage view visualization in the project, but it doesn't visualize each 
> parallel execution. All steps in parallel executions within one stage are 
> all listed on that one single stage.
>
> It is not allowed to have stage within a parallel execution, as far as I 
> know. I got an exception when I tried it. If it could be possible to define 
> stage within parallel I could use a different stage name for each parallel 
> execution node.
> stage 'Build-node1'
> stage 'Build-node2'
>
> onsdag 1. juni 2016 19.12.09 UTC+2 skrev Craig Rodrigues følgende:
>>
>> Hi,
>>
>> Did you try using the Pipeline Stage View Plugin 
>> ?  
>> It breaks the log down by stage quite nicely, such as in this example:
>> https://jenkins.freebsd.org/job/FreeBSD_HEAD/
>>
>> I haven't tried it with pipelines that execute in parallel, so would be 
>> curious as to how it works for you
>>
>> --
>> Craig
>>
>> On Wed, Jun 1, 2016 at 3:07 AM, Sverre Moe  wrote:
>>
>> I have been using Jenkins Multi-configuration. With my move over to 
>>> Pipeline scripts and Jenkinsfile I still build on multiple nodes/slaves.
>>> When building all the nodes in parallel the console output is a mess. It 
>>> is very difficult to separate the output from a single node.
>>>
>>>

-- 
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/387fe20e-2071-4ab3-a5f7-bc9bbd4f7d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What I miss with Pipeline: Console output from each node

2016-06-02 Thread Sverre Moe
I have installed Pipeline Stage View Plugin and already been using it. I 
get Stage view visualization in the project, but it doesn't visualize each 
parallel execution. All steps in parallel executions within one stage are 
all listed on that one single stage.

It is not allowed to have stage within a parallel execution, as far as I 
know. I got an exception when I tried it. If it could be possible to define 
stage within parallel I could use a different stage name for each parallel 
execution node.
stage 'Build-node1'
stage 'Build-node2'

onsdag 1. juni 2016 19.12.09 UTC+2 skrev Craig Rodrigues følgende:
>
> Hi,
>
> Did you try using the Pipeline Stage View Plugin 
> ?  
> It breaks the log down by stage quite nicely, such as in this example:
> https://jenkins.freebsd.org/job/FreeBSD_HEAD/
>
> I haven't tried it with pipelines that execute in parallel, so would be 
> curious as to how it works for you
>
> --
> Craig
>
> On Wed, Jun 1, 2016 at 3:07 AM, Sverre Moe  > wrote:
>
> I have been using Jenkins Multi-configuration. With my move over to 
>> Pipeline scripts and Jenkinsfile I still build on multiple nodes/slaves.
>> When building all the nodes in parallel the console output is a mess. It 
>> is very difficult to separate the output from a single node.
>>
>>

-- 
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/84861f8d-5747-4d44-acf3-5ad54f981c2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.