Re: declarative pod throwing error, following examples exactly...

2018-08-30 Thread Carlos Sanchez
Extra : after cat On Thu, Aug 30, 2018, 23:39 Gabe Nydick wrote: > Config below, getting the error immediately below. I'm interpreting the > error as the yaml is malformed, but it doesn't appear to be. > > hudson.remoting.ProxyException: > com.fasterxml.jackson.databind.JsonMappingException: Can

Re: declarative pipeline syntax seems limited, am I missing something?

2018-08-30 Thread Damien Coraboeuf
Hi, You can put this in a `script` section, and put what you need in environment variables for the rest of the stages / steps: steps { script { ... def shortGitCommit = "${gitCommit[0..10]}" as String env.SHORT_GIT_COMMIT = shortGitCommit ... } echo "Short Git Com

Re: Running Jenkins in Docker on Windows 7 - missing info on Getting started with the Guided Tour page

2018-08-30 Thread Mark Waite
The example intentionally has you run Jenkins without using Docker. The requirement for Docker comes in later steps of that tutorial. On Thu, Aug 30, 2018 at 5:53 PM Tony C wrote: > > Under Prerequisites, > > I've just installed the Docker toolbox on Windows 7 as directed by this > page: > > ht

Running Jenkins in Docker on Windows 7 - missing info on Getting started with the Guided Tour page

2018-08-30 Thread Tony C
Under Prerequisites, I've just installed the Docker toolbox on Windows 7 as directed by this page: https://jenkins.io/doc/pipeline/tour/getting-started/ Under Download and run Jenkins downloading jenkins.war is *outside *of Docker. How do you download & run jenkins.war INSIDE of the Docker im

declarative pod throwing error, following examples exactly...

2018-08-30 Thread Gabe Nydick
Config below, getting the error immediately below. I'm interpreting the error as the yaml is malformed, but it doesn't appear to be. hudson.remoting.ProxyException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at

declarative pipeline syntax seems limited, am I missing something?

2018-08-30 Thread Gabe Nydick
How do I replicate the following functionality? I can't seem to find a way def myRepo = checkout scm def gitCommit = myRepo.GIT_COMMIT def gitBranch = myRepo.GIT_BRANCH def shortGitCommit = "${gitCommit[0..10]}" def previousGitCommit = sh(script: "git rev-parse ${gitCommit}~", returnStdout: true)

jenkins jobs that uploads a file into a python container

2018-08-30 Thread 'matcho batcho' via Jenkins Users
0down votefavorite am new into *jenkins*. am trying to do a *jenkins job* that uploads a file into a *python container* and then *reload the container*. could you guys please help me -- Y

Howto change the output/workspace of a git clone job?

2018-08-30 Thread Gorgonz ola
env: opensuse leap 15 well, I'm completely new in using jenkins. In fact I just did my first project, that only clones a specific git branch and thats it. This works fine and the files are copied to /var/lib/jenkins/workspace. But it is a website project, where I prefer /srv/www/htdocs/. Where

How do I send a raw TCP request from jenkins pipeline?

2018-08-30 Thread red 888
There is the excellent "httpRequest" I can use in a pipeline build step. But now I want to send a raw TCP request, I could not find a plugin for this. Is there a supported plugin feature for this? I want to avoid shelling out for this. This is an example of the raw TCP request I am making:

Re: Multibranch workflow pipeline and email notifications

2018-08-30 Thread Vitaly Karasik
Denis, thank you. You're right and "DevelopersRecipientProvider" does provide comitter's email. On Wednesday, August 29, 2018 at 3:21:17 PM UTC+3, Denis Mone wrote: > > I believe Jenkins gather the mail addresses from the commits. > If you have a stage that clones/updates your code see if there

Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-30 Thread Ewelina Wilkosz
Hi Edd, "reload existing configuration" won't restart your Jenkins, it takes a second, maybe a couple of seconds to apply new configuration but Jenkins is not going down regarding the API I encourage you to join our gitter chat room: https://gitter.im/jenkinsci/configuration-as-code-plugin wher