2017 03 01

      • villav has quit
      • Mapatti has quit
      • gswallow has quit
      • u1n1k0n1o1w1n has quit
      • Rev_REB has quit
      • Naktibalda has quit
      • spuder joined the channel
      • si joined the channel
      • si is now known as Guest11743
      • antoniobeyah has quit
      • Guest11743
        hi, newbie question. building a declarative pipeline with source in git, but every time I want to just try something out I have to change the jenkinsFile, commit it to the repo, then run the pipeline - can I bypass this while I'm learning and changing the file 60 times a day?
      • venmx has quit
      • trepatudo has quit
      • trepatudo joined the channel
      • benstein
        Guest11743: I wish, you can paste it into the jenkins project instead of using scm (git)
      • denisk joined the channel
      • mase_wk has quit
      • u1n1k0n1o1w1n joined the channel
      • Guest11743
        benstein: Oh, OK, thanks. Was hoping you could just 'suspend' the get from scm and edit the inplace version, but that didnt work
      • denisk has quit
      • PiRho
        @Guest11743: When you create a Pipeline, there's a Pipeline definition where there's a dropdown. You can choose either "Pipeline script" or "Pipeline script from SCM". Choose "Pipeline script" instead.
      • denisk joined the channel
      • benstein
        When using Pipeline script from SCM. How do I reference the <project>@script directory that was checked out?
      • tang^
        you probably don't need to?
      • PiRho has quit
      • cr3 has quit
      • FatDarrel has quit
      • awallace-cray has left the channel
      • gusmat joined the channel
      • Guest11743 has quit
      • ninjada has quit
      • benstein
        tang^: yes, there are propery files in the same repo as the pipeline script
      • ninjada joined the channel
      • spuder has quit
      • tang^
        your pipeline script is running in your workspace where your property files should be
      • benstein
        unfortunately readProperties defaults: default_build_props, file: foo.properties doesn't think so
      • iadknet________ joined the channel
      • readProperties says cannot find file. filesystem shows it's in [email protected] and readProperties is looking in foo directory
      • ninjada has quit
      • the only workaround is to use git to check out again
      • iadknet_________ joined the channel
      • iadknet_______ has quit
      • tang^
        declarative or scripted pipeline? (declarative uses pipeline {} as the root block)
      • iadknet________ has quit
      • hare_brain has quit
      • iadknet_________ has quit
      • benstein
        it is scripted
      • jdelreal has quit
      • cilefen_ joined the channel
      • tang^ has quit
      • mase_wk joined the channel
      • cleclerc joined the channel
      • FatDarrel joined the channel
      • cilefen_ has quit
      • cleclerc has quit
      • cl-ryan joined the channel
      • u1n1k0n1o1w1n has quit
      • cl-ryan
        Has anybody run into issues with the GitHub Pull Request plugin setting an extra status?
      • e.g. if you set a name "flake8", it will report its status as both "flake8" and "default"
      • digitalirony joined the channel
      • dgarstang joined the channel
      • u1n1k0n1o1w1n joined the channel
      • digitalirony
        hello. I am a bit new to jenkins and jenkins pipelines specifically. I am trying to build an OVA using packer, which is working fine. But at the end I want to archive the artifact so that my devs can download it from jenkins(and eventually so I can pass it to another job). However at the archive artifact step, it always fails, and I am not sure why
      • Here is part of the code, and the output:
      • mattupstate has quit
      • fax has quit
      • tphummel has quit
      • dgarstang has quit
      • Rev_REB joined the channel
      • aruns joined the channel
      • indistylo joined the channel
      • aruns has quit
      • ninjada joined the channel
      • mase_wk has quit
      • netcho_ joined the channel
      • tfennelly joined the channel
      • netcho_ has quit
      • tfennelly has quit
      • recampbell has quit
      • TsunamiFoodTarge joined the channel
      • ninjada has quit
      • ninjada joined the channel
      • iadknet_________ joined the channel
      • aruns__ joined the channel
      • ninjada has quit
      • indistylo has quit
      • digitalirony has left the channel
      • iadknet_________ has quit
      • sudiptomanna has quit
      • abayer has quit
      • endir joined the channel
      • ninjada joined the channel
      • benstein has quit
      • cleclerc joined the channel
      • CodeMouse92 joined the channel
      • TsunamiFoodTarge has quit
      • CodeMouse92__ has quit
      • CodeMouse92 is now known as CodeMouse92__
      • cleclerc has quit
      • ninjada has quit
      • aruns__ has quit
      • crissae joined the channel
      • zerocool_ joined the channel
      • Ylbam has quit
      • crissae
        Evening. I have a question about groovy parallel closures. I have a for loop that wants to step through a list of machine names, builds a hash table of closures to execute on respective machine name, but when I parallel execute, the closures execute with the (memento? wrong word?) final value my for loop's temporary variable was set to. i.e. the last machine in the list of machines is the value of every parallel closure
      • Should I be structuring these closures to accept an argument? I'm a bit stumped here
      • This is to reduce 6 hand-typed hash values/closures into a for loop, presumably this list that will iterate through could grow to 100
      • jri joined the channel
      • simon_ joined the channel
      • ninjada joined the channel
      • jri has quit
      • simon_
        in a declarative pipeline I can read a file with something "readFile 'data.json", but to assign the file contents to a variable I use "def theData = readFile 'data.json' " and get an error saying "Expected a step at line @ ..."
      • it contains data I want to update and pass through to another stage of the pipeline
      • All the tutorials say to do it this way
      • crissae
        do you have to switch notation to functionname(property: value)... for readFile() ?
      • simon_
        sorry, total newbie to this
      • trying to work through some online resources
      • stage('Run Gauge tests') { steps { def alldata = readFile '.resource' } }
      • crissae
        Someone will correct me I'm sure but, the notation of something like: bat [filename] is the same as a more verbose bat(file: filename) and usually carries more options when using that notation
      • like readFile(file: 'myfilename.txt')
      • perhaps you can only use the shorthand notation if it is on a line by itself, whereas your use is RHS in an assignment.
      • spuder joined the channel
      • that's my first guess
      • simon_
        thanks, I'll give that a try
      • crissae
        simon_; no problem. for example 'bat' usually doesn't return a value but if you use it like this: output = bat(script: "cmd.exe -args 1 2", returnOutput: true) it will return a value.
      • Something like that anyways. So that might get you on the right path
      • fredg02 has quit
      • Grapes has quit
      • simon_
        crissae: alas, still give me the same error
      • crissae
        you can post the code up on pastebin if you want me to take a look
      • simon_
        OK, thanks - pastebin?
      • crissae
      • might want to scrub any passwords or revealing information first, not sure how new you are if you haven't heard of pastebin
      • simon_
        yeah, totally new to some of this stuff
      • gli joined the channel
      • bmurt joined the channel
      • spuder has quit
      • mmazing has quit
      • d^sh has quit
      • d0nn1e has quit
      • d^sh joined the channel
      • prg3 joined the channel
      • d0nn1e joined the channel
      • FatDarrel has quit
      • crissae
        what is the exact error message?
      • simon_
        WorkflowScript: 32: Expected a step @ line 32, column 5.
      • alldata = readFile (file: '.resource')