How to override the environment variables for Jenkins slave when adding new slave to the Jenkins master?

2016-06-23 Thread praveen kumar jogi
Configured automatic slaves for couple jobs on Jenkins using ec2 plugin . I need to override couple of environment variables for the slave before connecting to master. Here is the init script that used to run before it connect as

Creating jobs for non-master branches on GitHub

2016-06-23 Thread pandeiro
Hello everyone, I'm trying to set up jobs that build non-master branches for several private GitHub repositories. To do so, I've tried specifying '*/master' as branch and adding an 'Inverse' strategy for choosing what to build. However when I do this and push to the master branch, the job is

Artifactory plugin usage

2016-06-23 Thread Ginga, Dick
I am trying to download libraries from Artifactory using a Property. My Property is LATEST. It is equal to 1 for a particular set of libraries. The help for the plugin field is below. What is the actual syntax of RED/BOLD? I have tried (the * field is a build number and I have artifacts from

Editing registry

2016-06-23 Thread aaron . trujillo
Is it possible to edit the registry with jenkins? If i run the following command localy from the CMD the changes are applied correctly and succussfuly. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\MMSOFT Design\PC Monitor" /v > SendNotificationWhenOffline /t REG_SZ /d 1 /f > But when I run it

Issue with running csh commands in the jenkins "Execute Shell" commands

2016-06-23 Thread sivarajesh jarugula
I am running a Jenkins parameterized build along with having csh commands in the "Exeute Shwll" WIndow/ my shell commands: #!/bin/csh echo "hu ha" I am getting the following error: [workspace] $ /bin/csh -xe /tmp/hudson3705530096260628757.sh alias: No match. Build step 'Execute shell' marked

Re: disabled project can be triggered remotely

2016-06-23 Thread S C
There it is: https://issues.jenkins-ci.org/browse/JENKINS-36193 Thanks a lot! Sorin On Thu, Jun 23, 2016 at 4:55 PM, Daniel Beck wrote: > Please file a bug against core and assign it to me. > > Mention that ParameterizedJobMixIn#doBuildWithParameters does not check >

Re: disabled project can be triggered remotely

2016-06-23 Thread Daniel Beck
Please file a bug against core and assign it to me. Mention that ParameterizedJobMixIn#doBuildWithParameters does not check isBuildable(). https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue > On 23.06.2016, at 15:43, S C wrote: > > It's a freestyle project

Re: artifactory plugin maven job : Unable to determine Maven version

2016-06-23 Thread Kyle Burkhardt
I can confirm the same problem, Artifactory Plugin > 2.4.6 does not work for me either. On Wednesday, June 22, 2016 at 8:14:57 AM UTC-6, Matthieu Simonin wrote: > > Hi, > > Jenkins 2.9 > Artifactory Plugin: 2.4.6 > > is better for me. > > Can we conclude that this issue is more related to the

Re: Does Role-based Authorization Strategy has users limit?

2016-06-23 Thread 'Björn Pedersen' via Jenkins Users
You need to restart jenkins hard to get any effect, I guess. And depending how your jenkins server is deployed, see https://issues.jenkins-ci.org/browse/JENKINS-30062?focusedCommentId=236731=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-236731 as well. Am

Re: Does Role-based Authorization Strategy has users limit?

2016-06-23 Thread Raj Meghraj
I have bumped the “maxFormContentSize” from 20 to 50 in jenkins.xml but it did not resolve the issue, but as I mentioned in my earlier post it allowed me to add a new user only when I removed an existing user. This meaning I have reached the number of users limit, so my question is does

Re: disabled project can be triggered remotely

2016-06-23 Thread S C
It's a freestyle project triggered remotely via the REST API (with a security token)... On Thu, Jun 23, 2016 at 3:10 PM, Daniel Beck wrote: > What kind of project? And how exactly does it get triggered, a request to > /subversion/notifyCommit? > > > On 23.06.2016, at 14:41,

Re: Acessing build dir from browser

2016-06-23 Thread Eric Pyle
You could archive the screenshots as build artifacts. This will still be removed according to your build retention settings, and they should also be accessible via URL. Eric On 6/23/2016 7:10 AM, Maciej Gawinecki wrote: My tests are taking screenshots. However, screenshots are taking a lot

Re: disabled project can be triggered remotely

2016-06-23 Thread Daniel Beck
What kind of project? And how exactly does it get triggered, a request to /subversion/notifyCommit? > On 23.06.2016, at 14:41, Sorin wrote: > > Is this the way it's expected to work? I disable the project in Jenkins GUI > but the remote SVN trigger has no problem starting a

disabled project can be triggered remotely

2016-06-23 Thread Sorin
Is this the way it's expected to work? I disable the project in Jenkins GUI but the remote SVN trigger has no problem starting a build when I checkin. I thought disabled means disabled... but seems I'm wrong. Thanks for any clarification! Sorin -- You received this message because you are

Re: Find and Replace options in jenkins

2016-06-23 Thread Daniel Beck
Maybe the new https://wiki.jenkins-ci.org/display/JENKINS/File+Operations+Plugin supports this? Haven't used it. I think most people just use the batch/shell for this. > On 23.06.2016, at 13:11, Vadivel Natarajan wrote: > > Hi All, > > Can some one tell me if any

Re: Find and Replace options in jenkins

2016-06-23 Thread Vadivel Natarajan
Hi All, Can some one tell me if any Plug-in or step available in Jenkins to perform Find and Replace some text in a file? I need to change the CopyRight Year and Company name in AssemblyInfo.cs file of a .NET project. Regards, Vadivel On Monday, August 1, 2011 at 6:35:49 PM UTC+5:30,

Acessing build dir from browser

2016-06-23 Thread Maciej Gawinecki
My tests are taking screenshots. However, screenshots are taking a lot of space. So we have decided to store them within build directory, e.g. /home/dev/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots instead of workspace. This way, older builds are removed together

Re: Git polling triggers multiple (100s) builds of the same branch, which has already been deleted

2016-06-23 Thread Barry Laffoy
Actually, I've discovered something else. I went into each of the workspaces used for polling on the build machines, and tried a `git fetch -p` in order to prune branches that have been deleted remotely. Doing so resulted in: > > > Auto packing the repository in background for optimum performance.

Git polling triggers multiple (100s) builds of the same branch, which has already been deleted

2016-06-23 Thread Barry Laffoy
Hi I've seen this problem crop up several times in our Jenkins set up. The Jenkins git polling will start triggering jobs non-stop for a branch of git that has already been deleted from origin. The only fix I can find is to go into the workspace used for polling on all Jenkins slaves/agents

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Sverre Moe
I got Mailer to send success after failed. I wish "mail" or "emailext" could support this as those allow to define the subject and body. torsdag 23. juni 2016 10.58.51 UTC+2 skrev Sverre Moe følgende: > > Ok > We went away from the Mailer because we wanted to minimize the content in > body. > >

RE: Does Role-based Authorization Strategy has users limit?

2016-06-23 Thread Matthew.Webber
If you search the Jenkins Jira for “maxFormContentSize”, that gives some solutions to a similar problem. However, I’m not sure if they apply in this particular case. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Raj Meghraj Sent: 22 June 2016

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Sverre Moe
Ok We went away from the Mailer because we wanted to minimize the content in body. I tried with your example, but it did not send out email on success after failed. } catch (caughtError) { currentBuild.result = "FAILURE" } finally { if (currentBuild.result != "ABORTED") { final

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Craig Rodrigues
Yes, step mailer sends mail on fixed builds, but currentBuild.result is null unless you set it. The step mailer depends on currentBuild.result. -- Craig On Thu, Jun 23, 2016 at 12:53 AM, Sverre Moe wrote: > Same solutions I thought about, to put a try-catch surrounding

Re: Pipeline: Defined parameters are not available in the build

2016-06-23 Thread Sverre Moe
It is working. I was just accessing the parameter in a wrong way. Trying env.PARAM does not work. Found an example that lead me to the answer. def param = false if (getBinding().hasVariable("MY_PARAM")) { param = MY_PARAM } onsdag 22. juni 2016 13.37.29 UTC+2 skrev Sverre Moe følgende: > >

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Sverre Moe
Same solutions I thought about, to put a try-catch surrounding all the stages in the build. However I could not find anything in those examples how to send email on fixed builds. Unless step Mailer does that for you. I use Email-ext because I want to a minimalist email content. It should only

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Craig Rodrigues
Mike Caspar added email notification to this example: https://github.com/jenkinsci/pipeline-examples/blob/master/jenkinsfile-examples/nodejs-build-test-deploy-docker-notify/Jenkinsfile and my script does email notification similar to what you need

Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Sverre Moe
One benefit with sending email in pipeline script is better control of which error in the pipeline deserves sending email and to whom. By adding a try-catch surrounding the code compile I send out email when it fails. That case the developers get notified only for errors that concern them. try

Re: Pipeline: How to cache downloaded (gradle) dependencies using Docker SSH Slave

2016-06-23 Thread Marco Pas
I was hoping that these dependencies could be cached somewhere in the workspace instead or relying on Gradle specific things. We have the same thing for NPM related dependencies. Continuous downloading of the related dependencies is just to slow. On Thursday, June 23, 2016 at 8:48:32 AM UTC+2,

Jenkins Permission denied

2016-06-23 Thread 33
Hi all, Setting up an ubuntu server to build android roms using jenkins. Whenever i run a job from jenkins, it shows Permission denied Chmod and chown is not helping me coz the newly created folders have permission issues, i've tried with chown the entire directory to jenkins and creating a user