Re: Jenkins emailext plugin with default subject and body in pipeline script

2020-08-06 Thread David Koenig
terpolate the > variable (as you have seen, it doesn't exist in the groovy context). > > emailext ( > to: 'mym...@my.dom, > replyTo: ' mym...@my.dom', > subject: *'*$DEFAULT_SUBJECT*'*, > body: 'testbtesttestinew are

Re: Jenkins emailext plugin with default subject and body in pipeline script

2020-08-05 Thread Slide
...@my.dom', subject: *'*$DEFAULT_SUBJECT*'*, body: 'testbtesttestinew area', mimeType: 'text/html' ) On Wed, Aug 5, 2020 at 5:55 AM David Koenig wrote: > Hi, > > sorry for the late response, i was away a few days. > i am new to

Re: Jenkins emailext plugin with default subject and body in pipeline script

2020-08-05 Thread David Koenig
...@my.dom', subject: $DEFAULT_SUBJECT, body: 'testbtesttestinew area', mimeType: 'text/html' ); and get the error message groovy.lang.MissingPropertyException: No such property: $DEFAULT_SUBJECT for class: WorkflowScript Regards

Re: Jenkins emailext plugin with default subject and body in pipeline script

2020-07-31 Thread Slide
Hi Dave, Email-ext works on the idea of macros. When you define the default subject in the global config, it sets the value of a macro that you can then use in your job config. If you want to get the value you set, you have to use the macro for it. subject: '$DEFAULT_SUBJECT' This is the same

Jenkins emailext plugin with default subject and body in pipeline script

2020-07-31 Thread David Koenig
i am using Jenkins with the email extension plugin and declarative pipelines. In https://jenkinsserver/configure i configured the "Default Subject" and "Default Content" with some variables and nice looking content which i want to use in a pipeline script. When i ad

[no subject]

2020-06-09 Thread kathir
Hi I have kept my vagrant file and script file in git I have used vagrant & virtual box plugin but still I am not able to boot or provision VM Also I got following error [vagrantcentosubuntu] $ vagrant -v Vagrant 2.2.9 [ vagrant ]: Executing command :[vagrant, provision, Centos7,

[no subject]

2019-05-04 Thread Renato Marcandier
Is there a way for Github or Jenkins to detect when a file has been added to, modified or deleted from a Github repo so that it can trigger scripts (e.g. trigger an automatic dry-run of the proposed change in NSO for someone to review)? Renato Marcandier -- You received this message because you

[no subject]

2019-01-18 Thread David Karlsen
I have a global workflow lib, and my scripts work just file, like the "icpDeploy" one listed in [1] - but I cannot get the docs up in https://myjenkins/pipeline-syntax/globals . According to [2] the naming looks correct. At some point in time this was working - but no longer - did something change

[no subject]

2018-05-09 Thread niristotle okram
i am getting a failure calling the below function in a pipeline def getTimeStamp(str) { d = new Date(str).toTimestamp(); return d } Exception Caught: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod

[no subject]

2017-06-05 Thread John Mellor
I’m about ready to throw in the towel regarding remote job triggers. It is definitely a *LOT* too hard. I’m trying to start an Ansible construction job on a Jenkins-2 cluster from a Jenkins-1 cluster, as a workaround for a massive number of items not working in Jenkins-1. My prototyping

[no subject]

2017-05-24 Thread Sébastien Hinderer
-- 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 email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[no subject]

2016-12-20 Thread Emma Lilliestam
-- 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 email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[no subject]

2016-07-26 Thread nanda kishore
.us.com> ​​ <kishore_nimm...@aesinc.us.com> kishore_nimm...@aesinc.us.com || www.aesinc.us.com Agile Enterprise Solutions Inc || "Ensuring Client's Success"|| Note: If you have received this mail in error or prefer not to receive such emails in the future, please reply with &q

Re: Subversion comment to email subject

2015-10-16 Thread Slide
il.com> wrote: > I am so close now! > > Here is my problem. My script (now a file in email-templates) starts with: > > def env = build.getEnvironment(listener) > > I placed this in the Default Subject of my project: > > ${SCRIPT, script="subject.groovy"} >

Re: Subversion comment to email subject

2015-10-15 Thread Slide
e the token. ${SCRIPT, script='foo.groovy'} would be replaced by the result of the last line of foo.groovy. > > I will google for an example. > > On Wednesday, October 14, 2015 at 3:56:33 PM UTC-4, slide wrote: > >> I mean for you to change the Subject field in the email-ex

Re: Subversion comment to email subject

2015-10-15 Thread Philippe Payant
I am so close now! Here is my problem. My script (now a file in email-templates) starts with: def env = build.getEnvironment(listener) I placed this in the Default Subject of my project: ${SCRIPT, script="subject.groovy"} The email I get is a Groovy error message: Error

Re: Subversion comment to email subject

2015-10-14 Thread Slide
I mean for you to change the Subject field in the email-ext configuration to have something like ${SCRIPT, script='get-commit-info.groovy'}, then you would have a groovy script that grabbed the info and returned it as a string. Email-ext would then take care of putting the correct text in. You

Re: Subversion comment to email subject

2015-10-14 Thread Philippe Payant
ill google for an example. On Wednesday, October 14, 2015 at 3:56:33 PM UTC-4, slide wrote: > > I mean for you to change the Subject field in the email-ext configuration > to have something like ${SCRIPT, script='get-commit-info.groovy'}, then you > would have a groovy script that grabbed

Re: Subversion comment to email subject

2015-10-14 Thread Philippe Payant
uild script then parses the commit log to find the bug number. The bug number is printed to stdout and it ends up in the Jenkins build log. Then I wrote a pre-send groovy script for email-ext to grep the build log for the build number. Once I have the build number, the email subject is upd

Subversion comment to email subject

2015-10-13 Thread Philippe Payant
Given that a Subversion comment contains a Bugzilla bug number, for example: Fix Hoopla bug in the "easy" mode. Bug 9413 I would like the "build succesful" email to be something like: "MyProduct: build successful - bug 9413" For bonus points, I would actual

Re: Subversion comment to email subject

2015-10-13 Thread Slide
zilla bug number, for > example: > > Fix Hoopla bug in the "easy" mode. Bug 9413 > > I would like the "build succesful" email to be something like: > > "MyProduct: build successful - bug 9413" > > For bonus points, I would actually like the sub

[no subject]

2015-06-27 Thread Bharath Raj
Hi all , I need some help in configuring Jenkins and artifactory . 1) I installed artifactory 2) In Jenkins I configured the artifactory path . I have used Artifactory plugin and I'm able to see build info in artifactory . 3) but I'm not seeing artifactory generated 4) my project is using plain

Re: Change subject in email-ext

2015-04-23 Thread Faizan Javed
I tried this script The subject is displaying def subject = 'Some Subject' On Friday, April 17, 2015 at 6:27:05 PM UTC+5, slide wrote: def subject = 'Some Subject' if(build.result == Result.SUCCESS) { subject += ' - Build Succeeded!' } subject // required so that this is returned

Re: Change subject in email-ext

2015-04-17 Thread Slide
def subject = 'Some Subject' if(build.result == Result.SUCCESS) { subject += ' - Build Succeeded!' } subject // required so that this is returned from the script On Wed, Apr 15, 2015, 23:52 Faizan Javed faixanja...@gmail.com wrote: Can you show me an example of groovy script

Re: Change subject in email-ext

2015-04-16 Thread Faizan Javed
Can you show me an example of groovy script? On Wednesday, April 15, 2015 at 4:53:44 PM UTC+5, slide wrote: You could use the SCRIPT token in the subject and have the decision making done in the groovy script. I do this for lots of things. On Wed, Apr 15, 2015 at 12:06 AM Faizan Javed

Re: Change subject in email-ext

2015-04-15 Thread Slide
You could use the SCRIPT token in the subject and have the decision making done in the groovy script. I do this for lots of things. On Wed, Apr 15, 2015 at 12:06 AM Faizan Javed faixanja...@gmail.com wrote: I am using email-ext plugin to trigger emails after the build fails or become unstable

Change subject in email-ext

2015-04-15 Thread Faizan Javed
I am using email-ext plugin to trigger emails after the build fails or become unstable. The build becomes unstable when some of the tests fail and the build fails when the compilation fail. Can we use conditions to display different customized subject depending on the cause of the email

Looking for Subject Matter Expert (SME)/ Senior Test Analyst Consultant Location Columbus, OH

2015-02-02 Thread Akhilesh Kumar
requirement is burning. Please share the Profiles with confirmed Interview Time slot.* *Location: Columbus, OH* *Role * *Ecommerce - Subject Matter Expert (SME) / Senior Test Analyst - 2 Positions * *Mandatory Technical / Functional Skills * *Skillset: * *Should have Functional Nonfunctional

Re: How to get the artefacts version number into the email notification subject line?

2014-09-11 Thread andreas . wirooks
the version number with envinject in an environment variable and use this environment variable in the email subject. Regards, Bertram Am Freitag, 15. August 2014 13:51:26 UTC+2 schrieb andreas...@gmail.com: Hi, we build releases with the maven release plugin. We want

Re: How to get the artefacts version number into the email notification subject line?

2014-09-05 Thread andreas . wirooks
variable in the email subject. Regards, Bertram Am Freitag, 15. August 2014 13:51:26 UTC+2 schrieb andreas...@gmail.com: Hi, we build releases with the maven release plugin. We want the subject line to include the version number. Because it changes during the process i

Re: How to get the artefacts version number into the email notification subject line?

2014-08-16 Thread Bertram Karch
Hi, I have not tested this, but I think you can do this with the envinject plugin and the extended email notification plugin. Set the version number with envinject in an environment variable and use this environment variable in the email subject. Regards, Bertram Am Freitag, 15. August 2014

Re: How to get the artefacts version number into the email notification subject line?

2014-08-16 Thread Mark Eggers
. Set the version number with envinject in an environment variable and use this environment variable in the email subject. Regards, Bertram Am Freitag, 15. August 2014 13:51:26 UTC+2 schrieb andreas...@gmail.com: Hi, we build releases with the maven release plugin. We want the subject

How to get the artefacts version number into the email notification subject line?

2014-08-15 Thread andreas . wirooks
Hi, we build releases with the maven release plugin. We want the subject line to include the version number. Because it changes during the process i want to get the version number out of the artifacts (this is easy) and now i want the version number in the subject line of the mail. Does anybody

[no subject]

2014-06-30 Thread Panikera Raj
Hi All, I am not able to find the option under Manage Jenkins\Configure System\SVN category as: Update default Subversion credentials cache after successful authentication. What could be the issue. how to resolve such type of issue Pls let me know. Regards, Panikera -- You received this

scan the console output to set email subject [email-ext]

2014-01-21 Thread Maneesh M P
Hello, I am using email-ext plugin to send my build mails. based on the job environment values, i create an html file and use the html file in the body to send the mail ${FILE, path=$WORKSPACE/mail.html} I have a requirement where i have to put the subject of the mail parsing console

[no subject]

2013-11-26 Thread reena upadhyay
-- 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 email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

Re: Using variables within the Jenkins email subject lines ?

2013-11-01 Thread lalit kumar
Check this http://automatethebox.blogspot.in/2013/10/use-environment-variable-in-jenkins.html On Wednesday, September 26, 2012 3:01:23 AM UTC+5:30, Tom80112 wrote: I would like to use variables within Jenkins email subject lines. I am using the editable email notification plugin

Re: Using variables within the Jenkins email subject lines ?

2013-11-01 Thread lkumarblogs
Check this http://automatethebox.blogspot.com/2013/10/use-environment-variable-in-jenkins.html -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Using-variables-within-the-Jenkins-email-subject-lines-tp4641373p4679736.html Sent from the Jenkins users mailing list

[no subject]

2013-10-31 Thread Rajesh Kumar
Hi, I am building one job in slave but i am getting following error... [QA-QBO-Square-e2e-regression] $ /bin/sh -xe /tmp/hudson2656830909630025820.sh + cat /tmp/hudson2656830909630025820.sh: 2: /tmp/hudson2656830909630025820.sh: cat: not found Build step 'Execute shell' marked build as failure

Re: (No subject)

2013-10-31 Thread Kalluri Jagan
Please check your slave environment path an add /use/bin to that  Thanks. Jagan Kalluri 6789822394 On Thu, Oct 31, 2013 at 5:00 AM, Rajesh Kumar rajeshkumarmaht...@gmail.com wrote: Hi, I am building one job in slave but i am getting following error... [QA-QBO-Square-e2e-regression] $

[no subject]

2013-10-30 Thread Jay Vee
-- 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 email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

Re: Have email-ext subject contain the number of changed files

2013-08-09 Thread Steven Deal
folder named 'changes.groovy' which has a variable 'chgCount' that holds what I want in the subject line, I would add: ${SCRIPT, script=changes.groovy} to the subject line. But how will % chgCount % get used? In my script I have % chgCount % on the last line (it's just set to zero, it's

Have email-ext subject contain the number of changed files

2013-08-08 Thread Steven Deal
My project uses the extended email plugin. I have the content of the email built from a groovy template. A recent request was to provide a quick summary count of the number of files changed in the build on the subject line. I don't think there's a macro for this like we have for say

Re: Have email-ext subject contain the number of changed files

2013-08-08 Thread Slide
There are two ways you can do this: 1) Create a groovy script in email-templates that gets the information and use the SCRIPT token to reference that script in your subject 2) Use a pre-send script to modify the subject line Either option would work, neither has any real drawbacks that I can

[no subject]

2013-07-31 Thread Stuart Whelan
Hi folks, I was/am running 1.522 on a windows server 2008R2 64bit system using winstone. Last week I tried to upgrade to 524, and had to roll back as jenkins wouldn't start afterwards. Today I tried 525 and the same thing happened. A gist of the error log is:

[no subject]

2013-05-29 Thread Luis Specian
Hi, I´m running a Jenkins 1.509.1 (LTS) and a hudson 3.0.1 in the same linux box, jenkins is trying to read hudson config in /home/user/.hudson Is there any way to make jenkins use the .jenkins directory? Thanks Luis -- You received this message because you are subscribed to the Google

[no subject]

2012-11-06 Thread hezjing
Hi I used to find the following options in the Jenkins's Manage Jenkins page? 1) System Log 2) System Information But now they are not there any more in Jenkins 1.489, they have been removed for some reasons??? -- Hez

Re: Using variables within the Jenkins email subject lines ?

2012-09-26 Thread giuliano
You can use vars generated with a shell script. What we do is write them to a file, then use the Inject environment variables plugin.

Re: Using variables within the Jenkins email subject lines ?

2012-09-26 Thread Slide
email-ext or the normal emailer? On Tue, Sep 25, 2012 at 2:31 PM, Tom80112 nez...@yahoo.com wrote: I would like to use variables within Jenkins email subject lines. I am using the editable email notification plugin. Instead of having a set-in-stone email subject line, I would like define

Re: Using variables within the Jenkins email subject lines ?

2012-09-26 Thread Slide
Try ${ENV, var=subject} On Wed, Sep 26, 2012 at 7:24 PM, Tom80112 nez...@yahoo.com wrote: I loaded the EnvInject plugin and tried that before posting here. Inside the shell script section, I set a variable called subject to to a different text string depending on outcomes within the shell

[no subject]

2012-09-08 Thread Sameh Tawfik