Re: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

2016-05-12 Thread Daniel Hiller
I've added 
`-Dhudson.model.ParametersAction.safeParameters=MVN_RELEASE_VERSION,MVN_DEV_VERSION,MVN_ISDRYRUN`
 
to the variable `JENKINS_JAVA_OPTIONS` in config file 
/etc/sysconfig/jenkins, that fixed it.

Thanks for your help!

Am Donnerstag, 12. Mai 2016 17:29:48 UTC+2 schrieb matthew...@diamond.ac.uk:
>
> Set `-Dhudson.model.ParametersAction.keepUndefinedParameters`=true to 
> allow undefined parameters to be injected as environment variables or 
> `-Dhudson.model.ParametersAction.safeParameters=[comma-separated list]` to 
> whitelist specific parameter names, even though it represents a security 
> breach
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Daniel Hiller
> *Sent:* 12 May 2016 16:28
> *To:* Jenkins Users
> *Subject:* Re: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2
>
>  
>
> Hi again,
>
> just found this JIRA issue: 
> https://issues.jenkins-ci.org/browse/JENKINS-12128
>
> There it is clearly stated that these variables are exposed. Now I don't 
> understand what I have to change to be able to access them again?
>
> Regards,
> Daniel
>
> Am Donnerstag, 12. Mai 2016 17:21:48 UTC+2 schrieb Daniel Hiller:
>
> Hi all,
>
> I've made the step to upgrading our jenkins server from 1632 to 
> 2.3.whatever (hooray!) and everything seems to work fine except one thing:
>
> looks like environment variable $MVN_RELEASE_VERSION is not set during the 
> build when using the M2 release plugin. I don't know how or why it was set 
> (didn't find any documentation about that) but what I know is that it used 
> to work in 1.632 (we relied on this magic setting where we found the 
> release version number) 
>
> Now I don't want it back, I just want to know who was responsible for 
> setting it and how I can re-set this variable so that everything will work 
> again. Can anybody shed sone light on this here please?
>
> Thanks for your time,
>
> Daniel
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/9a5aefbf-a040-4f8d-9c3c-855f89bc6ff1%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  
>
> -- 
>
> This e-mail and any attachments may contain confidential, copyright and or 
> privileged material, and are for the use of the intended addressee only. If 
> you are not the intended addressee or an authorised recipient of the 
> addressee please notify us of receipt by returning the e-mail and do not 
> use, copy, retain, distribute or disclose the information in or attached to 
> the e-mail.
> Any opinions expressed within this e-mail are those of the individual and 
> not necessarily of Diamond Light Source Ltd. 
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any 
> attachments are free from viruses and we cannot accept liability for any 
> damage which you may sustain as a result of software viruses which may be 
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England 
> and Wales with its registered office at Diamond House, Harwell Science and 
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>  
>

-- 
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/4a5e3bbf-d7f9-4bd3-bbc3-c42d55c6cd50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Multi-branch different options based on branch

2016-05-12 Thread Richard Bywater
Haven't done it myself but there is the different Property Strategy in the
multibranch config of "Named branches get different properties" - so
presumably you could set (or unset) a property for certain branches and
drive the decision to deploy off of that?

Richard.

On Fri, 13 May 2016 at 11:24 Mike Caspar  wrote:

>
> I am working on a pipeline that does Test/Deploy after a commit.
>
> That's all cool!
>
> HoweverWhen I create a branch (for a new feature), and it gets
> auto-launched as a new build pipeline, how do I prevent the same
> Jenkinsfile from initiating the Deploy step, since it's the same
> Jeniinsfile ?
>
> Is there a standard way to do this ?
>
> If not, I imagine I could only do Deploy if I'm on branch Master ?
>
> Thoughts on how to do either of these two options ?
>
> Mike
>
>
>
>
>
> --
> 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/31a3041d-f943-4906-aa2c-ebcf9d54025d%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/CAMui946-iCDfT7v%2BJ3KYCTVSpMerbM14xbxEf%3DCMQmdXKeE5eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline Multi-branch different options based on branch

2016-05-12 Thread Mike Caspar

I am working on a pipeline that does Test/Deploy after a commit.

That's all cool!

HoweverWhen I create a branch (for a new feature), and it gets 
auto-launched as a new build pipeline, how do I prevent the same 
Jenkinsfile from initiating the Deploy step, since it's the same 
Jeniinsfile ?

Is there a standard way to do this ?

If not, I imagine I could only do Deploy if I'm on branch Master ?

Thoughts on how to do either of these two options ?

Mike





-- 
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/31a3041d-f943-4906-aa2c-ebcf9d54025d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to declare a Pipeline global var with named parameter

2016-05-12 Thread Nicolas Geraud
Hi,

I want to provide a global var on my brand new jenkins2

here is my function

// workflowLibs/vars/mavenBuild

def call(def url=null, def branch=null, def mvnArgs=["-U", "clean", "deploy"]) {

boolean defaultScm = ( url == null || branch == null )
node {

stage "Checkout"

if (defaultScm) {
checkout scm
} else {
git url: "${url}", branch: "${branch}"
}

stage "Build"

def mvnHome = tool 'MVN33'
def mvnCommamd = ["${mvnHome}/bin/mvn"] + mvnArgs
sh "${mvnCommamd.join(" ")}"
}
}



The goal of this function is to be called in a Jenkinsfile like this

mavenBuild
mavenBuild mvnArgs: ["-X", "clean", "test"]


first syntax works as expected, but if I call my var with a parameter, it 
doesn't take account and always use default params.

Is it possible to create global var with default values and named parameter 
?

I know I can use this syntax : 
https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md#define-more-structured-dsl

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/4b3d1871-e35b-48f0-b0b6-82c2ffb46ec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is `concurrency: 1` on a stage in multibranch pipeline build supposed to apply to all branches for that build?

2016-05-12 Thread David
I have a Jenkinsfile in my repo, and one of the stages uses resources 
shared across every branch, but I need to limit it to only one build at a 
time. It seems that if two branches are being built simultaneously, they 
don't respect the concurrency parameter and end up using the shared 
resource at the same time.

I'd like the branch builds to wait until the other branch is out of that 
shared stage before entering, which is what i thought the concurrency 
parameter would do.

stage name: 'Source code checkout'
node {
checkout scm
}

// Tests reuse the same resources
// I thought setting concurrency to 1 would avoid multiple branch builds 
stepping on each other
stage name: 'Test', concurrency: 1
node {
// This doesn't seem to be limited to one branch build at a time
// How can I achieve that?
}


-- 
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/e352d5e0-81aa-4fb4-9de7-3efdc281973e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Polling without workspace failed to wake up offline slave node

2016-05-12 Thread Jinny Pan

Hi all,


I have a build job having a scheduled polling. It is configured to build on 
a slave node. The node's availability is set as "Take this slave on-line 
when in demand and off-line when idle". 

Ideally, whenever new code come in, the polling would trigger a new build, 
the new build will be put into a queue, then the slave node would wake up 
automatically to start build.

But the reality is, even there is new code, the polling seems doesn't work, 
the pooling log says: 
We need to schedule a new build to get a workspace, but deferring 862,449ms 
in the hope that one will become available soon 
(all_suitable_nodes_are_offline)

  Done. Took 0 ms
  No changes



The build queue is empty. The slave node never wake up.



Does anybody has the same issue before? I am using Jenkins ver. 1.625.2 



Thanks in advance!

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


Git | merge two branches in third branch | Debian | git-buildpackage

2016-05-12 Thread Denny Fuchs
hi,

I want to build Debian packages with git-buildpackage and learned a lot the 
last days, to manage Debian sources with Git.

My project has three branches:

master  -> project sources
debian -> all debian/ related files
release -> merge from master and debian

So my actual workflow is:


   1. Do some work on the sources (git checkout master ... git commit)
   2. Edit debian/changelog  ... and other debian files (git checkout 
   debian ... git commit )
   3. git checkout release && git merge debian master
   4. git-buildpackage -uc -us --git-tag --git-ignore-new 
   --git-ignore-branch --git-tag --git-cleaner='git clean -dfx' (which uses 
   the debian/changelog file to add the tags)
   

my gbp.conf:


[DEFAULT]
upstream-branch = master
debian-branch = release


[git-buildpackage]
export-dir = ../build-area/
tarball-dir = ../tarballs/
upstream-branch = master
debian-branch = release
sign-tags = False
upstream-tag = v%(version)s

[import-orig]
# Filter out unwanted files/dirs from upstream
filter = [
'*egg.info',
'.bzr',
'.hg',
'.hgtags',
'.svn',
'CVS',
'*/debian/*',
'debian/*'
]

filter-pristine-tar = True


[git-import-dsc]
filter = [
'CVS',
'.cvsignore',
'.hg',
'.hgignore',
'.bzr',
'.bzrignore',
'.gitignore'
]

[git-dch]
# ignore merge commit messages
git-log = --no-merges


So, now I want to integrate the merge and build parts into Jenkins. There 
exists a lot of very old HOWTOS for Jenkins and Debian and also some for 
merging one branch into master ... but how should I configure the merges 
from master and debian, in the branch "release" ?


cu denny


-- 
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/27bad604-f7dc-49c2-bb96-00e372b38a86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Windows EC2 as a Jenkins Slave

2016-05-12 Thread alwaysonnet
I have setup EC2 instance with Windows as a Jenkins Slave. I have 
configured GIT and trying to build the code using MSBUILD. Unfortunately, 
GIT commands are failing with the following error

*fatal: protocol error: bad line length character: No s*

*Questions:*

1/ Do I need to create a jenkins user in order to access the code repo? I 
am currently running as 'Administrator' user
2/ Any other recommendations to setup windows slave for Jenkins other than 
EC2 instance?

any help is 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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d58d8ad5-78f4-478c-bb29-c241f0c0bc4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins using a lot more resources after upgrade

2016-05-12 Thread Raymond Accary
Hi,
If it helps, you might avoid the crash by installing the monitoring plugin, 
and triggering garbage collection once the memory is approaching the 
maximum allocated heap size. This is a workaround until someone is able to 
diagnose the root cause. I have an open issue 
: https://issues.jenkins-ci.org/browse/JENKINS-34573 but thought I'd run 
the suggestion.



On Thursday, 12 May 2016 10:59:30 UTC-4, Ugo Bellavance wrote:
>
>
>
> On Thursday, May 12, 2016 at 10:49:02 AM UTC-4, Ugo Bellavance wrote:
>>
>>
>>
>> On Thursday, May 12, 2016 at 4:31:37 AM UTC-4, Stephen Connolly wrote:
>>>
>>> I am suspecting JENKINS-34213 may be your issue.
>>>
>>
>> I have new information.  We installed the monitoring plugin and I started 
>> using VisualVM.  I can see that, while I use -Xmx10752m, it only uses a 
>> little less than 8 GB.  Is there a problem with my configuration? I also 
>> got a heap dump.
>>
>> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true 
>> -Dcom.sun.management.jmxremote -Xmx10752m"
>>
>> (in /etc/sysconfig/jenkins on RHEL6).
>>
>>
> Links for images:
>
>  http://picpaste.com/pasted-1463060174-109834-vyo0x5qe.png
> http://picpaste.com/usedMemory-YYL6OQhQ.png
>
>
>

-- 
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/4ccc0462-d514-4f10-ba4e-de0e0b4fa82e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins behind AWS Load balancer -

2016-05-12 Thread asaf shabat
Hello everyone,

I have windows 2012 R2 x64 with Jenkins instance installed.
The load balancer of AWS points to Jenkins server.

I receive the following error when I open the manage tab: "reverse proxy 
setup is broken".
I know how to do it in linux under Nginx, but I don't know how to do it in 
windows platform.

Is someone did it before?

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/6dfea0ba-c5a3-44d7-a345-2892a792264c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Failed to connect to repository : Remote host closed connection during handshake

2016-05-12 Thread Sharon Francis
Din find a solution yet... if anyone finds plz update it here.

-- 
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/6908f93f-ed24-44c7-9fa7-f35bb1f10347%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

2016-05-12 Thread Daniel Beck

> On 12.05.2016, at 17:31, Daniel Hiller  wrote:
> 
> One more thing I forgot: I'm using this env var in an "Execute Shell" Post 
> Step, where it is read from within the executed script, perhaps that's the 
> problem?

Probably a side effect of SECURITY-170:

https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11
https://jenkins.io/blog/2016/05/11/security-update/
https://wiki.jenkins-ci.org/display/JENKINS/Plugins+affected+by+fix+for+SECURITY-170

-- 
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/ADCD9302-0084-4A32-BDDD-A571D02B2B00%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

2016-05-12 Thread Daniel Hiller
One more thing I forgot: I'm using this env var in an "Execute Shell" Post 
Step, where it is read from within the executed script, perhaps that's the 
problem?

Am Donnerstag, 12. Mai 2016 17:21:48 UTC+2 schrieb Daniel Hiller:
>
> Hi all,
>
> I've made the step to upgrading our jenkins server from 1632 to 
> 2.3.whatever (hooray!) and everything seems to work fine except one thing:
>
> looks like environment variable $MVN_RELEASE_VERSION is not set during the 
> build when using the M2 release plugin. I don't know how or why it was set 
> (didn't find any documentation about that) but what I know is that it used 
> to work in 1.632 (we relied on this magic setting where we found the 
> release version number) 
>
> Now I don't want it back, I just want to know who was responsible for 
> setting it and how I can re-set this variable so that everything will work 
> again. Can anybody shed sone light on this here please?
>
> Thanks for your time,
>
> Daniel
>

-- 
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/32533dbc-9863-4f42-b86e-af852a54bdfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

2016-05-12 Thread Matthew.Webber
Set `-Dhudson.model.ParametersAction.keepUndefinedParameters`=true to allow 
undefined parameters to be injected as environment variables or 
`-Dhudson.model.ParametersAction.safeParameters=[comma-separated list]` to 
whitelist specific parameter names, even though it represents a security breach

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Daniel Hiller
Sent: 12 May 2016 16:28
To: Jenkins Users
Subject: Re: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

Hi again,

just found this JIRA issue: https://issues.jenkins-ci.org/browse/JENKINS-12128

There it is clearly stated that these variables are exposed. Now I don't 
understand what I have to change to be able to access them again?

Regards,
Daniel

Am Donnerstag, 12. Mai 2016 17:21:48 UTC+2 schrieb Daniel Hiller:
Hi all,

I've made the step to upgrading our jenkins server from 1632 to 2.3.whatever 
(hooray!) and everything seems to work fine except one thing:

looks like environment variable $MVN_RELEASE_VERSION is not set during the 
build when using the M2 release plugin. I don't know how or why it was set 
(didn't find any documentation about that) but what I know is that it used to 
work in 1.632 (we relied on this magic setting where we found the release 
version number)

Now I don't want it back, I just want to know who was responsible for setting 
it and how I can re-set this variable so that everything will work again. Can 
anybody shed sone light on this here please?

Thanks for your time,

Daniel
--
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/9a5aefbf-a040-4f8d-9c3c-855f89bc6ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-- 
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/6836E1DC2DDC174C9D64B7860E5AF5FCAC07D9EA%40EXCHMBX01.fed.cclrc.ac.uk.
For more options, visit https://groups.google.com/d/optout.


Re: $MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

2016-05-12 Thread Daniel Hiller
Hi again,

just found this JIRA issue: 
https://issues.jenkins-ci.org/browse/JENKINS-12128

There it is clearly stated that these variables are exposed. Now I don't 
understand what I have to change to be able to access them again?

Regards,
Daniel

Am Donnerstag, 12. Mai 2016 17:21:48 UTC+2 schrieb Daniel Hiller:
>
> Hi all,
>
> I've made the step to upgrading our jenkins server from 1632 to 
> 2.3.whatever (hooray!) and everything seems to work fine except one thing:
>
> looks like environment variable $MVN_RELEASE_VERSION is not set during the 
> build when using the M2 release plugin. I don't know how or why it was set 
> (didn't find any documentation about that) but what I know is that it used 
> to work in 1.632 (we relied on this magic setting where we found the 
> release version number) 
>
> Now I don't want it back, I just want to know who was responsible for 
> setting it and how I can re-set this variable so that everything will work 
> again. Can anybody shed sone light on this here please?
>
> Thanks for your time,
>
> Daniel
>

-- 
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/9a5aefbf-a040-4f8d-9c3c-855f89bc6ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


$MVN_RELEASE_VERSION missing after Upgrade to Jenkins 2

2016-05-12 Thread Daniel Hiller
Hi all,

I've made the step to upgrading our jenkins server from 1632 to 
2.3.whatever (hooray!) and everything seems to work fine except one thing:

looks like environment variable $MVN_RELEASE_VERSION is not set during the 
build when using the M2 release plugin. I don't know how or why it was set 
(didn't find any documentation about that) but what I know is that it used 
to work in 1.632 (we relied on this magic setting where we found the 
release version number) 

Now I don't want it back, I just want to know who was responsible for 
setting it and how I can re-set this variable so that everything will work 
again. Can anybody shed sone light on this here please?

Thanks for your time,

Daniel

-- 
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/5683b0a5-75dd-4154-8dfe-ab10866b62a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how can we use artifacts from the job running on the another jenkins machine ?

2016-05-12 Thread Ganesh Kumbhar
Okayy .. I will try you suggestions

Thanks a lot Daniel & iosif .. Good day!

On Thu, May 12, 2016 at 4:09 PM, iosif neitzke <
iosif.neitzke+jenk...@gmail.com> wrote:

> On Windows without Copy Artifact plugin or curl, we use
> lwp-download,which is a wrapper tool around Perl, provided by
> ActivePerl, to download artifacts from job to job.  Powershell having
> a similar option sounds familiar too.
>
> On Thu, May 12, 2016 at 9:05 AM, Daniel Beck  wrote:
> >
> >> On 12.05.2016, at 15:20, Ganesh Kumbhar  wrote:
> >>
> >> 1. If I'm not wrong these are Unix/Linux CLI's and my Jenkins is
> wjndows .. can I use the same here ?
> >
> > Just find a tool that does something similar on Windows. I think
> PowerShell allows doing this as well.
> >
> >>  2. if possible can you pls share some example or some more details
> about it, like is it simple CLI that we can call through batch or need some
> extra installation or something like that.
> >
> > It's really very basic, just look at the URLs of archived artifacts, or
> the URL of the 'download all as ZIP' link, and download that, possibly
> sending auth headers as needed to authenticate with Jenkins.
> >
> > --
> > 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/7700F39A-AAB2-4AB8-9775-125856B2C405%40beckweb.net
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/gtwlTeotwlc/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/CAGyo1oz23vpEmRL%2BJ8Hzv0svThFj%3Dkhv8i-Z_tTtQ4K8m3t4aw%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/CABpgDEuescDtzcXguwyfSCQPD8WapE-Kx_EWwtgfc9ujEbn7bA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email-Ext and Pipeline - How to add Culprits and Developers as recipients?

2016-05-12 Thread ludovic SMADJA
I add my cent to this feature, we also need it.
-- 


Ludovic SMADJA
R&D engineer - build process and development
JALIOS SA
http://www.jalios.com

Le lundi 02 mai 2016 à 13:04 +, Slide a écrit :
> This is not implemented yet. It's on the list to do.
> 
> On Mon, May 2, 2016, 00:36 Christian Ditscher 
> il.com> wrote:
> > Hi, 
> > 
> > when using the email-ext plugin in a free-style Job I can select
> > that mails are sent to Culprits and Developers. 
> > When using the plug-in in a pipeline script I don't know how to do
> > this (the snippet generator doesn't offer to check this options.)
> > 
> > --> How can I send mails also to Culprits and Developers using
> > email-ext?
> > 
> > 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/1463065315.592.11.camel%40jalios.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins using a lot more resources after upgrade

2016-05-12 Thread Ugo Bellavance


On Thursday, May 12, 2016 at 10:49:02 AM UTC-4, Ugo Bellavance wrote:
>
>
>
> On Thursday, May 12, 2016 at 4:31:37 AM UTC-4, Stephen Connolly wrote:
>>
>> I am suspecting JENKINS-34213 may be your issue.
>>
>
> I have new information.  We installed the monitoring plugin and I started 
> using VisualVM.  I can see that, while I use -Xmx10752m, it only uses a 
> little less than 8 GB.  Is there a problem with my configuration? I also 
> got a heap dump.
>
> JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true 
> -Dcom.sun.management.jmxremote -Xmx10752m"
>
> (in /etc/sysconfig/jenkins on RHEL6).
>
>
Links for images:

 http://picpaste.com/pasted-1463060174-109834-vyo0x5qe.png
http://picpaste.com/usedMemory-YYL6OQhQ.png


-- 
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/474d1fb5-4e43-4dd5-bcf0-967dfd208fdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins using a lot more resources after upgrade

2016-05-12 Thread Ugo Bellavance


On Thursday, May 12, 2016 at 4:31:37 AM UTC-4, Stephen Connolly wrote:
>
> I am suspecting JENKINS-34213 may be your issue.
>

I have new information.  We installed the monitoring plugin and I started 
using VisualVM.  I can see that, while I use -Xmx10752m, it only uses a 
little less than 8 GB.  Is there a problem with my configuration? I also 
got a heap dump.

JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true 
-Dcom.sun.management.jmxremote -Xmx10752m"

(in /etc/sysconfig/jenkins on RHEL6).


[image: zoom]

-- 
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/93a907bb-814a-42c0-b62f-c8e8f80c1598%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins pipeline plugin and sh inside a container

2016-05-12 Thread Ludovic SMADJA
Thanks for your answer, but that doesn't solve the problem.

After days of search, I was preparing a issue for jenkins team and I've 
created a simple test case with an ubuntu image.

At this moment, great surprise, I cannot reproduce the problem in my test 
case. Some investigation later, my build image was build on debian:strech 
image. I''ve change it to build over a ubuntu:latest image (like my test 
case) and all is working well.

Regards,

Ludovic

Le lundi 2 mai 2016 21:07:09 UTC+2, Baptiste Mathus a écrit :
>
> Hi,
>
> Wild guess, did you try to not redirect stderr to stdout to see if this 
> changes anything? Maybe something getting mangled in that mix (would be a 
> bug then)?
>
> sh '''#!/bin/bash /tools/ant/latest/bin/ant -f /opt/build/build.xml build 
> * 2>&1'*''
>
> My 2 cents
>
> 2016-05-02 14:35 GMT+02:00 Ludovic SMADJA  >:
>
>> Hi everyone,
>>
>> I've implemented new pipeline as code feature with a docker image as 
>> build environment.
>>
>> I can do checkout, docker pull, docker run, etc. but my issue is about sh 
>> inside a docker run (via docker.inside).
>>
>> My sh is executed but I don't have any console write from the sh (in my 
>> case an ANT Script). If I run the script manualy in the container, the logs 
>> are displayed on the console.
>>
>> Is anything wrong in my pipeline, or do I miss something to get logs ?
>>
>> Regards,
>>
>> PS : Here's my pipeline and the build console (I removed some custom data)
>>
>> 
>> 
>> stage 'Build'
>> node('docker'){
>> checkout( ...)
>> buildImgName='internal/build:latest'
>> 
>> docker.withRegistry('https://docker-registry.jalios.net/', 
>> 'docker-registry-reader-login') {
>> docker.image(buildImgName).pull()
>> }
>> try{
>> echo "start build container and execute ANT"
>> buildImg.inside( " --link ${DB_ID}:db ") {
>>// Run the ant build  <  here's the 
>> missing logs 
>>  sh '''#!/bin/bash 
>> /tools/ant/latest/bin/ant -f /opt/build/build.xml 
>> build  2>&1'''
>> }
>> }
>> catch(all){
>> println("Exception "+all)
>> }
>> 
>> 
>> Started by user Ludovic Smadja
>> Entering stage Build
>> Proceeding
>> [Pipeline] Allocate node : Start
>> Running on jdocker.jalios.net in /home/jenkins/workspace/Core/JCMS
>> [Pipeline] node {
>> [Pipeline] General Build Wrapper : Start
>> [Pipeline] wrap {
>> [Pipeline] Set environment variables : Start
>> [Pipeline] withEnv {
>> [Pipeline] Sets up Docker registry endpoint : Start
>> [Pipeline] withDockerRegistry {
>> [Pipeline] sh
>> 00:00:31.001 [JCMS] Running shell script
>> 00:00:59.050 Status: Downloaded newer image for 
>> docker-registry.jalios.net/internal/build:latest
>> [Pipeline] echo
>> 00:02:04.944 start build container and execute ANT
>> [Pipeline] sh
>> 00:02:04.960 [JCMS] Running shell script
>> 00:02:05.223 + docker inspect -f . 
>> docker-registry.jalios.net/internal/build:latest
>> 00:02:05.223 .
>> [Pipeline] Run build steps inside a Docker container : Start
>> 00:02:05.349 $ docker run -t -d -u 5001:5001 --link 
>> f1eae2e5faaf7e5b1a62f38789eb046866275c238fcfd65589c56371b98b5719:db -w 
>> /home/jenkins/workspace/Core/JCMS -v 
>> /home/jenkins/workspace/Core/JCMS:/home/jenkins/workspace/Core/JCMS:rw -v 
>> /home/jenkins/workspace/Core/JCMS@tmp :
>> /home/jenkins/workspace/Core/JCMS@tmp :rw -e  -e 
>>  -e  -e  -e  -e  -e  -e 
>>  -e  -e  -e  -e  -e  -e 
>>  -e  -e  -e  -e  
>> docker-registry.jalios.net/internal/build:latest cat
>> [Pipeline] withDockerContainer {
>> [Pipeline] sh
>> 00:02:05.931 [JCMS] Running shell script
>> 00:02:06.578 Buildfile: /opt/build/build.xml
>>
>> < no console logs from ANT Script 
>> >>
>>
>>
>> [Pipeline] } //withDockerContainer
>> [Pipeline] Run build steps inside a Docker container : End
>> [Pipeline] echo
>> 00:02:16.948 Exception hudson.AbortException: script returned exit code -1
>> [Pipeline] step
>> 00:02:16.956 Archiving artifacts
>> 00:02:17.061 Recording fingerprints
>> [Pipeline] step
>> 00:02:17.152 Recording test results
>> [Pipeline] } //wrap
>> [Pipeline] General Build Wrapper : End
>> [Pipeline] } //node
>> [Pipeline] Allocate node : End
>> [Pipeline] End of Pipeline
>> ERROR: Aucun fichier de rapport de test n'a été trouvé. Erreur de 
>> configuration?
>> Finished: FAILURE
>> 
>> -- 
>>
>>
>> Ludovic SMADJA
>> R&D engineer - build process and development
>> JALIOS SA
>> http://www.jalios.com
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop re

Re: Building jenkins RPMs

2016-05-12 Thread Daniel Beck

> On 12.05.2016, at 16:19, Ian Duffy  wrote:
> 
> I'm struggling to find the rpm spec file that is used to generate the RPMs 
> supplied on the jenkins website. 
> 
> Can anyone point me to where I can find these?
> 

https://github.com/jenkinsci/packaging/tree/master/rpm/build

-- 
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/199E81A2-1894-4D15-928D-8BD006F358FF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Building jenkins RPMs

2016-05-12 Thread Ian Duffy
Hi All,

I'm struggling to find the rpm spec file that is used to generate the RPMs
supplied on the jenkins website.

Can anyone point me to where I can find these?

Thanks,
Ian.

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


Re: how can we use artifacts from the job running on the another jenkins machine ?

2016-05-12 Thread iosif neitzke
On Windows without Copy Artifact plugin or curl, we use
lwp-download,which is a wrapper tool around Perl, provided by
ActivePerl, to download artifacts from job to job.  Powershell having
a similar option sounds familiar too.

On Thu, May 12, 2016 at 9:05 AM, Daniel Beck  wrote:
>
>> On 12.05.2016, at 15:20, Ganesh Kumbhar  wrote:
>>
>> 1. If I'm not wrong these are Unix/Linux CLI's and my Jenkins is wjndows .. 
>> can I use the same here ?
>
> Just find a tool that does something similar on Windows. I think PowerShell 
> allows doing this as well.
>
>>  2. if possible can you pls share some example or some more details about 
>> it, like is it simple CLI that we can call through batch or need some extra 
>> installation or something like that.
>
> It's really very basic, just look at the URLs of archived artifacts, or the 
> URL of the 'download all as ZIP' link, and download that, possibly sending 
> auth headers as needed to authenticate with Jenkins.
>
> --
> 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/7700F39A-AAB2-4AB8-9775-125856B2C405%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/CAGyo1oz23vpEmRL%2BJ8Hzv0svThFj%3Dkhv8i-Z_tTtQ4K8m3t4aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how can we use artifacts from the job running on the another jenkins machine ?

2016-05-12 Thread Daniel Beck

> On 12.05.2016, at 15:20, Ganesh Kumbhar  wrote:
> 
> 1. If I'm not wrong these are Unix/Linux CLI's and my Jenkins is wjndows .. 
> can I use the same here ?

Just find a tool that does something similar on Windows. I think PowerShell 
allows doing this as well.

>  2. if possible can you pls share some example or some more details about it, 
> like is it simple CLI that we can call through batch or need some extra 
> installation or something like that. 

It's really very basic, just look at the URLs of archived artifacts, or the URL 
of the 'download all as ZIP' link, and download that, possibly sending auth 
headers as needed to authenticate with Jenkins.

-- 
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/7700F39A-AAB2-4AB8-9775-125856B2C405%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: how can we use artifacts from the job running on the another jenkins machine ?

2016-05-12 Thread Ganesh Kumbhar
Hello Daniel,
Thanks for your reply.

have got few doubts :

1. If I'm not wrong these are Unix/Linux CLI's and my Jenkins is wjndows ..
can I use the same here ?
2. if possible can you pls share some example or some more details about
it, like is it simple CLI that we can call through batch or need some extra
installation or something like that.

Thank You!

On Wed, May 11, 2016 at 4:21 PM, Daniel Beck  wrote:

>
> > On 11.05.2016, at 16:03, Ganesh Kumbhar  wrote:
> >
> > But if I want to copy artifacts from some another Jenkins machine, then
> is it possible ?, if yes, how?
>
> Not possible using Copy Artifact, but you could always download files from
> a Jenkins in a script using one or a few wget/curl/… calls.
>
> --
> 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/gtwlTeotwlc/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/5E49F15D-954A-4F1B-BB0B-94C8F94F66B9%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/CABpgDEsN3zAmDL69D4_xeV_bsoNoJ%2BHCukoksNNBBzc_DjDMiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Upgrade to Jenkins 2 failed

2016-05-12 Thread David Aldrich
Hi Daniel

> My guess is that your service config file defines an AJP port, which causes
> startup to fail. See the 2.0 changelog.

Thanks, I think you are correct:

SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:207)
at winstone.Launcher.(Launcher.java:148)
at winstone.Launcher.main(Launcher.java:352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at Main._main(Main.java:246)
at Main.main(Main.java:91)
Caused by: java.lang.UnsupportedOperationException: AJP support is removed in 
Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please 
use HTTP instead of AJP.
at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
at winstone.Launcher.spawnListener(Launcher.java:205)

-- 
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/41302A7145AC054FA7A96CFD03835A0A0BACDE1A%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


git polling throws exception whenever there are upstream changes

2016-05-12 Thread Brent Kilgore
I cant seem to get git polling to work.  the first time it polls (ie when 
it clones the repository), it launches a build.   for future polls, if 
there are no changes it reports nothing changed as expected.  Yet if there 
is an existing clone in the workspace, and there are upstream changes. 
 Then i get this exception:

Caused by: hudson.plugins.git.GitException: Command "git.exe -c 
core.askpass=true fetch --tags --progress ssh://git@x:/cpp.git 
+refs/heads/*:refs/remotes/origin/* --depth=1" returned status code 1:
stdout: 
stderr: remote: Total 0 (delta 0), reused 0 (delta 0) [K
error: there are still refs under 'refs/remotes/origin/branch'
>From ssh://xx:/cpp.git
 ! [new branch]  branch -> origin/branch * (unable to update local ref)*

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)


The files are not locked in anyway i can detect.  I am running jenkins 2.2 
with newest versions of all plugins. I am trying to poll two branches in 
one repo.  only polling a single branch doesn't work either.

Side problem, I still cannot get credentials to work with either ssh or 
https.  I have to run jenkins as my windows user and depend on profile git 
settings.  Git just hangs forever, which i assume means it is waiting for 
input for some question i cant answer.   

Any ideas?

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/00149bdc-e64d-4eae-8271-8350abdb1661%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrade to Jenkins 2 failed

2016-05-12 Thread Daniel Beck

> On 12.05.2016, at 11:48, David Aldrich  wrote:
> 
> Any suggestions please?

Check /var/log/jenkins/jenkins.log.

My guess is that your service config file defines an AJP port, which causes 
startup to fail. See the 2.0 changelog.

-- 
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/1780206F-DF36-4288-9012-AA84DE1889DF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Failed to connect to repository : Remote host closed connection during handshake

2016-05-12 Thread Aron Yu
Did you find any resolution this?

On Wednesday, December 9, 2015 at 11:52:08 AM UTC+1, Sharon Francis wrote:
>
> Tried hard. Still not working .
>
> On 9 December 2015 at 10:05, Slide > 
> wrote:
>
>> Looks like the permissions on /var/lib/jenkins/.ssh/config are too open, 
>> you should chmod 600 that file to make it more secure.
>>
>> On Tue, Dec 8, 2015 at 9:30 PM Sharon Francis > > wrote:
>>
>>> im getting the following error on building the project:
>>>
>>> Started by user anonymous 
>>> Building in workspace /var/lib/jenkins/workspace/dhruvTestSuite
>>>  > git rev-parse --is-inside-work-tree
>>> Fetching changes from the remote Git repository
>>>  > git config remote.origin.url g...@gitlab.xyz.com:xyz/xyz.git
>>> Fetching upstream changes from g...@gitlab.xyz.com:xyz/xyz.git
>>>  > git --version
>>>  > git fetch --tags --progress g...@gitlab.xyz.com:eagle/xyz.git 
>>> +refs/heads/*:refs/remotes/origin/*
>>> FATAL: Failed to fetch from 
>>> g...@gitlab.xyz.com:eagle/xyz.githudson.plugins.git.GitException 
>>> :
>>>  Failed to fetch from g...@gitlab.xyz.com:eagle/xyz.git
>>> at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622) 
>>> 
>>> at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854) 
>>> 
>>> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879) 
>>> 
>>> at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) 
>>> 
>>> at 
>>> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
>>>  
>>> 
>>> at 
>>> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
>>> 
>>> at 
>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
>>>  
>>> 
>>> at hudson.model.Run.execute(Run.java:1738) 
>>> 
>>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
>>> 
>>> at hudson.model.ResourceController.execute(ResourceController.java:98) 
>>> 
>>> at hudson.model.Executor.run(Executor.java:410) 
>>> 
>>> Caused by: hudson.plugins.git.GitException 
>>> :
>>>  Command "git fetch --tags --progress g...@gitlab.xyz.com:eagle/xyz.git 
>>> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
>>> stdout: 
>>> stderr: Bad owner or permissions on /var/lib/jenkins/.ssh/config
>>> fatal: Could not read from remote repository.
>>>
>>> Please make sure you have the correct access rights
>>> and the repository exists.
>>>
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1325)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1186)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:257)
>>> at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:620)
>>> ... 10 more
>>>
>>>
>>>
>>> On Wednesday, 9 December 2015 09:53:01 UTC+5:30, Sharon Francis wrote:

 Im getting this error after some updates, not sure how to resolve this 
 issue. Pls help. Have attached the screenshot along.

>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/861a577a-ecbc-450c-8ae4-e32db80e1537%40googlegroups.com
>>>  
>>> 
>>> .
>

Integrate Jenkins and RQM plugin

2016-05-12 Thread Humayun Malik
Hi, 

I want to ask a question related to Jenkins RQM plugin. I have configured 
all the steps but still when we request a build it doesn't fetch any test 
cases (can be seen in build console window). 

 Can someone please help? 

 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/8c13c18e-7fd4-49e9-b2de-174a1cefd778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Upgrade to Jenkins 2 failed

2016-05-12 Thread David Aldrich
Hi

I have tried to upgrade our Jenkins test server from 1.656 to 2.3 by copying 
the 2.3 war to:

/usr/lib/jenkins/

and restarting Jenkins using:

sudo /etc/init.d/jenkins restart

Now I cannot connect to Jenkins:

"This site can't be reached
jenkinstest. refused to connect."

Any suggestions please?

Best regards

David

-- 
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/41302A7145AC054FA7A96CFD03835A0A0BACDC7B%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Gitlab Hook Plugin - detailed job configuration

2016-05-12 Thread Raimund Klein
Hello everyone,

We recently configured out Gitlab Hook Plugin such that it will create new 
Jenkins jobs when someone pushes to a new branch. Nice feature! :-)

I'm just wondering if and how we can tune the job autocreation in such a 
way that the new job will do "everything the original job does except for 
this". In our case, "this" refers to post build actions such as deploying 
to Artifactory or running SonarQube as these actions' results will replace 
the main job's one.

What's the best way to achieve this?

Thanks
Raimund

-- 
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/1da51ac0-d8b3-44c0-af1d-5459622bb54d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SVN "Get Lock" property & it's read-only attribute to file causes issue when building with Jenkins

2016-05-12 Thread Ajay
Hi,

I have just started to work with Jenkins for one of my LabVIEW projects.  I 
use SVN with "Needs-Lock" property for all projects which essentially 
changes the file attribute to read-only until the developer gets the lock. 
 When I build using Jenkins, it gets the recent copy of the repo to the 
c:\program files (x86)\Jenkins\*workspace *which is also read-only. 
 Eventually, due to this, my LabVIEW auto-build process is not able to run 
as it needs to write the project file after the completion of build.  Is 
there any way to introduce the SVN:Get-lock to Jenkins before it starts 
building?

Thanks,
Ajay.

-- 
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/b981cc12-56b5-4a01-8cbd-550eadbd2274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins using a lot more resources after upgrade

2016-05-12 Thread Stephen Connolly
I am suspecting JENKINS-34213 may be your issue.

On 11 May 2016 at 18:18, Ugo Bellavance  wrote:

>
>
> On Wednesday, May 11, 2016 at 12:32:59 PM UTC-4, John Mellor wrote:
>>
>> Yeah, I’m seeing that too, and I am also running Jenkins 1.656 version.
>> I’m only running about 400 jobs in Jenkins with 11 slaves, so it’s
>> definitely not the busiest build environment out there.  I’ve currently
>> bumped the heap up to 5GB, and still do not have anywhere near enough to
>> run the backup plugin for example.  I’m thinking of doubling it to see if
>> that helps, but your experience seems to say that this is also not going to
>> be enough.
>>
>
> I could try increasing again, but it doesn't make much sense.
>
>
>>
>>
>> This problem is also scaring me about whether unreasonable resource
>> utilization has been corrected in a near-future upgrade to Jenkins 2.2…
>>
>
> It's partly comforting, but also scary to see that we're not alone with
> this problem.  Yes, it would be interesting to know if it has been fixed in
> version 2, and it would also be nice to know when this problem was
> introduced and if we can downgrade to a know working version.  Should we
> open a bug in jenkins's JIRA? Have you seen
> https://issues.jenkins-ci.org/browse/JENKINS-34573? Have you generated a
> heap dump? I'm not too familiar with that (yet).
>
> Ugo
>
> --
> 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/d8605af0-9c53-434c-9d10-6b82fd762cf7%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

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