Re: Automated Jenkins Installs

2016-10-18 Thread Ted Xiao
If you are talking about the setup wizard in jenkinx 2.x, you can overwrite it by -Djenkins.install.runSetupWizard=false, a sample dockerfile FROM jenkins:latest USER jenkins RUN install-plugins.sh git workflow-aggregator # Skip initial setup ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false

Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Teichner Peter
I'm trying to find the right solution for using a conditional multiple build step depending if there was a code change. I have seen a solution by checking ROOT_BUILD_CAUSE but that might be unreliable as the execution could be manually triggered but there could still be code change. I need this

Re: Jenkins with Cucumber not working, please help !!

2016-10-18 Thread Vinoth Kannan
Thanks Victor for your reply, I actually followed it and i am able to trigger the test cases through jenkins and my issue is only with the reporting part. Installed all the plugins jenkins provides for Cucumber and restarted -- You received this message because you are subscribed to the Googl

Re: Pipeline jobs - Custom build names?

2016-10-18 Thread Daniel Beck
> On 17.10.2016, at 19:24, Sam K wrote: > > name the pipeline build jobs like this using the build name setter plugin Just use this in your Pipeline: currentBuild.displayName = 'whatever' No need for a separate plugin. -- You received this message because you are subscribed to the Google Gr

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Further investigation.. I thiought the solution might lie in FilePath as per here http://stackoverflow.com/questions/30608444/in-jenkins-job-create-file-using-system-groovy-in-current-workspace/32514581#32514581 But it seems that doesn't apply to Groovy in the pipeline, If I try to declare a F

Re: Jenkins Master Goes to 100% (at random?)

2016-10-18 Thread Daniel Beck
You don't say what files get loaded. Assuming it's builds, I'd look into available heap memory. Install the monitoring plugin. With too little memory, Jenkins can get into situations where it needs to load builds, and to make space, discards already loaded build records, just to discard the new

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Daniel Beck
> On 18.10.2016, at 00:58, Jonathan Hodgson wrote: > > The documentation says that File operates on "the current machine", which I > took to mean the one actually running the code at that moment, which is the > slave. The script _is_ evaluated on the master. FilePath would do it, or just not

Re: Jenkins versions

2016-10-18 Thread Daniel Beck
> On 18.10.2016, at 08:19, Onno van der Straaten > wrote: > > immediately update any automation script that might have been developed on > top of this Jenkins version Why not run curl or wget to download a dpkg in your "automation script"? -- You received this message because you are subscr

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Hi Daniel, thanks for trying to help, however On Tuesday, October 18, 2016 at 12:28:18 PM UTC+1, Daniel Beck wrote: > > > > On 18.10.2016, at 00:58, Jonathan Hodgson > wrote: > > > > The documentation says that File operates on "the current machine", > which I took to mean the one actuall

Re: Jenkins automate tests and send mail with the version of application

2016-10-18 Thread Rafael Silva
I used curl as you suggested : VERSION=$(curl --request POST 'http://10.200.0.1:8080/page/test.jsf') echo $VERSION | sed -rn 's/.*\Test Version: //;s/\ - Automation.*//p' and result my version ! thanks :-) Em segunda-feira, 17 de outubro de 2016 18:15:17 UTC-2, Sam K escreveu: > > Can you us

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Ok, well it seems the "unable to resolve class" issue was due to me not importing the class. Got thrown by the fact that File is there, hadn't really clicked that FilePath was a hudson specific class rather than standard Groovy. Still looking for how to find the channel -- You received this m

Re: Jenkins 2.x Pipeline from SCM with Parameters

2016-10-18 Thread Yanson
Did you get anywhere with this? I have the exact same issue, and it also affects other properties such as triggers. On Friday, 23 September 2016 21:05:49 UTC+1, jwil...@gmail.com wrote: > > I feel like I must be doing something wrong here, but I have a Pipeline > job that is getting its definiti

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jesse Glick
On Tuesday, October 18, 2016 at 8:09:56 AM UTC-4, Jonathan Hodgson wrote: > > Did you miss my last post? I tried FilePath, but I get a "unable to > resolve class" error. > Do not attempt to use `FilePath` from Pipeline script. It will not work. I'm in a powerfull object oriented cross platform l

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
On Tuesday, October 18, 2016 at 3:21:09 PM UTC+1, Jesse Glick wrote: > > On Tuesday, October 18, 2016 at 8:09:56 AM UTC-4, Jonathan Hodgson wrote: >> >> Did you miss my last post? I tried FilePath, but I get a "unable to >> resolve class" error. >> > > Do not attempt to use `FilePath` from Pipel

Re: Collecting Workflow Run Info in Pipeline

2016-10-18 Thread Zack Sampson
I figured this out. I ended up crawling around the actual workflow UI java code. It's fragile, but this doesn't appear to be supported in a nonfragile way. The classes I used were FlowNodeUtil, Describe, StatusExt, etc. On Monday, October 17, 2016 at 10:34:20 AM UTC-4, Zack Sampson wrote: > > He

Using Jenkins, is it possible for me to run an application from my Master machine, that directly affects the GUI on my slave during a build?

2016-10-18 Thread Jenkins Johnny
I have a Jenkins master setup that will open a web application on the slave machine and then opens a sendkeys application to input some keys into various fields on the web app. I'm using powershell to open the web application as an object, then open the sendkeys application which automatical

Re: NodeJS Plugin:in windows : npm commends not working

2016-10-18 Thread Eric Pyle
It looks like it's failing because it expects to find bash shell commands dirname and uname. Do you have Cygwin or some similar package installed to make those commands available? On 10/18/2016 11:29 AM, bolleypally vijay kumar wrote: 1. I'm trying to print node and npm version in a jenkins jo

Gitlab-Plugin /project endpoint do not work

2016-10-18 Thread Eddard
In almost every setup example of the gitlab plugin like here https://medium.com/@teeks99/continuous-integration-with-jenkins-and-gitlab-fa770c62e88a#.byii26kal the gitlab webhook configuration part indicates that the url to record sh

GitHub webhooks created with only Pull Request and Repository Events - No Push Events?

2016-10-18 Thread Greg Smith
Hi, We are having a problem with GitHub and webhooks, and was hoping someone might have an idea of how to resolve. We want to use webhooks for obvious reasons: We're using the GitHub org plugin to scan our repos, and setup the Pipeline jobs. I used the "Re-register hooks for all jobs" button

Re: pipeline - groovy - file paths on windows?

2016-10-18 Thread Rachel
Hi Jonathan, Thanks for the information. I'll follow the new thread. Best regards, Rachel El martes, 18 de octubre de 2016, 1:17:13 (UTC+2), Jonathan Hodgson escribió: > > Rachel and Martina, > > Thanks for trying to help me on this, I've started a new thread now that > I've realized the issue

Re: Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Rachel
Hi Teichner, I don't know if I've understood you correctly, but I usually configure my jobs with: - Build Triggers > Poll SCM With this option you specify when you want to check your SCM (e.g. hourly, every 2 hours, ...) and a new build is executed *only if changes are detected from the la

Re: Jenkins EMail Reporting

2016-10-18 Thread jerome
I got some Jelly template working for this. First the jenkins file: Make sure you collect your unit test results: step([$class: 'JUnitResultArchiver', testResults: 'TestResult/*.xml']); Then send the email: emailext body: '${JELLY_SCRIPT,template=" ${env.JENKINS_HOME}/email-templates/myTemplateF

Re: Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Teichner Peter
Hi Rachel, Thanks for your answer. No that's not it. I'm running a pipeline but it could be manual execution as well and basically I want the ability the say my shell script is conditional and should only run if there was a change in the source. Regardless of how the build was triggered. Thank

Re: Log Parser Plugin Parser Rules Questions

2016-10-18 Thread Rachel
Hi Bubunia, Parsing rules file could have this content: info /Finished all tests.*/ error /Test case .* failed/ And you could send *Parsed Console Output* with *Editable Email Notification*: - Content Type: HTML - Default Content: ${FILE, path="$WORKSPACE/../builds/$BUILD_NUMBER/log_

Re: Polling both svn and git from pipeline

2016-10-18 Thread Rachel
Hi, Sorry, it's possible with Pipeline: *Polling is supported across multiple SCMs (changes in one or more will trigger a new build), and again is done according to the SCMs used in the last build of the pipeline.* You'll have to run it once manually for listening to SCM changes. More informa

Re: Trigger new build only for the latest git tag

2016-10-18 Thread constellate9
bump. i am running into a similar issue. any resolution? On Sunday, September 4, 2016 at 9:26:10 AM UTC-7, Alex Domoradov wrote: > > Hello, > > I have a really simple task - I need to configure jenkins job to build a > code only when a new tags with specific names (for e.g. qa_1234567) are > pus

Re: [ANN]: Ask the Experts Booth at Jenkins World

2016-10-18 Thread Alyssa Tong
Hello, Thank you to everyone who came out to Jenkins World and visited the Open Source Hub. I was really happy to see so much interactions and technical questions being addressed. Hopefully visitors found it helpful. For anyone interested, the Jenkins World presentations and videos are now availa

DON'T upgrade to Credentials plugin 2.1.7

2016-10-18 Thread Cody Konior
It killed my Jenkins instance. I had to revert (by removing the .jpi from the plugins directory and renaming the .bak to .jpi). -- 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, s

From bitbucket recent update need to deploy in linux testing server

2016-10-18 Thread Ruma Chakraborty
Hi, how to do recent git update automatically deploy in linux testing server Regards Ruma -- 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+u

store jenkins configuration of jenkins in git via script

2016-10-18 Thread touseef
i want to schedule a task in windows task scheduler that will take the backup of job config.xml and store it in git repo..Any idea 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

Re: store jenkins configuration of jenkins in git via script

2016-10-18 Thread Teichner Peter
There is a plugin that will store all your configuration files - including plugins and jobs in the choice of your scm. I think it's called scm configuration but will have to check. It will keep everything up to date automatically so no need to schedule stuff. Get Outlook for Android