How to send a daily summary by email?

2017-12-12 Thread Ana MB
Hi guys! I would like to send an email with a summary of my tests (both failed and success build) and I would like to send it daily. Is it possible? I've been looking for a plugin, and I've found: "Summary Display Plugin", but it's not what I need... Does anybody know how to do it? Thanks so m

Using the Branchname only, instead the full path only

2017-12-12 Thread Paul McGregory
Hi Everybody. I am using multibranch pipeline. The deployment works fine, but ein want get the BranchName only, instead the full branchname path. e.g I am using echo "${env.BRANCH_NAME}" and get "feature/1234", but I just want "1234". If found something like echo "${env.BRANCH_NAME}#*f

Bootstrap Jenkins job creation

2017-12-12 Thread Jes Struck
Hi all, I'm looking for a good solution to do job configuration during Jenkins startup, I have looked around for a good solution, but I can't seem to find one. >From what i found my current options is hacking in groovy or using Jenkins Job Build (JJB), but what I'm expecting, is a Jenkins functio

Re: Using the Branchname only, instead the full path only

2017-12-12 Thread Stephen Connolly
echo "${BRANCH_NAME.replaceAll('^.*/','')}" or sh 'echo "${BRANCH_NAME}" | sed -e "s:^.*/::"' Note the second one needs the careful quoting so that the shell does the expansion On 12 December 2017 at 13:04, Paul McGregory wrote: > Hi Everybody. > > > I am using multibranch pipeline. > > The d

Re: Bootstrap Jenkins job creation

2017-12-12 Thread Stephen Connolly
I (being biased) would think a better approach is to use the organization folder approach of pipeline multibranch. If you want to see how this works, I did a video series on enabling this for the Apache Maven project... end result: https://builds.apache.org/view/M-R/view/Maven/job/maven-box/ Eve

Re: Bootstrap Jenkins job creation

2017-12-12 Thread Mandy Hubbard
I am also biased. :). Here is a link to a talk I gave at Jenkins World that bootstraps using ContainerPilot and the organization folder approach. Let me know if you have questions and I'd be happy to help. bit.ly/2hfWQHiDevMandy -- You received this message because you are subscribed to t

Is there a way to name shell scripts for BlueOcean?

2017-12-12 Thread Christian
Hello, I use a lot of shell scrips in my Jenkinsfile and I am not satisfied with the labels in the BlueOcean step overview. According to https://issues.jenkins-ci.org/browse/JENKINS-36933 it is resolved but I have not found a way to label them. Is there any way to set custom names to them? Reg

Re: EC2 cloud plugin config is removed at restart

2017-12-12 Thread frederick . ferguson
Was this ever logged in Jira or responded to anywhere else? I'm having the same issue with the Nomad plugin. Thanks -- 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: HowTo set pipeline step description

2017-12-12 Thread Gil Shinar
It'll a problem for me in the near future as I'll not work for this customer in the next few weeks. Anyhow, next time, when I'll be there, I'll compare the plugins versions. Before I left, I have updated all the relevant plugins to their latest versions and also upgraded the Jenkins to its lates

Re: RejectedAccessException

2017-12-12 Thread Peter Berghold
OK: After deciding to put this project aside and not look at it for a while I came back to it and found out that I was being stupid. :-( The constructor for the Notification class has two parameters not one and in the heat of battle so to speak I forgot about the other one. Once I got that straig

Re: Is there a way to name shell scripts for BlueOcean?

2017-12-12 Thread Victor Martinez
IIRC, you cannot label them but you can use the suggested approach as explained here and the view will be something like the examp

Re: How to send a daily summary by email?

2017-12-12 Thread Victor Martinez
I'm not sure whether there is any specific plugin for that, if so, hope someone else can answer it. In any case, you can write your own groovy script to generate those details, something like the below snippet, but you need to add the filter of the builds executed in the last day or so. Jenki

Jenkins overwriting config.xml on startup

2017-12-12 Thread Wendell Beckwith
I've installed the jenkins 2.94 as both a war file and a docker container with the jenkins_home mapped to a local directory and I can startup jenkins fine. I then add the suggested plugins, admin user, blue ocean and the docker plugin. After a restart I add a docker cloud and all is well. Ho

Re: Jenkins overwriting config.xml on startup

2017-12-12 Thread Slide
Do you mean you are trying to run two instances of Jenkins from the same JENKINS_HOME? That will not work. On Tue, Dec 12, 2017 at 1:12 PM Wendell Beckwith wrote: > I've installed the jenkins 2.94 as both a war file and a docker container > with the jenkins_home mapped to a local directory and I

Re: Jenkins overwriting config.xml on startup

2017-12-12 Thread niristotle okram
Can you elaborate the part: "I add a docker cloud" ? On Tue, Dec 12, 2017 at 2:10 PM, Wendell Beckwith wrote: > I've installed the jenkins 2.94 as both a war file and a docker container > with the jenkins_home mapped to a local directory and I can startup jenkins > fine. I then add the suggeste

Re: Jenkins overwriting config.xml on startup

2017-12-12 Thread Wendell Beckwith
> > I added the docker 1.1.1 plugin to jenkins and then I configure jenkins > and under the "Add a new Cloud" setting I selected Docker. I then give the > docker host a name and a tcp url (i.e. > tcp://ec2.compute-1.amazonaws.com:2376) > and select Apply and Save. I can then see that the con

Re: Jenkins overwriting config.xml on startup

2017-12-12 Thread Daniel Beck
> On 12. Dec 2017, at 23:13, Wendell Beckwith wrote: > > However, once I stop and restart jenkins then my changes are wiped out and > replaced with an empty element. Anything interesting in the jenkins.log during startup? -- You received this message because you are subscribed to the Google

Re: EC2 cloud plugin config is removed at restart

2017-12-12 Thread Wendell Beckwith
Well this looks like the same issue I posted earlier asking for help on, https://groups.google.com/forum/#!topic/jenkinsci-users/q2TZchFehg0 Basically anything added the the element is overwritten on restart or reload. It is not plugin related since at least 3 different cloud plugins, docker,

Re: Jenkins overwriting config.xml on startup

2017-12-12 Thread Wendell Beckwith
I just configured the config.xml file to be locked on osx and I get the following: INFO: Refreshing org.springframework.web.context.support. StaticWebApplicationContext@22eb18b8: display name [Root WebApplicationContext]; startup date [Tue Dec 12 19:50:31 UTC 2017]; root of context hierarchy D

Is there a way to use XStream without a blacklist?

2017-12-12 Thread skuznets
The Groovy code we push out to Jenkins through our pipelines and global libraries is secure and we trust our developers. We would like not to see jobs fail for instance with: Caused by: java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.ConvertedClosure for

need some material to read/understand jenkins

2017-12-12 Thread mohit vadera
I am new to Jenkins. where can I find good material on declarative pipeline and scripted pipeline? what is the difference between them? I want to learn it in 1-2 days, is it possible? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubs