Re: invalid IPv6 address when testing connection on Publish Over FTP plugin

2016-07-20 Thread Louis
Anyone has any idea on this, or have experienced something similar? Any 
form of help would be great!

-- 
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/bada2874-be57-4d7d-b4fc-20a9eb190f25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


unable to access; no such file or directory, permission denied error

2016-07-20 Thread Subramanyeswari Ravinutala



Hi,

We have a C# utiity to create branches on VOBs using cleartool commands.  
This process is breaking with the following two errors.

Unable to access file No such file or directory.
in view: Permission denied

I have looked at the forums and i found the below relevant posts.

https://wiki.jenkins-ci.org/display/JENKINS/ClearCase+Plugin?focusedCommentId=42469812#comment-42469812
https://wiki.jenkins-ci.org/display/JENKINS/ClearCase+Plugin?focusedCommentId=43713920#comment-43713920

But my file path in the view does not contain any spaces.
And also the views are created on the fly during the program execution.  I 
cannot use ClearCase plugin as my view are created dynamically in the 
program.
 

My environment is below.
jenkins 1.625.3.
java 1.7
 
And I have set the Jenkins service with the admin user.  No clue what i am 
doing wrong here.


Please do let me know how to solve this issue.

Regards,

-- 
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/3e40e5a1-bffe-4234-a9e8-532702e944f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to consolidate reports generated from child jobs and pulled into parent job???

2016-07-20 Thread Ravi A
Recently we had something similar requirement. So I configured/updated my 
child Jenkins jobs to copy their respective individual test reports to one 
network share directory and quit. Parent will be waiting till all child 
execution is completed and pick up all the reports from the same network 
share directory.

If all child jobs and parent job run on the same host, we can consolidate 
all required reports together using another Jenkins job or using any other 
script assuming the job/script has sufficient access 
permissions/credentials.

-- 
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/49728d64-31c7-4d15-ac74-a5ccc09d94ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiple pipelines in Jenkinsfile

2016-07-20 Thread Slide
The way I am planning on doing this is with the findFiles and load
functions. I'll use findFiles in my Jenkinsfile to look for other build
files further in the repo and create jobs from those to run. The other
files will not necessarily be the same setup as a Jenkinsfile, but will use
the pipeline syntax.

On Wed, Jul 20, 2016, 13:44 Alex Kessinger  wrote:

> Mike, I'd just like to chime in and say that makes a lot of sense to me.
> As others have noted their can be times when you want multiple pipelines
> with a repo. My own specific use case is that I'd like to be able to
> trigger a rollback pipeline.
>
> On Tuesday, July 12, 2016 at 12:16:27 PM UTC-6, Mike Rooney wrote:
>>
>> This need makes a lot of sense to us, where we have a couple related
>> sub-projects (as sub directories) in a single repository. It makes sense
>> that they each have their own pipeline jobs and can run on different
>> schedules. I've also seen cases similar to Alex's (hi Alex!) where there
>> are different tasks you want to do with a single repo that don't make sense
>> as one pipeline job that runs together (building/testing versus a nightly
>> cron-type task that runs in the repo).
>>
>> It is reasonable that a Jenkinsfile corresponds to a single Pipeline job,
>> because these are often associated with and run via a Pipeline job which
>> isn't a logical "parent" of these seed jobs. However, a great place for
>> this enhancement would be the Github Org / Bitbucket plugins that scan
>> repositories for Jenkinsfiles and are already in the place of creating
>> multiple Pipeline jobs.
>>
>> My proposal would be: add a configuration option for the Github and
>> Bitbucket plugins which scan organizations for Jenkinsfiles. So, "Project
>> Recognizers -> Pipeline Jenkinsfile" would get a box for this which
>> defaults to "Jenkinsfile". Some logical configuration examples might be,
>> "Jenkinsfiles/*", "**/Jenkinsfile", "Jenkinsfile-*". Then the
>> Github/Bitbucket plugins can be pointed at an org, or just one repository,
>> and multiple Jenkinsfiles can exist which define different Pipeline jobs.
>>
>> Bartłomiej and Alex, would something like this satisfy your use cases as
>> well?
>>
>> - Michael
>>
>> On Sunday, May 29, 2016 at 12:47:40 PM UTC-5, Bartłomiej Sacharski wrote:
>>>
>>> I'm really hyped about the Jenkinsfiles - they make it much much easier
>>> to document and preserve project configuration.
>>> However, all the examples that I've seen seem to use single pipeline.
>>> I've tried to define different stages in separate node blocks, however
>>> they still were seen as a single pipeline.
>>>
>>> Is it possible to define multiple pipelines in a single Jenkinsfile? Or
>>> maybe there's undocumented functionality for .jenkinsfile extension to
>>> handle such cases?
>>>
>> --
> 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/a855fa87-29a9-46e5-9309-f0a0fff4e781%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/CAPiUgVdA812T8pK-XRcEgtAtvoWhkGsces6gP5HE%2BgHuoL%3D6gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jobs as a code

2016-07-20 Thread Jakov Sosic

Hi guys

I would like to manage jenkins jobs through code if possible. I'm kinda 
getting tired of everybody in the team clicking around and modifying 
stuff left and right.


There seems to be 3 options available as far as I could find:

- Jenkins DSL
- jenkins-job-builder (OpenStack)
- Pipeline (formerly known as Workflow) plugin


Is there anything else, or is this it, and does anybody have any 
experience? What would you suggest out of these 3 as the best one?



Thanks,

Jakov

--
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/579013CC.6080508%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiple pipelines in Jenkinsfile

2016-07-20 Thread Alex Kessinger
Mike, I'd just like to chime in and say that makes a lot of sense to me. As 
others have noted their can be times when you want multiple pipelines with 
a repo. My own specific use case is that I'd like to be able to trigger a 
rollback pipeline.

On Tuesday, July 12, 2016 at 12:16:27 PM UTC-6, Mike Rooney wrote:
>
> This need makes a lot of sense to us, where we have a couple related 
> sub-projects (as sub directories) in a single repository. It makes sense 
> that they each have their own pipeline jobs and can run on different 
> schedules. I've also seen cases similar to Alex's (hi Alex!) where there 
> are different tasks you want to do with a single repo that don't make sense 
> as one pipeline job that runs together (building/testing versus a nightly 
> cron-type task that runs in the repo).
>
> It is reasonable that a Jenkinsfile corresponds to a single Pipeline job, 
> because these are often associated with and run via a Pipeline job which 
> isn't a logical "parent" of these seed jobs. However, a great place for 
> this enhancement would be the Github Org / Bitbucket plugins that scan 
> repositories for Jenkinsfiles and are already in the place of creating 
> multiple Pipeline jobs.
>
> My proposal would be: add a configuration option for the Github and 
> Bitbucket plugins which scan organizations for Jenkinsfiles. So, "Project 
> Recognizers -> Pipeline Jenkinsfile" would get a box for this which 
> defaults to "Jenkinsfile". Some logical configuration examples might be, 
> "Jenkinsfiles/*", "**/Jenkinsfile", "Jenkinsfile-*". Then the 
> Github/Bitbucket plugins can be pointed at an org, or just one repository, 
> and multiple Jenkinsfiles can exist which define different Pipeline jobs.
>
> Bartłomiej and Alex, would something like this satisfy your use cases as 
> well?
>
> - Michael
>
> On Sunday, May 29, 2016 at 12:47:40 PM UTC-5, Bartłomiej Sacharski wrote:
>>
>> I'm really hyped about the Jenkinsfiles - they make it much much easier 
>> to document and preserve project configuration.
>> However, all the examples that I've seen seem to use single pipeline.
>> I've tried to define different stages in separate node blocks, however 
>> they still were seen as a single pipeline.
>>
>> Is it possible to define multiple pipelines in a single Jenkinsfile? Or 
>> maybe there's undocumented functionality for .jenkinsfile extension to 
>> handle such cases?
>>
>

-- 
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/a855fa87-29a9-46e5-9309-f0a0fff4e781%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multi-branch pipeline clone problem

2016-07-20 Thread Mark Waite
On Wed, Jul 20, 2016 at 1:35 PM Michal Medvecky  wrote:

> On Wed, Jul 20, 2016 at 9:11 PM, Mark Waite 
> wrote:
>
>> Since the stack trace includes a reference to JGit, you might try
>> switching your freestyle job that authenticates successfully from using the
>> default (command line git) implementation to instead use the jgit
>> implementation.  If the job doesn't authenticate using JGit, then it may
>> indicate some difference between JGit and command line git authentication.
>>
>
> Well I'm not aware of using jgit - system configuration only refers to
> default git, not jgit.
>

If you want to use JGit in your jobs (compared to the plugins, which can
use it any time), then you must click the "Git" button and use the "Add"
button in that section to add "JGit" as one of the allowed implementations
of git.


>
>> If the JGit implementation is not enabled in your system, you can enable
>> it from the "Manage Jenkins" link, and its "Configure System" link.  There
>> will be a "Git" button in that page, where you can add "JGit" as one of the
>> git implementations.
>>
>
> When I add jgit, nothing changes.
>
>
It is not enough to add jgit, you also need to change one or more of your
freestyle jobs that currently use the default (command line) git
implementation to use the jgit implementation.  That is a git
implementation selection ("Git executable") available in your job
definition page after you've enabled jgit.


> How do I force jenkins or the job NOT to use jgit?
>
> I've found this
> https://issues.jenkins-ci.org/browse/JENKINS-33983?jql=status%20%3D%20Open%20AND%20text%20~%20%22java.lang.IllegalStateException%3A%20Cannot%20%20session%2C%20connection%20is%20not%20authenticated.%22
> but I'm not sure if it's related.
>
> Michal
>
> --
> 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/CAB9OJeV92wjpywxNDKqEwxWmDATqtENH-Br7C2q7XPOwXKcnPQ%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/CAO49JtGS1doPiTQvM-zK2PZM_ozLzakodVO-L83P5TWyUetxfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multi-branch pipeline clone problem

2016-07-20 Thread Michal Medvecky
On Wed, Jul 20, 2016 at 9:11 PM, Mark Waite 
wrote:

> Since the stack trace includes a reference to JGit, you might try
> switching your freestyle job that authenticates successfully from using the
> default (command line git) implementation to instead use the jgit
> implementation.  If the job doesn't authenticate using JGit, then it may
> indicate some difference between JGit and command line git authentication.
>

Well I'm not aware of using jgit - system configuration only refers to
default git, not jgit.

>
> If the JGit implementation is not enabled in your system, you can enable
> it from the "Manage Jenkins" link, and its "Configure System" link.  There
> will be a "Git" button in that page, where you can add "JGit" as one of the
> git implementations.
>

When I add jgit, nothing changes.

How do I force jenkins or the job NOT to use jgit?

I've found this
https://issues.jenkins-ci.org/browse/JENKINS-33983?jql=status%20%3D%20Open%20AND%20text%20~%20%22java.lang.IllegalStateException%3A%20Cannot%20%20session%2C%20connection%20is%20not%20authenticated.%22
but I'm not sure if it's related.

Michal

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


Re: Multi-branch pipeline clone problem

2016-07-20 Thread Mark Waite
Since the stack trace includes a reference to JGit, you might try switching
your freestyle job that authenticates successfully from using the default
(command line git) implementation to instead use the jgit implementation.
If the job doesn't authenticate using JGit, then it may indicate some
difference between JGit and command line git authentication.

If the JGit implementation is not enabled in your system, you can enable it
from the "Manage Jenkins" link, and its "Configure System" link.  There
will be a "Git" button in that page, where you can add "JGit" as one of the
git implementations.

Mark Waite

On Wed, Jul 20, 2016 at 12:24 PM Michal Medvecky  wrote:

> Hello,
>
>
> I have set up a multi-branch pipeline job and trying to run Branch indexing. 
> It does not work, with this result:
>
>  Started by user jenkins 
> Setting origin to git@myserver:mycompany/myrepo.git
> Fetching origin...
> FATAL: Failed to recompute children of myrepohudson.plugins.git.GitException 
> :
>  org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
>   at 
> org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) 
> 
>   at 
> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174)
>  
> 
>   at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) 
> 
>   at 
> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
>  
> 
>   at 
> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
>  
> 
>   at 
> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
>  
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:98) 
> 
>   at hudson.model.Executor.run(Executor.java:410) 
> 
> Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException 
> :
>  Invalid remote: origin
>   at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136) 
> 
>   at 
> org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) 
> 
>   ... 7 more
> Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException 
> :
>  git@myserver:mycompany/myrepo.git: GitLab: The project you were looking for 
> could not be found.
>
>   at 
> org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound(TransportGitSsh.java:208)
>   at 
> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:288)
>   at 
> org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
>   at 
> org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
>   at 
> org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
>   at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
>   at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
>   ... 8 more
> Finished: FAILURE
>
>
> Repository of course exists and is perfectly clonable using jenkins 
> credentials.
>
>
> Any hints please?
>
>
> Jenkins 1.651.3  with latest plugins.
>
>
> Michal
>
> --
> 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/852cabf9-287b-4cae-aa6d-21974d77d7a0%40googlegroups.com
> 

Jenkins Fails To Start After Update

2016-07-20 Thread Shawn
Debian 8.5

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

Jenkins 2.14

After running apt-get update / upgrade and Jenkins is updated from 2.13 to
2.14 by the package, it failed to start.

I have also noticed this in previous 2.x upgrades as well. After I reboot
my system, it loads correctly.

sudo systemctl status jenkins.service
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins)
Active: failed (Result: exit-code) since Tue 2016-07-19 05:58:50 EDT; 41s
ago
Process: 2079 ExecStop=/etc/init.d/jenkins stop (code=exited,
status=0/SUCCESS )
Process: 2120 ExecStart=/etc/init.d/jenkins start (code=exited, status=7)

su[2135]: Successful su for jenkins by root
su[2135]: + ??? root:jenkins
su[2135]: pam_unix(su:session): session opened for u...0)
jenkins[2120]: Starting Jenkins Continuous Integrati...d!
systemd[1]: jenkins.service: control process exited,...=7
systemd[1]: Failed to start LSB: Start Jenkins at bo...e.
systemd[1]: Unit jenkins.service entered failed state.
JENKINS LOG:

Jul 19, 2016 5:52:32 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @546ms
Jul 19, 2016 5:52:32 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jul 19, 2016 5:52:33 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Jul 19, 2016 5:52:33 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find
org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /var/lib/jenkins found at:
EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@19fb8826
{/,file:/var/cache/jenkins/war/,AVAILABLE} {/var/cache/jenkins/war}

Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@3d484181
{HTTP/1.1} {0.0.0.0:8080}

Jul 19, 2016 5:52:34 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @2890ms
Jul 19, 2016 5:52:34 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Jul 19, 2016 5:52:34 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jul 19, 2016 5:52:35 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
#

   1. A fatal error has been detected by the Java Runtime Environment:
   #
   2. SIGSEGV (0xb) at pc=0x7f664e80ad1d, pid=1791, tid=140076942526208
   #
   3. JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build
   1.8.0_91-b14)
   4. Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode
   linux-amd64 compressed oops)
   5. Problematic frame:
   6. V [libjvm.so+0x56cd1d] PhaseIdealLoop::Dominators()+0x63d
   #
   7. Failed to write core dump. Core dumps have been disabled. To enable
   core dumping, try "ulimit -c unlimited" before starting Java again
   #
   8. An error report file with more information is saved as:
   9. /tmp/hs_err_pid1791.log
   #
   10. Compiler replay data is saved as:
   11. /tmp/replay_pid1791.log
   #
   12. If you would like to submit a bug report, please visit:
   13. http://bugreport.java.com/bugreport/crash.jsp
   #
   #
   14. A fatal error has been detected by the Java Runtime Environment:
   #
   15. SIGSEGV (0xb) at pc=0x7f8716c90fea, pid=2145, tid=140217335858944
   #
   16. JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build
   1.8.0_91-b14)
   17. Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode
   linux-amd64 compressed oops)
   18. Problematic frame:
   19. V [libjvm.so+0x962fea] Node::replace_by(Node*)+0x3a
   #
   20. Failed to write core dump. Core dumps have been disabled. To enable
   core dumping, try "ulimit -c unlimited" before starting Java again
   #
   21. An error report file with more information is saved as:
   22. /tmp/hs_err_pid2145.log
   #
   23. Compiler replay data is saved as:
   24. /tmp/replay_pid2145.log
   #
   25. If you would like to submit a bug report, please visit:
   26. http://bugreport.java.com/bugreport/crash.jsp
   #

Any ideas?

-- 
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/CAMo-54maP144LMWanwdP56UP9QcQjqc%2B%3DypoMPhE6g4RRqEbXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline Remote File Loader Plugin error `/develop@2/libLoader/`

2016-07-20 Thread Marco Pas
I am trying to use the Pipeline Remote File Loader Plugin and am facing an 
issue.

My current `jenkinsfile looks as follows:

```
node('docker-slave') {
stage 'Setup'
fileLoader.fromGit('build-snippet', 
'', 'develop', '', '')
}
```

The content of build-snippet:
```
stage 'Publish'
publishHTML(target: [
allowMissing: false, alwaysLinkToLastBuild: true,
keepAll: false, reportDir: 'build/apidocs',
reportFiles: 'index.html', reportName: 'API Documentation'
]
)
```

When running it i get an error `/develop@2/libLoader/build/apidocs` does 
not exist.. The `@2/libLoader/` is the problem when i paste in the code 
from the build-snippet into the jenkinsfile it works ok. Then the 
`@2/libLoader/` 
is not added to the path.

Any hints or suggestion what i am doing wrong?

-- 
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/d4c6adcf-6cb4-4bcf-9493-9d5e0f3badf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline - Avoiding repeating work if nodes execute on same build executor?

2016-07-20 Thread Martin d'Anjou
You could also try the external workspace manager plugin (alpha has been 
released):
https://jenkins.io/blog/2016/06/30/ewm-alpha-version/

Martin

-- 
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/e9331afe-7a1a-4cee-9771-5879f212ad2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multi-branch pipeline clone problem

2016-07-20 Thread Michal Medvecky


Hello,


I have set up a multi-branch pipeline job and trying to run Branch indexing. It 
does not work, with this result:

 Started by user jenkins 
Setting origin to git@myserver:mycompany/myrepo.git
Fetching origin...
FATAL: Failed to recompute children of myrepohudson.plugins.git.GitException 
:
 org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
at 
org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) 

at 
jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174)
 

at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) 

at 
jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294) 

at 
com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
 

at 
com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
 

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

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

Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException 
:
 Invalid remote: origin
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136) 

at 
org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) 

... 7 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException 
:
 git@myserver:mycompany/myrepo.git: GitLab: The project you were looking for 
could not be found.

at 
org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound(TransportGitSsh.java:208)
at 
org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:288)
at 
org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at 
org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at 
org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
... 8 more
Finished: FAILURE


Repository of course exists and is perfectly clonable using jenkins credentials.


Any hints please?


Jenkins 1.651.3  with latest plugins.


Michal

-- 
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/852cabf9-287b-4cae-aa6d-21974d77d7a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins config.xml

2016-07-20 Thread ran son
Hi

Im using the promotion plugin to promote deployment in my jenkins job but 
the same configuration isnt available in the job config.xml. Is this by 
design? Am i missing any setting? Why i cannot see the plugin configuration 
in the job config.xml?

-- 
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/037d408a-fb27-4c70-ab1a-6684ec7f806b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: workspace not getting cleared before or after build.

2016-07-20 Thread Mark Waite
It removes the workspace.  That is, it removes the git repository
(contained in the .git directory within the workspace) and the contents of
the parent of the .git directory (which is what I would call the
workspace).  It removes enough that it requires a clone and checkout as
part of the next run of that job.

Mark Waite

On Wed, Jul 20, 2016 at 9:15 AM Ashish Yadav 
wrote:

> Does the git "Wipe out repository & force clone” behavior only remove the
> repository or the entire workspace?
>
> From: Mark Waite 
> Reply-To: "jenkinsci-users@googlegroups.com" <
> jenkinsci-users@googlegroups.com>
> Date: Wednesday, July 20, 2016 at 8:44 AM
> To: Jenkins Users 
> Subject: Re: workspace not getting cleared before or after build.
>
> The git plugin has an "Additional Behaviour" called "Wipe out repository &
> force clone".  That is available if you're using git.
>
> The Workspace Cleanup Plugin offers before build and after build deletion
> of the workspace.  Maybe that plugin is not installed?
>
> Mark Waite
>
> On Wed, Jul 20, 2016 at 7:35 AM Ashish Yadav 
> wrote:
>
>> I am currently running Jenkins LTS v1.642.3 on CentOS 6. In my job
>> configs, I am NOT seeing any section or task to clean the workspace before
>> build or even as a Post-Build activity to clean workspace after build. Did
>> this feature get removed somehow?
>>
>>
>>
>> --
>> 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/D3B4E819.21FC2%25ashish.yadav%40firemon.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/CAO49JtHFSWxuO8F8cxTLQ652mx1TrNcqcFQTmxqGS4iJxMCHBg%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/D3B4FF9D.21FDA%25ashish.yadav%40firemon.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/CAO49JtFvGG%2BTjDtm6PWO22Wf5JM7h6EK1WXU%3D0pYUt9fCW-2AQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiple pipelines in Jenkinsfile

2016-07-20 Thread Eric Parton
I'm in the same boat you are. My organization keeps several projects within 
a single repository and it would be great to have the ability to give each 
of them their own Jenkinsfile and (multi-branch) pipeline.

On Tuesday, July 12, 2016 at 2:16:27 PM UTC-4, Mike Rooney wrote:
>
> This need makes a lot of sense to us, where we have a couple related 
> sub-projects (as sub directories) in a single repository. It makes sense 
> that they each have their own pipeline jobs and can run on different 
> schedules. I've also seen cases similar to Alex's (hi Alex!) where there 
> are different tasks you want to do with a single repo that don't make sense 
> as one pipeline job that runs together (building/testing versus a nightly 
> cron-type task that runs in the repo).
>
> It is reasonable that a Jenkinsfile corresponds to a single Pipeline job, 
> because these are often associated with and run via a Pipeline job which 
> isn't a logical "parent" of these seed jobs. However, a great place for 
> this enhancement would be the Github Org / Bitbucket plugins that scan 
> repositories for Jenkinsfiles and are already in the place of creating 
> multiple Pipeline jobs.
>
> My proposal would be: add a configuration option for the Github and 
> Bitbucket plugins which scan organizations for Jenkinsfiles. So, "Project 
> Recognizers -> Pipeline Jenkinsfile" would get a box for this which 
> defaults to "Jenkinsfile". Some logical configuration examples might be, 
> "Jenkinsfiles/*", "**/Jenkinsfile", "Jenkinsfile-*". Then the 
> Github/Bitbucket plugins can be pointed at an org, or just one repository, 
> and multiple Jenkinsfiles can exist which define different Pipeline jobs.
>
> Bartłomiej and Alex, would something like this satisfy your use cases as 
> well?
>
> - Michael
>
> On Sunday, May 29, 2016 at 12:47:40 PM UTC-5, Bartłomiej Sacharski wrote:
>>
>> I'm really hyped about the Jenkinsfiles - they make it much much easier 
>> to document and preserve project configuration.
>> However, all the examples that I've seen seem to use single pipeline.
>> I've tried to define different stages in separate node blocks, however 
>> they still were seen as a single pipeline.
>>
>> Is it possible to define multiple pipelines in a single Jenkinsfile? Or 
>> maybe there's undocumented functionality for .jenkinsfile extension to 
>> handle such cases?
>>
>

-- 
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/81db7b58-c109-4d7c-9b6d-0bd767057baf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to simplify creation/maintenance of builds that are comparable?

2016-07-20 Thread Marco Pas
We just took to step to move our CI environment to Jenkins 2. We see that 
we are creating the same build over and over. The jenkinsfile is great, but 
now we see that we need to repeat it in every project. At the end that 
becomes it maintenance nightmare..

We have multiple git projects that are equal in structure and need to be 
build in the same way.

Example:
gitrepo - App1 - Jenkinsfile (MultiBranchPipeline)
gitrepo - App2 - Jenkinsfile (MultiBranchPipeline)
gitrepo - App3 - Jenkinsfile (MultiBranchPipeline)


We are actually coping the same Jenkinsfile to these projects and if we 
need a change we need to adapt all of them. So this becomes a nightmare.

Is there a better way of organizing this and getting a repeatable way of 
doing things?

- Marco

-- 
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/ace83cef-7c94-4087-9556-d0f42f38da53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom message in jenkins-gerrit plugin

2016-07-20 Thread geoffroy . jabouley
I think you'll have to execute some gerrit commands within your build job 
to publish specific comment when posting the verified mark.


Le mercredi 20 juillet 2016 11:48:30 UTC+2, Berceanu Cristian a écrit :
>
> Hi,
>
> Currently the messages look like this:
>
> Patch Set 1: Verified+1
>
> Build Successful
>
> link_to_build
>
>
> What I'd like to accomplish is also post a dynamic date to the description:
>
> so if today is 20th of July, what I want to show is:
>
> Build Successful
>
> The builds are available until 20th of August(so add 30 days).
>
> link_to_build
>
>
>
> The fields don't support executing a bash script:
>
>
> 
>
>
>
> Any ideas?
> The bash script I'm trying to run is this one:
> $ date -d "+30 days"
>
> I tried $(date -d "+10 days") but I don't think those fields have the 
> option to execute bash scripts
>

-- 
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/6a958c8b-498a-4a84-b55e-6be97c579cd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch Pipeline or/and Github Organization ? How to get the best of all worlds ?

2016-07-20 Thread Antonio Muñiz
All that should be done by `github-organization-plugin` (and its
dependencies) out of the box. Nothing special required (other than
appropriated credentials configured).

On Wed, Jul 13, 2016 at 7:10 AM, Nat  wrote:

> Hi,
> Like many others in the group (judging by the amount of thread on that
> topic). I'm very interested in the features recently released with Jenkins
> 2. That said, I'm a bit lost with regards to what I'd like to see. The
> Multibranch pipeline and github organization are somewhat eye opening with
> regards to how the standard job make it confusing to know the state of each
> branch but I can't quite figure out how to do the following:
>
>1. I'd like for new branch or even better, new pull requests to be
>automatically tested through the jenkinsfile in the branches. I've seen
>reference of pull requests in the Github Organization but couldn't find out
>how to have that behaviour.
>2. Similarly when branches are deleted, I don't see them being deleted
>in jenkins.
>3. Github has that super cool API with statuses, which some plugins
>uses but how do I get my multibranch or pipeline / jenkinsfile to set a
>pending state while the pipeline runs and then, later, updated to success
>or failure ?
>
> Thanks,
> Nat
>
> --
> 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/24040847-b11d-4e69-9356-89d542d95889%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Antonio Muñiz
Software Engineer
CloudBees, Inc.

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


Re: [pipeline] publishHtml failed with file present

2016-07-20 Thread Antonio Muñiz
On Tue, Jul 12, 2016 at 8:08 PM, Jérôme Godbout  wrote:
> If I make my Jenkinsfile now, can I assume it will still work for any
> Jenkins 2.x version? Just to give myself an idea of the API stability at
> this point?


I believe so. Backward compatibility is taken very seriously by
Pipeline developers, it's broken only when there is no other option.

-- 
Antonio Muñiz
Software Engineer
CloudBees, Inc.

-- 
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/CAJc7kzR6gyT3wnfz8FPt%3D2kW08GAJ%3D8iVDa%2BPODQpwACtQpa1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: call a Jenkins plugin from a pipeline

2016-07-20 Thread Antonio Muñiz
On Wed, Jul 6, 2016 at 8:04 PM, Attila Vangel  wrote:
> CoberturaPublisher


`cobertura-plugin` is not compatible with Pipeline yet. It requires
some code fixes.

-- 
Antonio Muñiz
Software Engineer
CloudBees, Inc.

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


Re: A build can start before the last one has finished?

2016-07-20 Thread Antonio Muñiz
> This is an issue, because they're building in the same folders, which could 
> cause a right mess with compilation.

If two calls to `node` (from the same job) matching the same node are
done concurrently then two separated workspaces will be allocated, so
there is no risk.

> On the other hand, I can see the benefit in being able to start the 
> compilation stage of the next build once the previous one is in the testing 
> phase.

Use the `lock` step (from `lockable-resources-plugin`):

stage 'Build'
lock ('compile-env') {
  [...]
}
stage 'Test'
lock ('test-env') {
  [...]
}

This way only one build will be inside a `lock` block concurrently.

On Tue, Jul 5, 2016 at 5:09 PM, Jonathan Hodgson  wrote:
> Hi,
>
> I trigger builds of my pipeline project remotely using the /build page of
> the job (using a python script that sends various options as parameters)
>
> This is working fine, but I just noticed that I could launch a new build
> while the last one was still running, and rather than waiting for the
> previous build to finish, it started building immediately.
>
> This is an issue, because they're building in the same folders, which could
> cause a right mess with compilation.
>
> Have I missed something?
>
> On the other hand, I can see the benefit in being able to start the
> compilation stage of the next build once the previous one is in the testing
> phase.
>
> I would have thought this is a fairly normal thing to want to do?
>
> --
> 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/e5c534a7-5fec-4464-b65f-760430dbd385%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Antonio Muñiz
Software Engineer
CloudBees, Inc.

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


Re: [Need Help] How to invoke report plugin on Jenkins(PMD,PHPCPD,checkstyle,Jdepend and others) to jenkinsfile (pipeline)?

2016-07-20 Thread pandu siregar
please help

On Tuesday, July 19, 2016 at 10:51:28 AM UTC+7, pandu siregar wrote:
>
> Hi guys
>
> i'm working on jenkins 2.x using jenkinsfile .
> i have build a job using jenkinsfile and i need the script or code to 
> invoke the Analysis Collector Plugin to my jenkinsfile so i could get the 
> report. 
> 
> here my current jenkinsfile :
>
> #!groovy
>
> node {
>  // Mark the code checkout 'stage'
> //  stage 'Stage Checkout'
>
>   // Checkout code from repository and update any submodules
> //  checkout scm
> //sh 'git submodule update --init' 
>
>  stage 'Build '
>
>  echo "My branch is: ${env.BRANCH_NAME}"
>
> sh 'cd gitlist-PHP && ./gradlew clean build'
>
> stage 'Report'
>  step([$class: 'JUnitResultArchiver', testResults: 
> 'gitlist-PHP/build/logs/junit.xml'])
>
> }
>
>
> thanks four your convenience. 
>
> regard 
> pandu siregar
>
>

-- 
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/ca4b3e9d-d5b6-4953-82bf-caf0528d3f6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


invalid IPv6 address when testing connection on Publish Over FTP plugin

2016-07-20 Thread Louis
Hi guys,

I've just installed the Publish Over FTP plugin and when I try to connect, 
I get the following error.



















I have no issues connecting with the same settings using Filezilla on the 
Jenkins machine. 

-- 
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/eded961e-58be-4111-abe4-435cac1c7513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Environment

2016-07-20 Thread Oparlescu Vlad



Hello to everyone,

Is there any method that I can retrieve the Build Environment settings in a 
groovy script ? 
For example *I want to find out for every job that I have if "manage 
exclusion" is ticked ot not* : 





Any advice is welcome :)
Many thanks!


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


Regex issue in Branch Specifier using Bitbucket Pull Requests Builder

2016-07-20 Thread Francisca Munhoz
Hi guys,

I'm using Bitbucket Pull Requests Builder plugin to build my a pull request 
and reports back to bitbucket, that part works fine.

I have 2 jobs for the same repo, the first job builds the pull request 
which the branch is something like red-123... and the other job builds and 
merges and triggers and downstream job if the first job (pr) is built by 
Jenkins and approved in bitbucket.

 On the *1st* job I have a regex to match anything except dev branch:
Branch Specifier (blank for 'any') 
*: ^(?!.*dev).*$*On the *2nd* job I have:
Branch Specifier (blank for 'any')=  *dev*

Once my 1st job was built successfully and reported back in bitbucket, I 
approve the pr, and then the 2nd job gets triggered as I expected and also 
the 1st job again :( I didn't expected that.

I believe my regex is not working, how can avoid to build the *dev* branch 
or try to *match red-123 *on my 1st job? I have tried so many regex 
combination that actually works on http://rubular.com/ but not in Branch 
Specifier, so I would really appreciate some help here.

Thanks in advance!
Francisca

-- 
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/92ff89f8-a67b-4cb3-9790-17fadc2ddcd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ERROR: java.io.IOException: Failed to install ZAP_2.5.0_Linux.tar.gz

2016-07-20 Thread Prakhash Sivakumar
Hi all,

I'm using Jenkins 1.626, When I try to install ZAP by pointing the 
repository URL in the zaproxy plugin I'm getting the following error

Unpacking 
http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
 to 
/build/jenkins-home/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAP_2.5.0
 on Jenkins
ERROR: java.io.IOException: Failed to install 
http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
 to 
/build/jenkins-home/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAP_2.5.0
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:833)
at 
hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:79)
at 
hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
at 
hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
at 
com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:154)
at 
com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:59)
at 
fr.novia.zaproxyplugin.ZAProxy.retrieveZapHomeWithToolInstall(ZAProxy.java:739)
at fr.novia.zaproxyplugin.ZAProxy.checkParams(ZAProxy.java:797)
at fr.novia.zaproxyplugin.ZAProxy.startZAP(ZAProxy.java:856)
at 
fr.novia.zaproxyplugin.ZAProxyBuilder.perform(ZAProxyBuilder.java:189)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:905)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:856)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:525)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Caused by: java.io.IOException: Failed to unpack 
http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
 (0 bytes read of total 0)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:827)
... 19 more
Caused by: java.io.IOException: Failed to extract input stream
at hudson.FilePath.readFromTar(FilePath.java:2299)
at hudson.FilePath.access$400(FilePath.java:191)
at hudson.FilePath$10.invoke(FilePath.java:721)
at hudson.FilePath$10.invoke(FilePath.java:719)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at hudson.FilePath.untarFrom(FilePath.java:719)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:825)
... 19 more
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at 
com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
at 
com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257)
at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223)
at 
hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228)
at hudson.FilePath.readFromTar(FilePath.java:2276)
... 26 more



How to resolve this issue


Thanks

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