Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-11-13 Thread Craig Rodrigues
r to access that URL. How did you configure this in your setup? -- Craig -- 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

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-11-11 Thread Craig Rodrigues
I tried with the trailing slash, and still got a 404 error. I think your blog post is missing details of how to configure the *github-webhook* URL. I think this is configured via this plugin: https://github.com/jenkinsci/github-plugin/ -- Craig On Sun, Nov 10, 2019 at 2:34 PM Michael Neale

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-11-08 Thread Craig Rodrigues
an, Pipeline, and many other plugins installed. -- Craig -- 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...@googlegro

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
a service which may disappear. -- Craig On Thu, Oct 24, 2019 at 2:39 PM Michael Neale wrote: > yeah fair point it doesn't have to be right next to it - but it has to be > somewhere it can reach /github-webhook endpoint - so could be a totally > separate app? (as long as your Jenki

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
API? -- Craig On Thu, Oct 24, 2019 at 1:01 AM Michael Neale wrote: > Hi Craig, glad that post is getting mileage! > > So in kubernetes, I guess that would be adding to the pod that is running > your Jenkins container: there would be a pod definition (not sure if you > wrote it) som

GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
ic GitHub triggering builds on my Jenkins server running behind a firewall. Thanks. -- Craig -- 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 emai

Re: Jenkins Pipeline: Variable expansion issues

2019-03-12 Thread Mike Craig
gt; > > > HTH Reinhold > > > > *From:* jenkins...@googlegroups.com < > jenkins...@googlegroups.com > *On Behalf Of *Mike Craig > *Sent:* Montag, 11. März 2019 23:33 > *To:* Jenkins Users > > *Subject:* Jenkins Pipeline: Variable expansion issues > >

Jenkins Pipeline: Variable expansion issues

2019-03-11 Thread Mike Craig
Hello, The following snippet from my pipeline is acting very strangely, the values from the print statements are correct print "asgName: $asgName" print "asgMax: $asgMax" print "asgMin: $asgMin" asgIncrease = (asgMax * 2) print

Is there a trim method in the string parameter ?

2019-03-06 Thread Mike Craig
Hello, For clear text data entry I'd like to be able to enable a 'trim' feature. This page doesn't document one: https://jenkins.io/doc/book/pipeline/syntax/#parameters I would like something like this, does it exist? I couldn't get the below to work for me. parameters { string(name:

Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Mike Craig
gt; > > > ---- Ursprüngliche Nachricht > Von: Mike Craig > Datum: 27.02.19 23:12 (GMT+01:00) > An: Jenkins Users > Betreff: Pipeline: How to modify Build History status monitor > > Hello, > > Prior to using declarative pipeline, we were able to modify t

Re: Pipeline: How to modify Build History status monitor

2019-02-28 Thread Mike Craig
Perfect, thank you for the reference! Having a "how-to" question, and mapping that to a documentation section is the hardest part for me. :) On Wed, Feb 27, 2019 at 10:55 PM Andreas Magnusson < andreas.ch.magnus...@gmail.com> wrote: > Not quite sure what you want to do, but we modify

Pipeline: How to modify Build History status monitor

2019-02-27 Thread Mike Craig
Hello, Prior to using declarative pipeline, we were able to modify the Build History to indicate information we wanted to see. We are using a shared "terraform-deploy" pipeline now and would like to modify this build history to display which project (aka component) was built in that run.

Re: Jenkins junit can't find the test report produce by gtest

2019-01-09 Thread Craig Rodrigues
://jenkins.io/doc/pipeline/steps/xunit/ -- Craig On Wed, Jan 9, 2019 at 7:37 PM Charlie Cheng wrote: > Hello, I want to known why the Junit can't find the gtest report. > > everytime I check the directory, and I am sure that the gtest report is > exist, below is my Jenkinsfile: > >

Re: Indicate changes since last build

2018-09-07 Thread Craig Rodrigues
(5) gather all the changesets you need, and generate an HTML report: https://www.cloudbees.com/blog/publishing-html-reports-pipeline If you can find a plugin to do what you want, that would be great, but I can't think of any offhand. -- Craig On Thu, Sep 6, 2018 at 10:14 AM Wouter Slob wrote:

Re: Indicate changes since last build

2018-09-06 Thread Craig Rodrigues
. currentBuild is of type RunWrapper, and you can see the full documentation for those methods here: https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html If you get something to work, please post a code snippet. -- Craig On Thu, Sep 6

Re: How to use NodeLabel Parameter Plugin in Declarative Pipeline ?

2018-09-05 Thread Craig Rodrigues
I haven't tried it, but see if this example works for you: https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/trigger-job-on-all-nodes/triggerJobOnEveryNode.groovy#L14 -- Craig On Mon, Sep 3, 2018 at 6:43 AM Wramberg wrote: > Im trying to use the NodeLabel Parame

Re: Can I have a reusable “post” block for my jenkins pipelines?

2018-08-20 Thread Craig Rodrigues
red 888, I want the exact same thing, i.e. a common post method which I can pass arguments to, such as: commonPost{email='ema...@somewhere.blah', notifySlack=true} etc. If you get something to work, please post a reference to an existing pipeline with this. Thanks! -- Craig On Mon, Aug 20

Re: Blue Ocean test results show incorrect time

2018-08-16 Thread Craig Rodrigues
I encountered the same problem and reported the issue here: https://issues.jenkins-ci.org/browse/JENKINS-52944 -- Craig On Thu, Aug 16, 2018 at 12:07 PM Sean Talts wrote: > I'm also having this problem - I would be fine with Jenkins requiring > either ms or s, but we use the performanc

Re: pipeline: parameters documentation.

2018-08-13 Thread Craig Rodrigues
see the different types of parameters which are available, and the code necessary to use them. -- Craig On Mon, Aug 13, 2018 at 10:26 PM Craig Rodrigues wrote: > I submitted this pull request which got accepted: > > https://github.com/jenkins-infra/jenkins.io/pull/1711 > > and now there

Re: pipeline: parameters documentation.

2018-08-13 Thread Craig Rodrigues
I submitted this pull request which got accepted: https://github.com/jenkins-infra/jenkins.io/pull/1711 and now there are more examples of parameters at: https://jenkins.io/doc/book/pipeline/syntax/#parameters for *text*, *choice*, *password*, *booleanParam*, and *file* parameters. -- Craig

Re: Post build step to perform some SVN actions

2018-08-13 Thread Craig
I'm still stuck with this, does anyone have any suggestions? Thanks in advance! On Tuesday, 31 July 2018 09:20:42 UTC+1, Craig wrote: > > Hi, > > I'd like to perform some svn actions after a build, such as tagging the > built artefacts. > There was a plugin > https://wi

Re: Pipeline: BUILD_URL for Blue Ocean

2018-04-20 Thread Craig Rodrigues
-- Craig On Wed, Apr 18, 2018 at 4:29 AM, Sverre Moe <sverre@gmail.com> wrote: > We have the following content to mail notifications. > def content "Check console output at ${env.BUILD_URL} to view the > results." > > Where env.BUILD_URL has the following URL

Credentials plugin not saving new SSH credentials

2017-12-08 Thread Craig Rodrigues
"Add", and then try to expand the credentials dropdown, the new credential I added does not appear and I cannot select it. I don't see any error messages in the UI, nor do I see any error messages in the logs. Any ideas? HELP! :) -- Craig -- You received this message because you are su

Re: Pinning a node to a particular workspace in jenkins pipeline?

2017-09-06 Thread Craig Silverstein
the lists of free and used workspaces myself. I do like the fact there's no stashing required, though. :-) craig On Wednesday, September 6, 2017 at 2:26:49 PM UTC-7, Martin d'Anjou wrote: > > The External Workspace Manager Plugin > <https://wiki.jenkins.io/display/JENKINS/External+Works

Re: Pinning a node to a particular workspace in jenkins pipeline?

2017-09-05 Thread Craig Silverstein
to take. craig On Tuesday, September 5, 2017 at 1:21:27 PM UTC-7, ok999 wrote: > > i have ran into this in the past, but we manage to solve this by assigning > a workspace for each build. there is a dsl - ws(). > > Another thing regarding the executor while waiting for

Pinning a node to a particular workspace in jenkins pipeline?

2017-09-05 Thread Craig Silverstein
e executor while waiting for the prompt to be executed (it could be a while). Are there any other ways to solve this problem? What are the best practices here? I feel I must be missing something in how `node` is supposed to be used. craig -- You received this message because you are

Re: Parameterized build driven by Jenkinsfile

2017-08-10 Thread Craig Barr
', defaultValue: 'dev', description: '') > ]) > ]) > > /Jacob > > > On 2017-08-09 03:54, Craig Barr wrote: > > Thanks Jacob and Alex! > > Which version of Jenkins does this work for you on? > I've tried with the following Jenkinsfile on 2.46.1 but no matt

Parameterized build driven by Jenkinsfile

2017-08-02 Thread Craig Barr
In Jenkins you can select "This project is parameterized" and add parameters. My question is simple: Can this parameter metadata be populated by an alternative version-controlled source? For example, can I define parameter definitions in my Jenkinsfile so that when I click Build Now it will

Pipeline: pass all parameters down to downstream jobs

2017-06-06 Thread Craig Rodrigues
be great. -- Craig -- 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 vi

Blue Ocean and Performance Plugin: How to make logs and test results visible?

2017-03-27 Thread Craig Rodrigues
ce Plugin need to do in order to make the "Performance Report" visible in the Blue Ocean UI? Thanks. -- Craig -- 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, se

Re: Jenkins and the IBM i Series

2016-11-16 Thread Phil Craig
Hi Allen, I'm working on the same thing but not making much progress. I have the IBMi box defined as a slave node on our Jenkins server and have -Dfile.encoding=ISO8859_1 and -text defined on the slave jar startup config but I still get garbage (presumably ebcdic chars) back in the console

Re: Pipeline: Check if build parameter exist

2016-09-29 Thread Craig Rodrigues
meter does not exist, as pointed out by Michael Lasevich. -- Craig On Thu, Sep 29, 2016 at 1:37 AM, Sverre Moe <sverre@gmail.com> wrote: > I can no longer check if a build parameter exist before accessing it > > This has worked previously before I updated Jenkins and the Pipeli

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 <sverre@gmail.com> wrote: > Same solutions I thought about, to put a try-catch su

Re: Pipeline: Sending email on failed and fixed builds

2016-06-23 Thread Craig Rodrigues
/master/scripts/build/build-test.groovy#L233 You need to set and check the currentBuild.result value, and do different things based on that. -- Craig On Thu, Jun 23, 2016 at 12:20 AM, Sverre Moe <sverre@gmail.com> wrote: > One benefit with sending email in pipeline script is bette

Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-21 Thread Craig Rodrigues
To debug the problem, would you be comforable modifying and rebuilding the Durable Task plugin? You could temporarily comment out the code that removes the script.sh and see what is going on. I had to do that before to debug problems with the durable task plugin. -- Craig On Mon, Jun 20, 2016

Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-20 Thread Craig Rodrigues
of the durable-ae020333/script.sh that would help debug things. -- Craig On Mon, Jun 20, 2016 at 11:21 AM, Mike Chmielewski < mike.chmielew...@gmail.com> wrote: > [t1] Running shell script > sh: /t1@tmp/durable-ae020333/script.sh: bash: > bad interpreter: No such file or directory

Re: Run pipeline flyweight executors off of master

2016-06-13 Thread Craig Rodrigues
/JENKINS/NodeLabel+Parameter+Plugin ). -- Craig On Mon, Jun 13, 2016 at 2:03 PM, Eli White <e...@wealthfront.com> wrote: > We follow the Jenkins configuration best practices and have no executors > on our master node and force everything to run on our agents. > > We ar

Re: Getting started with Pipeline

2016-06-10 Thread Craig Rodrigues
;https://github.com/twisted/twisted.git; def gitBranch if (getBinding().hasVariable("GIT_BRANCH")) { gitBranch = GIT_BRANCH } node { stage "Check out from Git" git branch: "$gitBranch", url: "$gitUrl" stage "Build code" sh "sudo -Hs b

Re: Multiple SCM plugin CANNOT track multiple revisions (i.e. branches or tags) on one repository?

2016-06-10 Thread Craig Rodrigues
'https://hg.python.org/cpython', subdir: 'directory1' ]) stage "Checkout Python 2.7 source code" checkout([$class: 'MercurialSCM', credentialsId: '', revision: '2.7', source: 'https://hg.python.org/cpython', subdir: 'directory2']) } -- Craig On Thu, Jun 9

Re: pipeline global library no longer works on latest builds on Windows

2016-06-01 Thread Craig Rodrigues
to the list. -- Craig On Wed, Jun 1, 2016 at 3:22 PM, <tomwilson001...@gmail.com> wrote: Currently, I only call one variable/function under the vars directory. If > the pipeline global library mechanism is so unstable, is there anyway I can > call the function but under a different loca

Re: What I miss with Pipeline: Console output from each node

2016-06-01 Thread Craig Rodrigues
xecute in parallel, so would be curious as to how it works for you -- Craig On Wed, Jun 1, 2016 at 3:07 AM, Sverre Moe <sverre@gmail.com> wrote: I have been using Jenkins Multi-configuration. With my move over to > Pipeline scripts and Jenkinsfile I still build on multiple nodes/slaves.

Re: [Blue Ocean] A new user experience project for Jenkins

2016-05-28 Thread Craig Rodrigues
On Fri, May 27, 2016 at 3:12 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > > > On 27 May 2016 at 07:59, Craig Rodrigues <rodr...@freebsd.org> wrote: > >> >> Here are some of the pain points I've encountered with Pipeline scripts: &g

Re: [Blue Ocean] A new user experience project for Jenkins

2016-05-27 Thread Craig Rodrigues
figure out what is going on. -- Craig On Thu, May 26, 2016 at 3:21 PM, James Dumay <jdu...@cloudbees.com> wrote: > > Today we’ve made the source code <https://github.com/cloudbees/blueocean> > available on Github, written a blog post > <https://jenkins.io/blog/2016/05/26

Re: Unable to stop pipeline job

2016-05-26 Thread Craig Rodrigues
right now, but you can monitor that ticket if you wish. -- Craig On Thu, May 26, 2016 at 12:45 AM, Sverre Moe <sverre@gmail.com> wrote: > Yes I did and it did not do anything. A bit cumbersome if I would have to > enter the build console to cancel again. > > onsdag 25. m

Re: Pipeline script for Build Trigger

2016-05-16 Thread Craig Rodrigues
Did you try doing this: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-TriggerabuildwhenachangeispushedtoGitHub On Mon, May 16, 2016 at 2:54 PM, John Chandra wrote: > Hi All, > > Is there any way to configure a build trigger using pipeline script in >

Re: Parameterized Build Plugin

2016-05-16 Thread Craig Rodrigues
let me know if anyone else experienced this. > > https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build > > > There is no such thing as a "Parameterized Build plugin". Re-read that web page. It gives details for how to configure an existing Jenkins job by clicking on *This bu

Re: Exception when I try to trigger buildflow job from workflow job

2016-05-11 Thread Craig Rodrigues
Hi, Sorry for the delay. This fix is now in build-flow-plugin 0.19. Please give it a try and provide feedback. -- Craig On Sun, Jan 24, 2016 at 1:42 PM, EK <eyas.ko...@gmail.com> wrote: > Hi Craig, > > Looks like issue is solved and now can run build flow job from workflo

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Craig Rodrigues
/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy -- Craig On Thu, May 5, 2016 at 12:24 PM, Mike Caspar <m...@caspar.com> wrote: > try { > step 1 > step 2 > step 3 > step 4 > step 4 > } > catch > { > task {send email of build status} > } > fina

Re: general Pipeline help

2016-05-04 Thread Craig Rodrigues
the WindowsBatchScript step also doesn't have a useful return value. I think what you can try doing, is see if the bat step throws an exception if the underlying Windows command fails. If that is the case, you can try catching exceptions, like how I did in build-test.groovy. Good luck! -- Craig On

Re: Jenkins Pipeline: How to fail on junit results

2016-04-29 Thread Craig Rodrigues
currentBuild.result to FAILURE, and then re-throw the exception. It took me a long time to figure it out. :) -- Craig On Thu, Apr 7, 2016 at 1:17 AM, Frank Hask <nikolicja...@gmail.com> wrote: > Hi all, > > i am creating build pipeline and i am stuck at the integration tests stage.

Re: email-ext as build step

2016-04-28 Thread Craig Rodrigues
Niksan, Take a look at this Pipeline script I wrote: https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L233 which sends e-mail as a post-build step in case of failures. -- Craig On Thu, Apr 28, 2016 at 7:44 AM, 'Niksan' via Jenkins Users < jenkinsci-us

Re: Pipelines, iterating maps and more headaches

2016-04-27 Thread Craig Rodrigues
scripts, especially with respect to global variables. I am new to Groovy, and it took me a long time to understand what is going on with Pipeline scripts, before I started digging into the code to figure things out. -- Craig On Tue, Apr 26, 2016 at 4:18 PM, Norbert Lange <nolang...@gmail.com>

Re: Trigger arbitrary build/post-build steps from pipeline

2016-04-25 Thread Craig Rodrigues
>From a pipeline, You cannot invoke methods in other Jenkins plugins unless those plugins have been modified to support pipelines. See: https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md https://github.com/jenkinsci/pipeline-plugin/blob/master/DEVGUIDE.md -- Cr

Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
/robot-plugin/pull/12 For Jacoco, you should be able to figure out what to use by going to the configuration page for your Jenkins job. Then click on: - *Snippet Generator* - *Step: General Build Step* - then toggle the build step until you see something for Jacoco -- Craig On Mon, Apr 11

Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
What results display are you referring to? I have a Pipeline job which uses JUnitArchiver and see the test results graphs: https://jenkins.freebsd.org/job/FreeBSD_HEAD/ -- Craig On Mon, Apr 11, 2016 at 10:29 AM, Matt Friedman <matt.fried...@gmail.com> wrote: > Thanks Craig, >

Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
Hi, There is an example for using JUnitArchiver in the tutorial: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#recording-test-results-and-artifacts -- Craig On Mon, Apr 11, 2016 at 6:15 AM, Matt Friedman <matt.fried...@gmail.com> wrote: Thanks much David >

Re: Plugin checkUpdates not working, can't upgrade plugins

2016-04-08 Thread Craig Rodrigues
ttps://jenkins.freebsd.org/pluginManager/checkUpdates>"* So it looks like 2 months ago, the update-center.json became big enough to trigger this problem. Setting the *client_max_body_size* value as specified in https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+pro

Plugin checkUpdates not working, can't upgrade plugins

2016-04-08 Thread Craig Rodrigues
/current/update-center.json without a problem, so there don't seem to be any network connectivity issues to the Jenkins updates site. Any ideas what is wrong? Thanks. -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubs

Re: Storing job configurations with source code in VCS

2016-04-07 Thread Craig Rodrigues
Hi, Take a look at the SCM Sync configuration plugin https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin It allows users to modify their job configuration, but keeps track of the changes in Git or Subversion. -- Craig On Wed, Mar 9, 2016 at 8:04 PM, Patrick van der Velde

Re: Avoiding job failure email notification when an old job is cancelled by a newer job when entering a throttled stage

2016-02-03 Thread Craig Rodrigues
don't know if there is a better way to do it, but that's what I got to work. -- Craig On Wed, Feb 3, 2016 at 8:50 AM, Meiteimacha999 <nirish.ok...@gmail.com> wrote: i have my workflow set up like so. This sends an email notification when a > job fails. > > > > But the issue, is

Re: Setting global variables with cps-global-libs scripts

2016-02-03 Thread Craig Rodrigues
cho "emailDevOpsTeam: ${emailDevOpsTeam}" } and this in your Jenkinsfile node { globals.beginBuildNotificationTestEmail()} I'm new to groovy, so if there is a better way to do it, let me know. However, this example does work. -- Craig On Wed, Feb 3, 2016 at 3:45 PM, Tom Kierz

Re: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-02-01 Thread Craig Rodrigues
Yes, you would need to install HTTPBuilder. You can decide if you want to install additional groovy libraries, or if you prefer switch to a scripting language of your choice, which you can call from inside a Jenkins job in order to access a REST service. -- Craig On Sun, Jan 31, 2016 at 2:49 PM

Re: create custom workspace for each execution of a job

2016-02-01 Thread Craig Rodrigues
/jenkinsci/workflow-plugin/blob/master/aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/DeleteDirStepTest.java -- Craig On Monday, February 1, 2016, niristotle okram <nirish.ok...@gmail.com> wrote: > > i see an option "deleteDir()", can i use something like th

Re: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-01-31 Thread Craig Rodrigues
it: https://www.google.com/search?q=groovy+rest+api If you want to use C#, you can look at using the restsharp library: https://www.google.com/search?q=c+sharp+rest+api -- Craig On Sun, Jan 31, 2016 at 9:20 AM, Scott Richmond <s.t.richm...@gmail.com> wrote: > I require the ability to HTTP

Re: [workflow] Problems sending out e-mails on build failures

2016-01-30 Thread Craig Rodrigues
be nice if the Mailer step printed out a warning in the log if currentBuild.result is null. -- Craig On Mon, Jan 25, 2016 at 4:42 PM, Craig Rodrigues <rodr...@freebsd.org> wrote: > This build which failed: > https://jenkins.freebsd.org/job/FreeBSD_HEAD/74/flowGraphTable/ > > uses th

Re: No workspace variable during workflow / pipeline build?

2016-01-27 Thread Craig Rodrigues
Hi, You could also work around this by doing: node() { workspace = pwd() // rest of code here } See: https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy for an example. -- Craig On Wed, Jan 27, 2016 at 10:49 AM, Eric Pyle <eric.p...@cd-adapco.com>

Re: pipelines and IRC

2016-01-25 Thread Craig Rodrigues
/workflow-plugin-tutorial-writing-a-step-impl/ That would be the best place to start. -- Craig On Mon, Jan 25, 2016 at 3:06 AM, Erwan de Ferrières < erwan.de-ferrie...@whaller.com> wrote: > hi, > > I'm using the IRC plugin ( > https://wiki.jenkins-ci.org/display/JENKINS/

Re: [Pipeline/Workflow] API for "parallel" metadata

2016-01-25 Thread Craig Rodrigues
. -- Craig On Mon, Jan 25, 2016 at 2:46 PM, Yotam Shapira <yotamshap...@gmail.com> wrote: > Hi, > > I have a parallel workflow that I want to extract some metadata from. For > example, for the following workflow: > parallel { > "a": node ('...'

Re: [workflow] Problems sending out e-mails on build failures

2016-01-25 Thread Craig Rodrigues
nd did not send out mail on failure. What is going on? The blog post you referred to is OK for simply sending out e-mail, but I want to use the logic in the Mailer class, because it has a lot of good stuff for sending out e-mails on failures, and when failures turn into successes. Thanks. -- Craig

Re: pipelines and IRC

2016-01-25 Thread Craig Rodrigues
Notify.groovy > > > for now and just use netcat to send messages to IRC. > > The example you gave uses HTTP web hooks exposed by Slack. That example isn't useful at all for IRC. It would be better to modify the Jenkins IRC plugin to by pipeline/workflow compatible. -- Craig

Re: Exception when I try to trigger buildflow job from workflow job

2016-01-24 Thread Craig Rodrigues
Hi, It looks like you are running under Windows. I'm not sure if the tests run under Windows. Try: mvn -DskipTests install -- Craig On Jan 24, 2016 4:05 AM, "EK" <eyas.ko...@gmail.com> wrote: > > Hi , > I tired to follow your instruction to build the buildflow plugin

Re: Exception when I try to trigger buildflow job from workflow job

2016-01-23 Thread Craig Rodrigues
-- Craig On Sat, Jan 23, 2016 at 12:49 PM, Craig Rodrigues <rodr...@freebsd.org> wrote: > Hi, > > Thanks for posting your sample scripts. > I was able to reproduce your problem. > > It looks like the Build Flow plugin needs to change to use the Run class, > instead

Re: Exception when I try to trigger buildflow job from workflow job

2016-01-23 Thread Craig Rodrigues
Hi, Thanks for posting your sample scripts. I was able to reproduce your problem. It looks like the Build Flow plugin needs to change to use the Run class, instead of AbstractBuild in order to be compatible with workflow/pipeline plugin. -- Craig On Sat, Jan 23, 2016 at 12:22 AM, EK <eyas

Re: [workflow plugin] use case question

2016-01-21 Thread Craig Rodrigues
Hi, Node Label Parameter Plugin version 1.7.1 and higher has my fix and now works with Workflow. -- Craig On Thursday, January 21, 2016, Eric Pyle <eric.p...@cd-adapco.com> wrote: > I think you would need the NodeLabel Parameter Plugin. And as Craig > Rodrigues recently posted,

Re: Jenkins pipeline - Can Workflow jobs be parameterized?

2016-01-16 Thread Craig Rodrigues
reebsd.org/pipermail/freebsd-testing/2016-January/001285.html -- Craig On Saturday, January 16, 2016, Scott Richmond <s.t.richm...@gmail.com> wrote: > I have created a simple Workflow job and want to be able to trigger it via > URL with some parameters. However using the Parameterize

Re: Workflow (pipeline) visual editor

2016-01-13 Thread Craig Rodrigues
ditor-plugin > > I played with that plugin here: https://twitter.com/rodrigc6/status/687215217646907392 Very nice! The ability to see a graphical view of the workflow and the code at the same time is very useful. -- Craig -- You received this message because you are subscribed to the Googl

Re: Workflow (pipeline) visual editor

2016-01-11 Thread Craig Rodrigues
on "modern" Javascript components becoming more integrated with the Jenkins ecosystem! -- Craig On Mon, Dec 21, 2015 at 2:18 AM, Michael Neale <michael.ne...@gmail.com> wrote: > (I posted this to jenkins-dev last week, but thought some users here may > be interested). >

[workflow] SCM polling not working if build never done before?

2016-01-02 Thread Craig Rodrigues
://jenkins.freebsd.org/job/FreeBSD_HEAD/scmPollLog/ In the log: *Started on Jan 2, 2016 6:28:36 PM no previous build to compare to Done. Took 0 ms No changes * If no previous build has been done, shouldn't SCM polling trigger a new build instead of bailing? -- Craig -- You received this message

Re: [workflow] SCM polling not working if build never done before?

2016-01-02 Thread Craig Rodrigues
out that? How can I configure this behavior? -- Craig -- 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.

[workflow] how to tell if build parameter is set?

2015-12-29 Thread Craig Rodrigues
) if (mybool) { echo DID_NOT_DEFINE_THIS echo getProperty("DID_NOT_DEFINE_THIS") } else { echo "DID_NOT_DEFINE_THIS is not defined" }} Is that the best way to do it, or is there a better way? -- Craig -- You received this message because you are subsc

Re: [workflow-plugin] RFC: workflow script to Build/Boot/Test FreeBSD

2015-12-28 Thread Craig Rodrigues
plugin/blob/master/basic-steps/CORE-STEPS.md#plain-catch-blocks This text: *For that, check if currentBuild.previousBuild exists, what its .result is, etc.* needs to be fleshed out with a proper example for the "mail" DSL function. -- Craig On Mon, Dec 28, 2015 at 7:31 PM, Micha

Re: [workflow-plugin] Example using NodeLabel Parameter plugin?

2015-12-27 Thread Craig Rodrigues
Hi, It turns out that the NodeLabel Parameter plugin doesn't work with the workflow plugin: https://issues.jenkins-ci.org/browse/JENKINS-32209 I submitted this fix: https://github.com/jenkinsci/nodelabelparameter-plugin/pull/10 -- Craig On Tue, Dec 22, 2015 at 4:41 PM, Craig Rodrigues <r

Re: [workflow-plugin] Warnings plugin not parsing console?

2015-12-22 Thread Craig Rodrigues
console output before invoking the warnings plugin? That would be "better" than a sleep. -- Craig On Tue, Dec 22, 2015 at 9:37 AM, Ullrich Hafner <ullrich.haf...@gmail.com> wrote: Hmm, seems that the workflow plug-in does not handle the console in the > same way as fo

[workflow-plugin] Warnings plugin not parsing console?

2015-12-22 Thread Craig Rodrigues
unHealthy: '']) } This code example triggers warnings with the clang compiler, which I can see in the log, but the warnings plugin is reporting 0 warnings. Any ideas how I can fix this? Thanks. -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkin

Re: Official Jenkins Training

2015-12-02 Thread Craig Rodrigues
. Take that list of topics to the different vendors offering training, and ask them if they cover your topics in their training. -- Craig On Wed, Dec 2, 2015 at 12:10 AM, Jorge Peña Cotarelo <jorge.p...@king.com> wrote: > Hello from Barcelona, > > I am an experience

Re: [workflow-plugin] Sample script for deleting a workflow workspace?

2015-10-01 Thread Craig Rodrigues
comprehensive doc which lists all the functions? I don't know the best approach, but since you have a doc writer helping, maybe they can suggest a good approach. -- Craig -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: [workflow-plugin] Sample script for deleting a workflow workspace?

2015-09-29 Thread Craig Rodrigues
from a workflow script, that they be documented in TUTORIAL.md as well. -- Craig On Mon, Sep 28, 2015 at 12:59 PM, Oleg Nenashev <o.v.nenas...@gmail.com> wrote: > If you specify a boolean parameter, the Workflow code would be... > > node { >if (clean_dir) {

[workflow-plugin] Sample script for deleting a workflow workspace?

2015-09-10 Thread Craig Rodrigues
(3) If "do_clean" is set to 1, then logic in the workflow will be triggered which cleans out the files, otherwise if "do_clean" is set to 0, then no cleaning occurs. If this is possible, could someone post a code snippet of a workflow which does this? Thanks. -- Craig -- Yo

Re: Installation error in Jenkins 1.617

2015-06-08 Thread Craig Rodrigues
Hi, I advise you to: (1) Install Homebrew: http://brew.sh/ (2) Install Jenkins using Homebrew: http://brewformulas.org/Jenkins -- Craig On Mon, Jun 8, 2015 at 2:48 PM, Nisarg Raval nisargrava...@gmail.com wrote: Hey, I am trying to install Jenkins 1.617 on Mac OS version-10.10.3

Re: [workflow] - First failing Newbie (dir) steps

2015-06-01 Thread Craig Rodrigues
Out Current Workspace. That bug got marked as a duplicate. There are definitely issues with respect to cleaning up workspaces used by the workflow plugin. -- Craig On Wed, May 27, 2015 at 8:23 AM, Markus Shorty Uckelmann sho...@koeln.de wrote: Hi all, I just started to play a bit

Unstoppable Jenkins job?

2015-05-26 Thread Craig Rodrigues
on how I can diagnose why this is stuck? I'd rather not restart the Jenkins server to fix this -- Craig -- 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

Re: Workflow 1.5 problems

2015-05-13 Thread Craig Rodrigues
For (1) I have created https://issues.jenkins-ci.org/browse/JENKINS-28382 For (2), I hope that JENKINS-25550 gets fixed. I tried Workflow 1.6, and encountered the same problem. I've found the Workflow plugin to be unusable due to this issue, unfortunately. -- Craig On Thu, Apr 23, 2015 at 10

Workflow 1.5 problems

2015-04-13 Thread Craig Rodrigues
, but I have seen it a few times. Are these known problems? Are there any workarounds? -- Craig -- 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

Cancelling a build doesn't seem to send a TERM signal to the running process

2014-11-12 Thread Craig Phillips
I have enabled xtrace in my shell script, which installs some files in xinetd and removes them when it exits, via an exit handler. My handlers use some exit handler functions that are included in all my build scripts. However, I've noticed clean up is not running for this particular script

Re: confirming the build before starting

2014-11-12 Thread Craig Phillips
What exactly didn't work about the solution you got from stack overflow? Are you creating a custom web service for submitting the builds from, or perhaps hosting an HTML page on the Jenkins server for this? -- You received this message because you are subscribed to the Google Groups Jenkins

Re: Jenkins service started and then stopped

2014-10-21 Thread Craig
. Note that I'm using XP, I daresay that the Event Log in Win7 is very different. Craig -- 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

Email only after all retries fail

2014-08-05 Thread Harpel, Craig
I'm trying to get Jenkins to send email to recipients only after the last attempted retry of a job fails. In other words, I don't want them getting email for all the failures; just if they *all* fail. Is there a way to do that with the email-ext plugin and naginator? Thanks. Craig -- You

RE: Email only after all retries fail

2014-08-05 Thread Harpel, Craig
that which tells you it is the last attempt, you could use a pre-send script to cancel sending the email unless that condition was met. On Tue, Aug 5, 2014 at 1:44 PM, Harpel, Craig char...@mitre.orgmailto:char...@mitre.org wrote: I’m trying to get Jenkins to send email to recipients only after

Createing job through CLI

2014-07-02 Thread Mike Craig
Hello, I am using the Jenkins CLI to pull down a list of 'template' jobs, search and replace for our release version, then create a job using the job XML which I have pulled from Jenkins. The template job uses promoted builds plugin to have CI, Directed Build, ReleaseCandidate,

Re: Jenkins service started and then stopped

2014-05-08 Thread Craig
Thanks KP this was a problem for me and clearing the Windows Event Logs allowed Jenkins to start. Interestingly nothing at all was written to any of the logfiles. On Wednesday, 18 May 2011 15:42:36 UTC+1, KP wrote: I had similar issues... nothing to see in the normal log, event log, etc...

  1   2   >