Getting "java.io.NotSerializableException" exception in Jenkins pipeline, groovy.

2016-11-13 Thread Ganesh Kumbhar
Hello All,

I am new to Jenkins pipeline and recently started to use it for my project 
build.

So, from Jenkins file I am calling a method from other .groovy file which 
is simple script having some functions defined and in those functions I am 
creating antbuilder object -> "@Field AntBuilder antBuilder = new 
AntBuilder()"
But the problem is, I am not able to call any ant targets using antbuilder 
object, simply calling echo using this object like -> " antBuilder.echo 'print 
statement' "  gives *"NotSerializableException"*exception.

java.io.NotSerializableException: org.apache.tools.ant.taskdefs.Echo

at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)


So please guide me to resolve this problem if anyone had faced this issue 
or have any idea about it.
Any help is appreciated!
Thank you very much!
Ganesh K.

-- 
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/2e399b89-bed9-4ac1-9bfb-fac710d7a39c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: There are dependency errors loading some plugins: Jenkow Activiti Explorer v0.3.1 and Jenkow Activiti Designer v0.3.1

2016-11-13 Thread Rainer Enders
Thank you very much. Problem solved.



On 11/13/16, 3:05 PM, "Daniel Beck"  wrote:

>
>> On 13.11.2016, at 21:31, Rainer Enders 
>>wrote:
>> 
>> I
>> searched all the plugins and there is nothing in either the Installed
>>nor
>> the Available section that contains the name "Jenkow" in any shape or
>> form. 
>
>Plugins that fail to load don't show up there, because they neither can
>be loaded, nor are disabled.
>
>You'll find them in JENKINS_HOME/plugins.
>
>-- 
>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/RlCXIGgnieM/unsubscribe.
>To unsubscribe from this group and all its topics, 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/B1D71259-58AC-4331-91A4-
>4181ED5340E8%40beckweb.net.
>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/D44E7888.6C91D%25rainer%40keepersecurity.com.
For more options, visit https://groups.google.com/d/optout.


usage of log4j in jenkins plugin

2016-11-13 Thread touseef
i want to use the log 4j for logging in my jenkins plugins.However my 
plugin is unable to find the properties file even when i placeit in 
resource folder of plugin.
However when i do it using simple java program it creates log file as 
expected.

Following is the content of properties file

# Root logger option
log4j.rootLogger=INFO, file

# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender



log4j.appender.file.File=C:\\logigng.log   
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fe7d306f-4c24-4349-8512-c87a5a2e2dce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: There are dependency errors loading some plugins: Jenkow Activiti Explorer v0.3.1 and Jenkow Activiti Designer v0.3.1

2016-11-13 Thread Daniel Beck

> On 13.11.2016, at 21:31, Rainer Enders  wrote:
> 
> I
> searched all the plugins and there is nothing in either the Installed nor
> the Available section that contains the name "Jenkow" in any shape or
> form. 

Plugins that fail to load don't show up there, because they neither can be 
loaded, nor are disabled.

You'll find them in JENKINS_HOME/plugins.

-- 
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/B1D71259-58AC-4331-91A4-4181ED5340E8%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


cobertura / jenkins failing to publish non-zero code coverage graphs

2016-11-13 Thread Stuart Cracraft
Cobertura xml report pattern in post-build actions in Jenkins build job:

  **/target/site/cobertura/coverage.xml

results in Code Coverage Report of 0/2 for packages, 0/7 for files, 0/7 for 
classes, 0/55 for methods, 0/164 for lines and 0/70 for conditionals.

This is from the book "Jenkins: The Definitive Guide" pages 34-40.

In Invoke top-level Maven targets, Maven Version is 3.3.9 and goals are 

  cobetura:cobetura -Dcobertura.report.format=xml

Tried it both with and without the -D.=xml

Has something changed between the publication/review date of the book and 
the current Jenkins/Cobetura which would cause the above?

/var/lib/jenkins/workspace/gameoflife-default/gameoflife-core/target/cobertura/cobertura.ser
 
is being generated every 30 minutes.

-- 
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/1f1244c0-870f-4e3b-a8ba-e1a1b405d46c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pipeline groovy - can somebody please explain why variable value passing is working like this?

2016-11-13 Thread Jonathan Hodgson
Ok, so having got my script working, I decided to move part of it into a 
shared library as per the section marked Define more structured DSL
here 

https://github.com/jenkinsci/workflow-cps-global-lib-plugin

But I'm getting what to me seems like very odd behaviour with the variables.

My primary jenkins code (on the server in the job configuration, not a 
jenkinsfile in this case), looks like this (after cutting it down to the 
minimum to test this phenomemon)

@Library('mylibrary')


echo buildparam_project.getClass().name
echo buildparam_project
def check = buildparam_project

utils = new gforce.utigforce.patchreader()


WpfCheckoutAndBuild {
project = "${check} Project is ${buildparam_project}"
}

buildparam_project is a build parameter

meanwhile, the file vars/WpfCheckoutAndBuild.groovy looks like this

def call(body) {
// evaluate the body block, and collect configuration into the object
def buildparam = [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = buildparam
body()


echo buildparam.project
}


The output I see, is

[Pipeline] echo java.lang.String 
[Pipeline] echo MyProject 
[Pipeline] echo MyProject Project is null 
[Pipeline] End of Pipeline Finished: SUCCESS

So buildparam_project can't be passed directly, I have to assign it to another 
variable first?


I assume this is something going on under the hood that I don't know about, 
Groovy can be very odd and Groovy under CPS considerably more so.


Could somebody explain it, and ideally give me a solution that doesn't require 
me to create copies of every build parameter (I'll do it if I have to, but it's 
messy)?

-- 
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/986a6368-c690-4751-a06a-2d5e2dffb4a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Copy files from remote Jenkins workspace

2016-11-13 Thread Baptiste Mathus
Look for pipeline jobs. Might be far easier to achieve that.

https://jenkins.io/pipeline/getting-started-pipelines/

2016-11-13 11:23 GMT+01:00 buddy123 :

>
> down votefavorite
> 
>
> Im trying to create a cross-compilation job, that will build my code for
> both Windows & Linux. I have set up Windows & Linux jenkins nodes, and
> configured two jobs, one with 'windows' label to run on my Windows machine
> and the other with 'linux' label to run on my linux machine. I installed
> MultiJob plugin, and wrapped both jobs to run in parallel When both
> finishes successfully, I want to copy all the generated files and do
> operations on them In other words I want to copy the files from both jobs
> remote workspaces for further operations Can anyone suggest a way how to do
> it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/05639dc0-fce6-4ce7-9cc1-c39e95ca7498%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/CANWgJS6i%3DXazsb%3DzYyQ_21PXnJSQN5gNpBmJJycUZrOnwZXTaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins fails to restart

2016-11-13 Thread Baptiste Mathus
You're probably going to have to kill it manually. But also have a look at
the logs as to why it didn't stop.

Also, you most probably do NOT want to use a weekly release. Better use an
LTS for stability, and documented upgrade path (see
https://wiki.jenkins-ci.org/display/JENKINS/Removing+and+disabling+plugins).

LTS is the Long Term Support release line, more here:
https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line

2016-11-12 19:17 GMT+01:00 Josh Santangelo :

> Whenever I upgrade Jenkins or plugins and attempt to restart, it fails. I
> believe what's happening is it's not cleanly releasing its port when it
> shuts down, so it's already taken when it comes back up.
>
> Caused by: java.net.BindException: Address already in use: bind
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Unknown Source)
> at sun.nio.ch.Net.bind(Unknown Source)
> at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
> at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
> at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
> at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(
> AbstractNetworkConnector.java:80)
> at org.eclipse.jetty.server.ServerConnector.doStart(
> ServerConnector.java:236)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
> at org.eclipse.jetty.server.Server.doStart(Server.java:366)
> at org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
> at winstone.Launcher.(Launcher.java:152)
> ... 7 more
>
>
> This is Jenkins 2.3 running as a service under Windows 7.
>
> --
> 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/3636d81e-dbab-4cd2-85ac-50e35ac39838%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/CANWgJS612NX1Uigi98UE0%3DaBT6gXqFWHVOtHqCFP4eyVUHxFwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to solve

2016-11-13 Thread Baptiste Mathus
https://wiki.jenkins-ci.org/display/JENKINS/Removing+and+disabling+plugins

2016-11-11 16:51 GMT+01:00 Michael Giroux :

> We upgraded from Jenkins 1.609.3 to Jenkins 2.19.2 LTS.  Upgrade went very
> well, but we are seeing some plugin warnings on the "Manage Plugins" page
> (see below).  The errors are all related to CloudBees plugins.  There is a
> link to "correct" the problem, but that takes us to the plugin updates
> page, and none of these plugins appear.  Nor do they appear in the
> "installed" tab.
>
> We had CloudBees installed a few years ago, but reverted to Jenkins LTS.
> We were not seeing these errors in the 1.609.3 Manage Plugins page, so it
> has probably been an issue since we uninstalled CloudBees.
>
> QUESTION: How do we eliminate these errors?  Is it safe to delete the
> plugins from the $JENKINS_HOME/plugins directory?  My thought is:
>
> cd $JENKINS_HOME/plugins
> rm -rf skip-plugin skip-plugin.jpi
>
> and repeat for each plugin.
>
> Is there a better approach?
>
> There are dependency errors loading some plugins:
>
>- CloudBees Skip Next Build Plugin v3.4
>   - Jenkins Enterprise License Entitlement Check v3.1 failed to load.
>   Fix this plugin first.
>- CloudBees VMWare Autoscaling Plugin v3.10
>   - Jenkins Enterprise License Entitlement Check v3.1.3 failed to
>   load. Fix this plugin first.
>- CloudBees WikiText Security Plugin v3.2
>   - cloudbees-license v3.1 is missing. To fix, install v3.1 or later.
>   - Jenkins Enterprise License Entitlement Check v3.1 failed to load.
>   Fix this plugin first.
>- CloudBees Role-Based Access Control Plugin v4.5.1
>   - Jenkins Enterprise License Entitlement Check v5.1 failed to load.
>   Fix this plugin first.
>- CloudBees Git Validated Merge Plugin v3.12
>   - Jenkins Enterprise License Entitlement Check v4.0 failed to load.
>   Fix this plugin first.
>- Jenkins Enterprise License Entitlement Check v5.2
>   - cloudbees-license v5.2 is missing. To fix, install v5.2 or later.
>- CloudBees Back-up Plugin v3.5
>   - Jenkins Enterprise License Entitlement Check v3.1.2 failed to
>   load. Fix this plugin first.
>
>
>
> --
> 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/e3ee73d7-1ba9-438d-81de-0aa1463d34f9%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/CANWgJS4Rw%2B_h_GXK8203MbZZZxPBfgKHbe5PE6DfRsL67cnm_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: "more SCM polling activities scheduled than handled..."

2016-11-13 Thread Baptiste Mathus
Hi,

The ideal target you should actually strive for is to "kill polling", and
use push instead, as explained in
http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/

If you really really cannot consider that, then in your place I would maybe
try and mimic what Jenkins is supposedly doing: on your machine, write a
script that clones repo, or updates it every minute (or something similar
with what you put in Jenkins), during say an hour, or a day. Goal being to
have data about connectivity.

Maybe it's just bitbucket.org that's inconsistent, and sometimes never
answers. Or maybe not. IMO that's the first thing you want to look at.

For example, looking at https://status.bitbucket.org/ I see issues around
the date of your message, was your issue that day or something that's been
consistently problematic across weeks?

-- Baptiste

2016-11-10 22:30 GMT+01:00 Josh Santangelo :

> Hi all -- I'm seeing the "There are more SCM polling activities scheduled
> than handled, so the threads are not keeping up with the demands" error
> consistently on my Jenkins setup (2.3, running as a Windows service).
>
> Going to my http://jenkins/descriptor/hudson.triggers.SCMTrigger/ page
> does show jobs hanging for hours at a time, but always different jobs.
>
> I currently have 14 jobs enabled which are polling git repos on
> BitBucket.org (I had more, but I disabled a bunch trying to troubleshoot
> this issue).
>
> On the "Manage Jenkins" page I set "Max # of concurrent polling" to empty,
> which seems to mean an unlimited number of threads, but the issue remains.
>
> Is there anything else I should look at?
>
> thanks,
> -josh
>
> --
> 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/03919522-cec0-43e7-8c9f-ed102234a3a6%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/CANWgJS5CACK9LYB7D63r-S9J49RtiVXEhk6GPRveHiaDgAbKCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exe runs very slow under Jenkins compared to running directly

2016-11-13 Thread Baptiste Mathus
You probably want to understand what is happening during the execution. For
that purpose, you want a thread dump of the running JVM:
https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump

HTH

2016-11-10 19:51 GMT+01:00 J Starbird :

> No it doesn't write very much to stdout. Basically it just writes out what
> the params were that were passed into it and then it writes out a short
> progress tag, so like "Doing step 1" but it all only amounts to about 5
> lines of text, short lines.
>
>
>
> On Thursday, November 10, 2016 at 10:35:12 AM UTC-8, Daniel Beck wrote:
>>
>> Is it writing large amounts of text to stdout? I.e. the Jenkins build
>> log? If so, is it still slow when redirecting output to a file, or NUL?
>>
>> > On 10.11.2016, at 19:30, J Starbird  wrote:
>> >
>> > Jenkins 2.19.1
>> > Java 8
>> > Windows 7 Pro Sp1
>> >
>> > I don't know exactly when this started happening, at which upgrade of
>> Jenkins it was just before moving to 2.x, but at some point an exe we use
>> for special tests started running much slower. It went from running in 2hrs
>> to taking over 6hrs.
>> > Nothing in the exe was changed, the only changes were to Jenkins and
>> upgrading to Java 8.
>> >
>> > There are no errors reported anywhere, it simply just takes that much
>> longer and ONLY when run under Jenkins. When I run this exe with the exact
>> same params and on the exact same system it runs fine and back at it's
>> normal length of time.
>> >
>> > When monitoring the system it appears the exe is doing some IO at the
>> time but under Jenkins it's just extremely slow at doing it.
>> >
>> > I've gone from running the exe from and MSBuild project to running it
>> directly as a Windows EXE and also using the Windows Batch, in every case
>> it runs the same slow speed.
>> >
>> > I've discussed it with other developers here and no one has any ideas
>> so I'm now asking all of you, anyone have any ideas?
>> >
>> > The system has 16Gb of ram, 8 assigned to Jenkins, it has plenty of
>> disk space and it has 4 cores.  Nothing else is running on the system at
>> the time, just Jenkins and the EXE. Antivirus is disabled, UAC is disabled,
>> the user Jenkins runs as is full Admin on the system.
>> >
>> >
>> > Any help would be appreciated. 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-use...@googlegroups.com.
>> > To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-users/37030984-def4-495a-ac57-e76e34242fd4%
>> 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/8544807e-1ffc-40f3-8236-8d35723086aa%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/CANWgJS6hcKG%3Dw1am6FEN%3DTZkXYAJqUcf5p9Sj0EFjGCkKS7_Sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Suspicious sources placed by Jenkins to /tmp

2016-11-13 Thread Baptiste Mathus
Might be better that the plugin (?) cleans this up. But I'm not sure that's
a security issue: it's already on machine(s) where anyway that source code
constantly comes and goes on the disk. So?

Le 9 nov. 2016 9:11 AM, "Jozef Babjak"  a écrit :

> Hello!
>
> My Jenkins is creating random (UUID-named) directories under /tmp
> directory. Each such directory contains C source codes of libjpeg-turbo, or
> at least something which look so. From security point of view it seems to
> me very suspicious, if such program like Java-based Jenkins is storing C
> sources.
>
> Is this anything which is expected?
>
> Some interesting environment settings follow below.
>
> Jozef
>
> 
>
> OS: Red Hat Enterprise Linux Server release 7.1 (Maipo)
> Jenkins: 2.19.2
> Java: Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
>
> installed plugins:
>
> ace-editor 1.1
> active-directory 2.0
> analysis-core 1.79
> ant 1.4
> antisamy-markup-formatter 1.5
> bouncycastle-api 2.16.0
> branch-api 1.11.1
> build-timeout 1.17.1
> checkstyle 3.46
> cloudbees-folder 5.13
> credentials 2.1.8
> dashboard-view 2.9.10
> display-url-api 0.5
> durable-task 1.12
> email-ext 2.52
> emailext-template 1.0
> external-monitor-job 1.6
> git 3.0.0
> git-client 2.1.0
> git-server 1.7
> gradle 1.25
> handlebars 1.1.1
> icon-shim 2.0.3
> javadoc 1.4
> jquery-detached 1.2.1
> junit 1.19
> ldap 1.13
> mailer 1.18
> matrix-auth 1.4
> matrix-project 1.7.1
> maven-plugin 2.14
> momentjs 1.1.1
> pam-auth 1.3
> pipeline-build-step 2.3
> pipeline-graph-analysis 1.2
> pipeline-input-step 2.3
> pipeline-milestone-step 1.1
> pipeline-rest-api 2.2
> pipeline-stage-step 2.2
> pipeline-stage-view 2.2
> resource-disposer 0.3
> role-strategy 2.3.2
> scm-api 1.3
> script-security 1.24
> ssh-credentials 1.12
> structs 1.5
> timestamper 1.8.7
> token-macro 2.0
> windows-slaves 1.2
> workflow-aggregator 2.4
> workflow-api 2.5
> workflow-basic-steps 2.3
> workflow-cps 2.22
> workflow-cps-global-lib 2.4
> workflow-durable-task-step 2.5
> workflow-job 2.8
> workflow-multibranch 2.9
> workflow-scm-step 2.2
> workflow-step-api 2.5
> workflow-support 2.10
> ws-cleanup 0.32
>
> --
> 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/2420e301-ee95-4c5a-b080-290b73957658%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/CANWgJS6Z_OamK36in_qTo3W8dMkkcwy%3D963N6oEHOENRkHJ2XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Copy files from remote Jenkins workspace

2016-11-13 Thread buddy123

down votefavorite 


Im trying to create a cross-compilation job, that will build my code for 
both Windows & Linux. I have set up Windows & Linux jenkins nodes, and 
configured two jobs, one with 'windows' label to run on my Windows machine 
and the other with 'linux' label to run on my linux machine. I installed 
MultiJob plugin, and wrapped both jobs to run in parallel When both 
finishes successfully, I want to copy all the generated files and do 
operations on them In other words I want to copy the files from both jobs 
remote workspaces for further operations Can anyone suggest a way how to do 
it?

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


Re: Coded pipeline - auto job creation (webhook) ???

2016-11-13 Thread Baptiste Mathus
https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin ?

2016-11-10 13:35 GMT+01:00 :

> Hi Greg,
>
> interesting, but it's not on GitHub. Also same plugin would be available
> for Bitbucket ... Jenkinsfile is probably not enough.
> We also would like to have a parametrized build. As an example we would
> like to run the pipeline for latest as well as for a feature branch.
> But I will have a look, thanks.
>
> Best Regards,
> Thomas
>
> On Wednesday, November 9, 2016 at 12:13:44 PM UTC+1, Grégory Lureau wrote:
>>
>> Hi Thomas,
>>
>> If you're using github, maybe that could help you?
>> https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Orga
>> nization+Folder+Plugin
>> It's basically checking all repos in your github organization, and if
>> they match some requirements (your regexp + have a Jenkinsfile), it will
>> create all jobs.
>> I read there is similar tool for Bitbucket but never tried.
>>
>> Best Regards,
>> Greg
>>
>> Le mardi 8 novembre 2016 11:07:48 UTC+1, thomas@teamaol.com a écrit :
>>>
>>> Hi,
>>>
>>> We have a coded pipeline and using webhooks in our Git system.
>>> The *existing* Jenkins pipeline job is executed on a change.
>>> Fine.
>>>
>>> As already mentioned this works only when the job does exist.
>>> *Is there a way to organize that a Jenkins job gets automatically
>>> created?*
>>>
>>> It would be great if we could implement something like: "asking the
>>> concrete repository what to do"
>>> I could imagine that I need to store a job.xml in my repository ...
>>> *Any ideas?*
>>>
>>> Regards,
>>> Thomas
>>>
>> --
> 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/b3aed3e6-e383-4f8a-808b-d5e248211719%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/CANWgJS5hZDAZyUvcEM88Stj2ibe%3DiZTijC2F4ZrRrf%3D9u1vnhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.