withMaven step not working with altDeploymentRepository when jenkins job parameters are specified?

2020-01-02 Thread John Citizen
I am trying to use the the withMaven step in a jenkins pipeline to deploy to a specified repository but I get some errors when using jenkins job parameters. The pipeline script is simple checkout + deploy strategy. Initially I specified the OS (used to specify the jenkins agent label) as a var

Re: Jenkins job dsl- any way to dry run before affecting changes?

2020-01-02 Thread Lee Meador
I gain some confidence that my DSL jobs are not catastrophic by building jobs in test folders first. Of course, this does not help when the job builds java artifacts that try to overwrite something real in my Artifactory. And it truly doesn't help when the test job overwrites LATEST in a Docker ima

Re: (Trivial) Startup Message Awkwardness

2020-01-02 Thread Jeff Thompson
As another native English speaker (USA) I do find the phrasing a little odd. But I don't find that the proposals make much improvement. The phrase "getting ready to work" is kind of awkward and probably wordier than necessary. Maybe there's a way to re-think it, turn it around or something. Ma

Re: Docker error "working directory is invalid"

2020-01-02 Thread Slide
You will probably want to read up on volumes in Docker from the Docker documentation (https://docs.docker.com/storage/volumes/). On Thu, Jan 2, 2020 at 9:25 AM Ralph Connors wrote: > Thanks for your quick answer. I am new to both Docker and Jenkins - how do > I do this? > > On Thu, Jan 2, 2020 a

Re: Docker error "working directory is invalid"

2020-01-02 Thread Ralph Connors
Thanks for your quick answer. I am new to both Docker and Jenkins - how do I do this? On Thu, Jan 2, 2020 at 11:19 AM Slide wrote: > Why are you using an Alpine Linux image with Windows paths? If you want to > run a Linux container, you need to setup your volumes to use Linux paths > mapped to t

Re: Docker error "working directory is invalid"

2020-01-02 Thread Slide
Why are you using an Alpine Linux image with Windows paths? If you want to run a Linux container, you need to setup your volumes to use Linux paths mapped to the Windows equivalent (if you are running this on a Windows host). On Thu, Jan 2, 2020 at 9:14 AM Ralph Connors wrote: > I am working thr

Docker error "working directory is invalid"

2020-01-02 Thread Ralph Connors
I am working through the Maven/Java Jenkins tutorial . I was able work up to running the Pipeline, but the following fails: docker run -d -t -v /root/.m2:/root/.m2 -w C:/Users/ralph.connors/.jenkins/workspace/simple-java-maven-app/