Re: Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
On Fri, Jun 13, 2014 at 11:39 AM, Mark Waite wrote: > I don't have any help to offer for the specific problem you reported. > > I have a general question you might consider. Since you stayed on an > older version that long, I suspect you prefer stability rather than the > latest set of features. You may want to consider choosing the "long term > support" release (LTS) instead of the tip of the Jenkins development > stream. The current long term support release is 1.554.2, so it is not > dramatically older than the version you chose, but it has been tested more > deeply than 1.565. > > Mark Waite > > Mark, this seems like excellent advice. However, as I have dug into this issue deeper it seems that the problem was introduced in 1.536, so I expect it would still be present in 1.554.2. Does this mean that perhaps I should install LTS 1.532.3? Also, it is not clear to me from the documentation for LTS which plugins would be offered/available with version 1.532.3 (assuming I use the advanced configuration settings for plugins to set the Update Site to http://updates.jenkins-ci.org/stable/update-center.json). Would I be offered plugins that were stable as of 1.532.3, or would I be offered plugins that matched 1.554.2? Thanks, Jim -- 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/d/optout.
Re: Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
Hi Jim, This is what I used before I submitted the PR, just put the following as a system groovy script build step.. import hudson.model.* /// // calculate all change lists and commiters of all changelists up until the last successful build /// StringBuffer changeListBuffer = new StringBuffer(); AbstractBuild currentBuild = build; while( currentBuild!=null && currentBuild.getResult()!=Result.SUCCESS ) { def previousBuildCS = currentBuild.getChangeSet() if(previousBuildCS.history) { for( def entry : previousBuildCS.history ) { changeListBuffer.append( "Change " + String.valueOf(entry.change.changeNumber) + " by " + entry.change.user + " : " + entry.change.description + "" ) } } currentBuild = currentBuild.getPreviousBuild(); } def immutableString = changeListBuffer.toString().replace("\n","") def paBrokenChangeLists = new ParametersAction([ new StringParameterValue("P4_BROKEN_CHANGELISTS", immutableString) ] ) build.addAction(paBrokenChangeLists) then just put $P4_BROKEN_CHANGELISTS in your email content, you can add the date in the script also but I didn't need that. -- 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/d/optout.
Re: Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
Thank you Rob, that's exactly the info I need. It's not clear to me when I can expect a public release of the fixed perforce plugin, but at least now I understand specifically what the problem is and see options for how to work around it until there is a new release of the plugin. -Jim On Sun, Jun 15, 2014 at 10:03 PM, Rob Petti wrote: > Email-ext changed the functions used for getting changeset and timestamp > information. Details are here: > https://issues.jenkins-ci.org/browse/JENKINS-11600 > > > On Friday, 13 June 2014 12:29:35 UTC-6, Jim Lloyd wrote: >> >> Hello. I am new to Jenkins and am trying to make configuration changes to >> support the addition of new jobs using Git for SCM. Previously the server >> only had jobs using Perforce for SCM. We were running Jenkins v1.499, which >> was too old to support the Git related plugins we wanted to install, so we >> upgraded to Jenkins v1.565, which was the current release at the time. >> Almost everything is working fine. Previous Perforce jobs and new Git jobs >> are able to run to successful completion. But we have noticed that emails >> now sent from jobs that use Perforce are now missing the changelist number >> and show an invalid date/timestamp. For example: >> >> [null] Dec 31, 1969 3:59:59 PM joedev >> Bug 24409 - . >> >> Before the upgrade, the email was formated as: >> >> [70468] 2014-05-30 14:56:00 janedev >> Fix for 24328 - >> >> We didn't make any changes to either the global settings for Extended >> E-mail Notification, or for the project specific settings for Editable >> Email Notification. >> >> We're using just "$DEFAULT_CONTENT" in the Editable Email Notification. >> The relevant section in our global settings for Extended E-mail >> Notification contains: >> >> Changes: >> ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true, format="%c> />", changesFormat="[%r] %d %a%m%p", >> pathFormat="%p"} >> >> I have searched to try to understand why ${CHANGES_SINCE_LAST_SUCCESS} >> is now partially broken but have so far not found an answer. Can someone >> help? >> >> Thanks, >> Jim >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/eZQsgfCSYM4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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/d/optout.
Re: Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
Email-ext changed the functions used for getting changeset and timestamp information. Details are here: https://issues.jenkins-ci.org/browse/JENKINS-11600 On Friday, 13 June 2014 12:29:35 UTC-6, Jim Lloyd wrote: > > Hello. I am new to Jenkins and am trying to make configuration changes to > support the addition of new jobs using Git for SCM. Previously the server > only had jobs using Perforce for SCM. We were running Jenkins v1.499, which > was too old to support the Git related plugins we wanted to install, so we > upgraded to Jenkins v1.565, which was the current release at the time. > Almost everything is working fine. Previous Perforce jobs and new Git jobs > are able to run to successful completion. But we have noticed that emails > now sent from jobs that use Perforce are now missing the changelist number > and show an invalid date/timestamp. For example: > > [null] Dec 31, 1969 3:59:59 PM joedev > Bug 24409 - . > > Before the upgrade, the email was formated as: > > [70468] 2014-05-30 14:56:00 janedev > Fix for 24328 - > > We didn't make any changes to either the global settings for Extended > E-mail Notification, or for the project specific settings for Editable > Email Notification. > > We're using just "$DEFAULT_CONTENT" in the Editable Email Notification. > The relevant section in our global settings for Extended E-mail > Notification contains: > > Changes: > ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true, format="%c />", changesFormat="[%r] %d %a%m%p", > pathFormat="%p"} > > I have searched to try to understand why ${CHANGES_SINCE_LAST_SUCCESS} is > now partially broken but have so far not found an answer. Can someone help? > > Thanks, > Jim > > -- 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/d/optout.
Re: Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
Did you upgrade the Perforce plugin at the same time? My guess is something in the Perforce plugin changed, but that is just a guess. Without more information on versions of all the plugins you have mentioned, it will be hard to help out. slide On Fri, Jun 13, 2014 at 11:39 AM, Mark Waite wrote: > I don't have any help to offer for the specific problem you reported. > > I have a general question you might consider. Since you stayed on an > older version that long, I suspect you prefer stability rather than the > latest set of features. You may want to consider choosing the "long term > support" release (LTS) instead of the tip of the Jenkins development > stream. The current long term support release is 1.554.2, so it is not > dramatically older than the version you chose, but it has been tested more > deeply than 1.565. > > Mark Waite > > > On Fri, Jun 13, 2014 at 12:29 PM, Jim Lloyd wrote: > >> Hello. I am new to Jenkins and am trying to make configuration changes to >> support the addition of new jobs using Git for SCM. Previously the server >> only had jobs using Perforce for SCM. We were running Jenkins v1.499, which >> was too old to support the Git related plugins we wanted to install, so we >> upgraded to Jenkins v1.565, which was the current release at the time. >> Almost everything is working fine. Previous Perforce jobs and new Git jobs >> are able to run to successful completion. But we have noticed that emails >> now sent from jobs that use Perforce are now missing the changelist number >> and show an invalid date/timestamp. For example: >> >> [null] Dec 31, 1969 3:59:59 PM joedev >> Bug 24409 - . >> >> Before the upgrade, the email was formated as: >> >> [70468] 2014-05-30 14:56:00 janedev >> Fix for 24328 - >> >> We didn't make any changes to either the global settings for Extended >> E-mail Notification, or for the project specific settings for Editable >> Email Notification. >> >> We're using just "$DEFAULT_CONTENT" in the Editable Email Notification. >> The relevant section in our global settings for Extended E-mail >> Notification contains: >> >> Changes: >> ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true, format="%c> />", changesFormat="[%r] %d %a%m%p", >> pathFormat="%p"} >> >> I have searched to try to understand why ${CHANGES_SINCE_LAST_SUCCESS} >> is now partially broken but have so far not found an answer. Can someone >> help? >> >> Thanks, >> Jim >> >> -- >> 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/d/optout. >> > > > > -- > Thanks! > Mark Waite > > -- > 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/d/optout. > -- Website: http://earl-of-code.com -- 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/d/optout.
Re: Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
I don't have any help to offer for the specific problem you reported. I have a general question you might consider. Since you stayed on an older version that long, I suspect you prefer stability rather than the latest set of features. You may want to consider choosing the "long term support" release (LTS) instead of the tip of the Jenkins development stream. The current long term support release is 1.554.2, so it is not dramatically older than the version you chose, but it has been tested more deeply than 1.565. Mark Waite On Fri, Jun 13, 2014 at 12:29 PM, Jim Lloyd wrote: > Hello. I am new to Jenkins and am trying to make configuration changes to > support the addition of new jobs using Git for SCM. Previously the server > only had jobs using Perforce for SCM. We were running Jenkins v1.499, which > was too old to support the Git related plugins we wanted to install, so we > upgraded to Jenkins v1.565, which was the current release at the time. > Almost everything is working fine. Previous Perforce jobs and new Git jobs > are able to run to successful completion. But we have noticed that emails > now sent from jobs that use Perforce are now missing the changelist number > and show an invalid date/timestamp. For example: > > [null] Dec 31, 1969 3:59:59 PM joedev > Bug 24409 - . > > Before the upgrade, the email was formated as: > > [70468] 2014-05-30 14:56:00 janedev > Fix for 24328 - > > We didn't make any changes to either the global settings for Extended > E-mail Notification, or for the project specific settings for Editable > Email Notification. > > We're using just "$DEFAULT_CONTENT" in the Editable Email Notification. > The relevant section in our global settings for Extended E-mail > Notification contains: > > Changes: > ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true, format="%c />", changesFormat="[%r] %d %a%m%p", > pathFormat="%p"} > > I have searched to try to understand why ${CHANGES_SINCE_LAST_SUCCESS} is > now partially broken but have so far not found an answer. Can someone help? > > Thanks, > Jim > > -- > 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/d/optout. > -- Thanks! Mark Waite -- 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/d/optout.
Problems with email-ext messages after Jenkins upgrade, with both Perforce and Git SCM jobs
Hello. I am new to Jenkins and am trying to make configuration changes to support the addition of new jobs using Git for SCM. Previously the server only had jobs using Perforce for SCM. We were running Jenkins v1.499, which was too old to support the Git related plugins we wanted to install, so we upgraded to Jenkins v1.565, which was the current release at the time. Almost everything is working fine. Previous Perforce jobs and new Git jobs are able to run to successful completion. But we have noticed that emails now sent from jobs that use Perforce are now missing the changelist number and show an invalid date/timestamp. For example: [null] Dec 31, 1969 3:59:59 PM joedev Bug 24409 - . Before the upgrade, the email was formated as: [70468] 2014-05-30 14:56:00 janedev Fix for 24328 - We didn't make any changes to either the global settings for Extended E-mail Notification, or for the project specific settings for Editable Email Notification. We're using just "$DEFAULT_CONTENT" in the Editable Email Notification. The relevant section in our global settings for Extended E-mail Notification contains: Changes: ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true, format="%c", changesFormat="[%r] %d %a%m%p", pathFormat="%p"} I have searched to try to understand why ${CHANGES_SINCE_LAST_SUCCESS} is now partially broken but have so far not found an answer. Can someone help? Thanks, Jim -- 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/d/optout.