Re: jenkins parallel streams with local files?

2017-12-22 Thread Mark Waite
The "stash" step stores files from a workspace.  The "unstash" step
retrieves previously stored stashes.

Mark Waite

On Fri, Dec 22, 2017 at 5:16 PM red 888  wrote:

> My parallel steps need access to a local file in the workspace of the job.
> But it seems they can access it?
>
> I tried listing the workspace in each stream:
>
>
> powershell "ls ${workspace}"
>
>
> they are all empty! Each stream has its own workspace and the output of
> each stream ls C:\workspace\branch_name@ shows no files.
>
> How they get access to the main workspace? they're pretty much useless to
> me if they can't even access local files.
>
>
> I understand this could create a race condition, is there at least a
> feature to copy files from the main workspace to the stream workspaces?
>
> --
> 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/6ecc868e-4493-4056-9938-152b45b79f8d%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/CAO49JtHA5fUhyPF11hOdAn2zeLzcKNuCpExF3oQmLPGVeMxFJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


jenkins parallel streams with local files?

2017-12-22 Thread red 888


My parallel steps need access to a local file in the workspace of the job. 
But it seems they can access it?

I tried listing the workspace in each stream:


powershell "ls ${workspace}"


they are all empty! Each stream has its own workspace and the output of 
each stream ls C:\workspace\branch_name@ shows no files.

How they get access to the main workspace? they're pretty much useless to 
me if they can't even access local files.


I understand this could create a race condition, is there at least a 
feature to copy files from the main workspace to the stream workspaces?

-- 
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/6ecc868e-4493-4056-9938-152b45b79f8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Pipeline - build job step, ability to return build job number

2017-12-22 Thread Kai
Hi,

We are using Jenkins Pipeline - build job step and wanted the ability to 
return build job number so that we can use the build job # in the next step.

e.g.
buildJobNumber=build job: 'my-test-job', parameters: [string(name: 
'environment', value: 'QA')], quietPeriod: 10

Then be able to use buildJobNumber in the next stage.

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/6447f75c-8853-4295-bfa7-cb92c2e87812%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Idea for plugin. Quotation for Jira comments

2017-12-22 Thread Константин Валерьевич
Hi!

I have an idea to create plugin to put quatations to comments what Jenkins 
adds in Jira tasks after build complete. There isn't such plugin in Jenkins 
repo.

Basic features i want to add:

   - Create new build step what will extcract quote to jenkins variable. I 
   will use it further on Jira steps.
   - Step configuration should allow:
  - to select a csv file (language;quatation;author)
  - enter a language what will exctracted from file
  - enter probability value of quatation extraction.
   - Optionally i want to add opportunity to use quatations from 
   www.brainyquote.com or similar (with reusing some code from daily-quote 
   plugin).

What do you think about this idea? That can you advise for newbie in plugin 
development?

Best regard,
Konstantin.

-- 
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/bc22b047-6d8b-4c52-b5cf-da23b60aa296%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: maven build fails with message ERROR: Aborted Maven execution for InterruptedIOException java.net.SocketTimeoutException: Accept timed out

2017-12-22 Thread Jean Larach
Hello Stelios,

I also have this issue. It randomly happens on a Windows 10 VM that I have 
with Jenkins 2.63. Were you able to fix this issue?

On Thursday, December 22, 2016 at 5:09:32 AM UTC-5, steliosP wrote:

> Hello all, I am running a Jenkins server version 2.36, and intermittently, 
> I am getting these failures when building a maven project:
> I searched around, there are many experiencing this problem, but no one 
> really knows what is causing it. Any ideas?  
> The error is the following:
>
> ERROR: Aborted Maven execution for 
> InterruptedIOExceptionjava.net.SocketTimeoutException 
> :
>  Accept timed out
>   at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
>   at java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)
>   at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
>   at java.net.PlainSocketImpl.accept(Unknown Source)
>   at java.net.ServerSocket.implAccept(Unknown Source)
>   at java.net.ServerSocket.accept(Unknown Source)
>   at 
> hudson.maven.AbstractMavenProcessFactory$SocketHandler$AcceptorImpl.accept(AbstractMavenProcessFactory.java:213)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
>   at 
> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:320)
>   at 
> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:295)
>   at 
> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:254)
>   at hudson.remoting.UserRequest.perform(UserRequest.java:121)
>   at hudson.remoting.UserRequest.perform(UserRequest.java:49)
>   at hudson.remoting.Request$2.run(Request.java:324)
>   at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
>   at java.util.concurrent.FutureTask.run(Unknown Source)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>   at hudson.remoting.Engine$1$1.run(Engine.java:63)
>   at java.lang.Thread.run(Unknown Source)
>   at ..remote call to Channel to /10.0.9.100(Native Method)
>   at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1537)
>   at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
>   at hudson.remoting.Channel.call(Channel.java:822)
>   at 
> hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:256)
>   at hudson.maven.$Proxy66.accept(Unknown Source)
>   at 
> hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:282)
>   at hudson.maven.ProcessCache.get(ProcessCache.java:236)
>   at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:798)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
>   at hudson.model.Run.execute(Run.java:1729)
>   at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
>   at hudson.model.ResourceController.execute(ResourceController.java:98) 
>
> at hudson.model.Executor.run(Executor.java:404)
>
>

-- 
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/0370485a-a424-44a6-87f1-130583196539%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [multibranch] [bitbucket] Code push tells Jenkins, Jenkins doesn't build anything

2017-12-22 Thread James Green
Solved!

We had been using the "BitBucket Plugin" to receive the web hook
notifications from BitBucket.org and expected this to continue to work.

https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#bitbucket
mentions Web Hook Registration yet we saw no such option (else this may
have provided a hint).

Then we found a Q&A describing the issue and declaring the URL in here:
https://support.cloudbees.com/hc/en-us/articles/11553051-How-to-Trigger-Multibranch-Jobs-from-BitBucket-Server-

If only the first article had that URL... If only the job creation screen
mentioned the need for a new web hook... Oh well!

James


On 22 December 2017 at 09:27, James Green  wrote:

> I've just converted a Pipeline job that built every time a change was
> pushed into BitBucket to the equivalent as a multibranch project.
>
> Trouble is, pushes no longer trigger builds. BitBucket is still getting a
> 200 OK from the webhook when it hits Jenkins, but nothing else happens.
>
> On inspection, the multibranch project created a `master` child job which
> has an option "Build when a change is pushed to BitBucket" but this is NOT
> checked, and the child job lacks any save button with which to change
> things. When I created the project the master branch built just fine first
> time.
>
> This appears to be a bug but I might expect more complaints when I search
> for it. I wonder if it is some requirement of the user that connects to
> BitBucket - like it doesn't have sufficient rights for something not
> involving cloning?
>
> Thoughts?
>
> James
>
>

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


[multibranch] [bitbucket] Code push tells Jenkins, Jenkins doesn't build anything

2017-12-22 Thread James Green
I've just converted a Pipeline job that built every time a change was
pushed into BitBucket to the equivalent as a multibranch project.

Trouble is, pushes no longer trigger builds. BitBucket is still getting a
200 OK from the webhook when it hits Jenkins, but nothing else happens.

On inspection, the multibranch project created a `master` child job which
has an option "Build when a change is pushed to BitBucket" but this is NOT
checked, and the child job lacks any save button with which to change
things. When I created the project the master branch built just fine first
time.

This appears to be a bug but I might expect more complaints when I search
for it. I wonder if it is some requirement of the user that connects to
BitBucket - like it doesn't have sufficient rights for something not
involving cloning?

Thoughts?

James

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