Using jenkins as a base image for Docker conatainer

2017-09-28 Thread jorge alarcon
Hello everyone, I am porting some old code I had for jenkins, version 1.X.X. For this I had a Dockerfile that looked like this: FROM jenkins:1.609.1 MAINTAINER Jorge Alarcon # Create Jenkins Log Folder USER root RUN mkdir /var/log/jenkins RUN chown -R jenkins:jenkins /var/log/jenkins USER

Re: Extended Choice Parameter: can it be reactive?

2017-09-28 Thread Oleg Nenashev
IIRC the reactive behavior is supported only for multi-level selectors there. BR, Oleg вторник, 26 сентября 2017 г., 17:21:32 UTC+3 пользователь Patricio Iglesias написал: > > > > im trying to render dinamically some parameters in jenkins. I have > achieved it with extended parameter plugin

Re: Can't create freeStyleJobs, getting "IllegalArgumentException: Expected named arguments"

2017-09-28 Thread Victor Martinez
As far as I see, stacktrace output seems like a pipeline issue, although the snippet looks like a JobDSL script. Can you confirm if you are running the snippet under the 'Process Job DSLs' build section? Cheers -- You received this message because you are subscribed to the Google Groups

Trying to use the shared library feature, unsuccessfully.

2017-09-28 Thread dandeliondodgeball
ERROR: Library XYZ expected to contain at least one of src or vars directories org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed I created a new repo, and a "src" directory. And added "Wipe out repo and force clone",

git operations over ssh in Windows agent

2017-09-28 Thread Andreas Tscharner
Hello World, I have the following setup: git Server: Debian Linux 9.1 Jenkins master: Debian Linux 9.1 Jenkins agent: Windows 7 I created a user on the git server for building, it is called "build". I also have created a ssh key-pair for that user. The public key is in the authorized_keys

Re: Groovy postbuild plugin: What does containLog check

2017-09-28 Thread Andreas Tscharner
Hello again, On 27.09.2017 17:06, Slide wrote: I believe the match is done line by line and is done using a regular expression, so you may need to play around with that. Thank you! Your are right. The following regex works: if (manager.logContains("(.*)(FAILURES!)(.*)")) {

Re: Multi branch pipeline with slave: path to ".git" folder for each branch

2017-09-28 Thread Mark Waite
On Thu, Sep 28, 2017 at 8:16 AM Elifarley Cruz wrote: > Thanks for the info, Mark! > > One of the reasons I asked for these locations is that I wanted to learn > more about how Jenkins works. > > That's a good reason. Good for you for asking. > Another reason is that I

Re: Multi branch pipeline with slave: path to ".git" folder for each branch

2017-09-28 Thread Elifarley Cruz
Thanks for the info, Mark! One of the reasons I asked for these locations is that I wanted to learn more about how Jenkins works. Another reason is that I initially thought about using it to create a "release notes"-like text containing the Jira issues that were resolved between the last

Select checkout branch dependent on a build parameter

2017-09-28 Thread Christian
Hello, I have a question. I need to select the branch to checkout dependent on a build parameter. And the branch name does *not* equal the parameters. If the parameter equals foo1 I need to checkout branch origin/bar1 and for foo2 origin/bar2. Is that possible? I could only get that far that

Re: Multiple distinct junit/testng reports with Jenkins pipeline

2017-09-28 Thread Cyrille Le Clerc
Hi, FYI There have been an attempt to support names for junit reports and thus support multiple reports per pipeline but the PR didn't get merged https://github.com/jenkinsci/junit-plugin/pull/64 Cyrille On Wednesday, September 27, 2017 at 10:32:13 AM UTC+2, Hyunil Shin wrote: > > thank you

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Stephen Connolly
You just may need to use a different hook. Multibranch listens for the hooks. If you used Git as the SCMSource then that hook is exactly the one to use as it sends the events to the SCM API:

How to Deploy Multiple war file to tomcat

2017-09-28 Thread soumya gupta
I'm Using Jenkins and Tomcat7. if i deploy a single war file in tomcat using Jenkins it's working fine. I tried to deploy multiple different war file in tomcat one by one. first war file was deployed successfully, after that i can't deploy another war file in same tomcat folder. But i want

All pipelines broke after pipeline plugin update

2017-09-28 Thread Thiago Carvalho Davila
Hi, I've updated my pipeline plugins and jenkins to current LTS 2.73.1 and I started getting the error: Here is my declarative pipeline template: PathToTestFiles="tests\\Testfile" pipeline { stages { // ... build stages here stage('Unit Tests') { when { expression { fileExists

Jenkins docker container overrides with "--entrypoint cat" ...

2017-09-28 Thread Eric Tan
Hi, Is there a way to prevent Jenkin from overriding the entrypoint specified in the container image? As shown below in the console output, Jenkins adds "*--entrypoint cat*" which overrides my own entrypoint. $ docker run -t -d -u 1000:1000 -w

Re: Accessing a variable in shell

2017-09-28 Thread Idan Adar
Indeed. This is long resolve. Thanks! On Sunday, July 30, 2017 at 2:56:47 PM UTC+3, Idan Adar wrote: > > Given the following script block in a stage (Declarative pipeline), how > can I access the repoName variable? > > stages { > stage("...") { > script { > for (String

How to Setup automatically GitHub and Jenkins integration for pull request builder?

2017-09-28 Thread Ruchi Kumari
Hiii, I am able to do jenkins GitHub pull request manually. i wanted to do it automatic settings for this Jenkins GitHub pull request. can u guide me how to do automatic settings for this. I will b very thankfull. Thanks & Regards, Ruchi kumari -- You received this message because

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Eric Tan
Stephen, Thanks for the reply. Yes, it is a multibranch project. I was trying to use Git hook (eg. post-commit) to notify Jenkins to do a build and this hook requires the "Poll SCM". curl http://localhost:8080/git/notifyCommit?url=... I assume this approach will not work. Will use the

SV: Accessing a variable in shell

2017-09-28 Thread Joachim Nilsson
Did you get this working? Your problem was caused by mixing Groovy code within a shell command block. sh """ git clone -b master git@.com:/${repoName}.git cd ${repoName}

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Stephen Connolly
If this is a multibranch project (smells like it) you do not configure polling for each branch. The single indexing of the parent multibranch provides the same as polling *while* simultaneously reducing the load on the SCM Server (one scan vs N polling) On Thu 28 Sep 2017 at 06:31, Eric Tan

Can't create freeStyleJobs, getting "IllegalArgumentException: Expected named arguments"

2017-09-28 Thread Christian
Hello, I am trying to use the nexus-artifact-uploader-plugin to upload the packaged war files to my nexus 3 repository. The nexus-artifact-uploader provides an example which I modified, but for some reason it already fails when it gets to the name. This is my code: def uploadToNexus(module)