You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/08/02 15:11:01 UTC

[maven-jenkins-lib] branch master updated: [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d7b4bc  [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"
1d7b4bc is described below

commit 1d7b4bc7dc060e412f3bd0d238802fc01ef8937e
Author: tibordigana <ti...@apache.org>
AuthorDate: Fri Aug 2 17:09:58 2019 +0200

    [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"
---
 vars/asfMavenTlpPlgnBuild.groovy | 5 ++++-
 vars/asfMavenTlpStdBuild.groovy  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index ae610ef..a3e9007 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -99,7 +99,10 @@ def call(Map params = [:]) {
       echo "***** FAST FAILURE *****\n\nFast failure triggered by ${taskContext.failingFast}\n\n***** FAST FAILURE *****"
     }
     stage("Notifications") {
-      jenkinsNotify()
+      def isFirstBuild = currentBuild == null || currentBuild.changeSets == null
+	  def authors = isFirstBuild ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+	  println("The author of the last change: ${authors}")
+	  if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
     }
   }
 }
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index b0d1d0d..d906adf 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -179,7 +179,10 @@ def call(Map params = [:]) {
       echo "***** FAST FAILURE *****\n\nFast failure triggered by ${failingFast}\n\n***** FAST FAILURE *****"
     }
     stage("Notifications") {
-      jenkinsNotify()
+      def isFirstBuild = currentBuild == null || currentBuild.changeSets == null
+	  def authors = isFirstBuild ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+	  println("The author of the last change: ${authors}")
+	  if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
     }
   }
 }


Re: [maven-jenkins-lib] branch master updated: [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"

Posted by Tibor Digana <ti...@apache.org>.
Now the build is fully working.
The problem was with serializating "currentBuild" in the statement "def
changes = currentBuild?.changeSets".

On Fri, Aug 2, 2019 at 10:59 PM Robert Scholte <rf...@apache.org> wrote:

> Nope, it is not
>
> [Pipeline] echo
> WARNING: Could not determine JIRA issues:
> hudson.plugins.git.GitChangeSetList
> [Pipeline] emailext
>
> Caused: java.io.NotSerializableException:
> hudson.plugins.git.GitChangeSetList
>
>
> On Fri, 02 Aug 2019 21:40:27 +0200, Tibor Digaňa
> <ti...@googlemail.com.invalid> wrote:
>
> > Try now!
> > Should be fine.
> >
> > On Fri, Aug 2, 2019 at 9:10 PM Robert Scholte <rf...@apache.org>
> > wrote:
> >
> >> There's a problem with this commit, see
> >>
> https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console
> >> [
> >>
> https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console
> >> ]
> >>
> >> java.util.NoSuchElementException: Cannot access last() element from an
> >> empty List
> >> On 2-8-2019 17:11:06, tibordigana@apache.org <ti...@apache.org>
> >> wrote:
> >> This is an automated email from the ASF dual-hosted git repository.
> >>
> >> tibordigana pushed a commit to branch master
> >> in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git
> >>
> >>
> >> The following commit(s) were added to refs/heads/master by this push:
> >> new 1d7b4bc [INFRA-18734] Jenkins builds fail on email notifications due
> >> to unknown user ID "github"
> >> 1d7b4bc is described below
> >>
> >> commit 1d7b4bc7dc060e412f3bd0d238802fc01ef8937e
> >> Author: tibordigana
> >> AuthorDate: Fri Aug 2 17:09:58 2019 +0200
> >>
> >> [INFRA-18734] Jenkins builds fail on email notifications due to unknown
> >> user ID "github"
> >> ---
> >> vars/asfMavenTlpPlgnBuild.groovy | 5 ++++-
> >> vars/asfMavenTlpStdBuild.groovy | 5 ++++-
> >> 2 files changed, 8 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/vars/asfMavenTlpPlgnBuild.groovy
> >> b/vars/asfMavenTlpPlgnBuild.groovy
> >> index ae610ef..a3e9007 100644
> >> --- a/vars/asfMavenTlpPlgnBuild.groovy
> >> +++ b/vars/asfMavenTlpPlgnBuild.groovy
> >> @@ -99,7 +99,10 @@ def call(Map params = [:]) {
> >> echo "***** FAST FAILURE *****\n\nFast failure triggered by
> >> ${taskContext.failingFast}\n\n***** FAST FAILURE *****"
> >> }
> >> stage("Notifications") {
> >> - jenkinsNotify()
> >> + def isFirstBuild = currentBuild == null || currentBuild.changeSets ==
> >> null
> >> + def authors = isFirstBuild ? [] :
> >> currentBuild.changeSets.last().toList().collect { it.author.toString()
> >> }.unique()
> >> + println("The author of the last change: ${authors}")
> >> + if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
> >> }
> >> }
> >> }
> >> diff --git a/vars/asfMavenTlpStdBuild.groovy
> >> b/vars/asfMavenTlpStdBuild.groovy
> >> index b0d1d0d..d906adf 100644
> >> --- a/vars/asfMavenTlpStdBuild.groovy
> >> +++ b/vars/asfMavenTlpStdBuild.groovy
> >> @@ -179,7 +179,10 @@ def call(Map params = [:]) {
> >> echo "***** FAST FAILURE *****\n\nFast failure triggered by
> >> ${failingFast}\n\n***** FAST FAILURE *****"
> >> }
> >> stage("Notifications") {
> >> - jenkinsNotify()
> >> + def isFirstBuild = currentBuild == null || currentBuild.changeSets ==
> >> null
> >> + def authors = isFirstBuild ? [] :
> >> currentBuild.changeSets.last().toList().collect { it.author.toString()
> >> }.unique()
> >> + println("The author of the last change: ${authors}")
> >> + if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
> >> }
> >> }
> >> }
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: [maven-jenkins-lib] branch master updated: [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"

Posted by Robert Scholte <rf...@apache.org>.
Nope, it is not

[Pipeline] echo
WARNING: Could not determine JIRA issues:  
hudson.plugins.git.GitChangeSetList
[Pipeline] emailext

Caused: java.io.NotSerializableException:  
hudson.plugins.git.GitChangeSetList


On Fri, 02 Aug 2019 21:40:27 +0200, Tibor Digaňa  
<ti...@googlemail.com.invalid> wrote:

> Try now!
> Should be fine.
>
> On Fri, Aug 2, 2019 at 9:10 PM Robert Scholte <rf...@apache.org>  
> wrote:
>
>> There's a problem with this commit, see
>> https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console
>> [
>> https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console
>> ]
>>
>> java.util.NoSuchElementException: Cannot access last() element from an
>> empty List
>> On 2-8-2019 17:11:06, tibordigana@apache.org <ti...@apache.org>
>> wrote:
>> This is an automated email from the ASF dual-hosted git repository.
>>
>> tibordigana pushed a commit to branch master
>> in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git
>>
>>
>> The following commit(s) were added to refs/heads/master by this push:
>> new 1d7b4bc [INFRA-18734] Jenkins builds fail on email notifications due
>> to unknown user ID "github"
>> 1d7b4bc is described below
>>
>> commit 1d7b4bc7dc060e412f3bd0d238802fc01ef8937e
>> Author: tibordigana
>> AuthorDate: Fri Aug 2 17:09:58 2019 +0200
>>
>> [INFRA-18734] Jenkins builds fail on email notifications due to unknown
>> user ID "github"
>> ---
>> vars/asfMavenTlpPlgnBuild.groovy | 5 ++++-
>> vars/asfMavenTlpStdBuild.groovy | 5 ++++-
>> 2 files changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/vars/asfMavenTlpPlgnBuild.groovy
>> b/vars/asfMavenTlpPlgnBuild.groovy
>> index ae610ef..a3e9007 100644
>> --- a/vars/asfMavenTlpPlgnBuild.groovy
>> +++ b/vars/asfMavenTlpPlgnBuild.groovy
>> @@ -99,7 +99,10 @@ def call(Map params = [:]) {
>> echo "***** FAST FAILURE *****\n\nFast failure triggered by
>> ${taskContext.failingFast}\n\n***** FAST FAILURE *****"
>> }
>> stage("Notifications") {
>> - jenkinsNotify()
>> + def isFirstBuild = currentBuild == null || currentBuild.changeSets ==
>> null
>> + def authors = isFirstBuild ? [] :
>> currentBuild.changeSets.last().toList().collect { it.author.toString()
>> }.unique()
>> + println("The author of the last change: ${authors}")
>> + if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
>> }
>> }
>> }
>> diff --git a/vars/asfMavenTlpStdBuild.groovy
>> b/vars/asfMavenTlpStdBuild.groovy
>> index b0d1d0d..d906adf 100644
>> --- a/vars/asfMavenTlpStdBuild.groovy
>> +++ b/vars/asfMavenTlpStdBuild.groovy
>> @@ -179,7 +179,10 @@ def call(Map params = [:]) {
>> echo "***** FAST FAILURE *****\n\nFast failure triggered by
>> ${failingFast}\n\n***** FAST FAILURE *****"
>> }
>> stage("Notifications") {
>> - jenkinsNotify()
>> + def isFirstBuild = currentBuild == null || currentBuild.changeSets ==
>> null
>> + def authors = isFirstBuild ? [] :
>> currentBuild.changeSets.last().toList().collect { it.author.toString()
>> }.unique()
>> + println("The author of the last change: ${authors}")
>> + if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
>> }
>> }
>> }
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [maven-jenkins-lib] branch master updated: [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"

Posted by Tibor Digaňa <ti...@googlemail.com.INVALID>.
Try now!
Should be fine.

On Fri, Aug 2, 2019 at 9:10 PM Robert Scholte <rf...@apache.org> wrote:

> There's a problem with this commit, see
> https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console
> [
> https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console
> ]
>
> java.util.NoSuchElementException: Cannot access last() element from an
> empty List
> On 2-8-2019 17:11:06, tibordigana@apache.org <ti...@apache.org>
> wrote:
> This is an automated email from the ASF dual-hosted git repository.
>
> tibordigana pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git
>
>
> The following commit(s) were added to refs/heads/master by this push:
> new 1d7b4bc [INFRA-18734] Jenkins builds fail on email notifications due
> to unknown user ID "github"
> 1d7b4bc is described below
>
> commit 1d7b4bc7dc060e412f3bd0d238802fc01ef8937e
> Author: tibordigana
> AuthorDate: Fri Aug 2 17:09:58 2019 +0200
>
> [INFRA-18734] Jenkins builds fail on email notifications due to unknown
> user ID "github"
> ---
> vars/asfMavenTlpPlgnBuild.groovy | 5 ++++-
> vars/asfMavenTlpStdBuild.groovy | 5 ++++-
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/vars/asfMavenTlpPlgnBuild.groovy
> b/vars/asfMavenTlpPlgnBuild.groovy
> index ae610ef..a3e9007 100644
> --- a/vars/asfMavenTlpPlgnBuild.groovy
> +++ b/vars/asfMavenTlpPlgnBuild.groovy
> @@ -99,7 +99,10 @@ def call(Map params = [:]) {
> echo "***** FAST FAILURE *****\n\nFast failure triggered by
> ${taskContext.failingFast}\n\n***** FAST FAILURE *****"
> }
> stage("Notifications") {
> - jenkinsNotify()
> + def isFirstBuild = currentBuild == null || currentBuild.changeSets ==
> null
> + def authors = isFirstBuild ? [] :
> currentBuild.changeSets.last().toList().collect { it.author.toString()
> }.unique()
> + println("The author of the last change: ${authors}")
> + if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
> }
> }
> }
> diff --git a/vars/asfMavenTlpStdBuild.groovy
> b/vars/asfMavenTlpStdBuild.groovy
> index b0d1d0d..d906adf 100644
> --- a/vars/asfMavenTlpStdBuild.groovy
> +++ b/vars/asfMavenTlpStdBuild.groovy
> @@ -179,7 +179,10 @@ def call(Map params = [:]) {
> echo "***** FAST FAILURE *****\n\nFast failure triggered by
> ${failingFast}\n\n***** FAST FAILURE *****"
> }
> stage("Notifications") {
> - jenkinsNotify()
> + def isFirstBuild = currentBuild == null || currentBuild.changeSets ==
> null
> + def authors = isFirstBuild ? [] :
> currentBuild.changeSets.last().toList().collect { it.author.toString()
> }.unique()
> + println("The author of the last change: ${authors}")
> + if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
> }
> }
> }
>
>

-- 
Cheers
Tibor

Re: [maven-jenkins-lib] branch master updated: [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"

Posted by Robert Scholte <rf...@apache.org>.
There's a problem with this commit, see https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console [https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/github-19/1/console]

java.util.NoSuchElementException: Cannot access last() element from an empty List
On 2-8-2019 17:11:06, tibordigana@apache.org <ti...@apache.org> wrote:
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
new 1d7b4bc [INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"
1d7b4bc is described below

commit 1d7b4bc7dc060e412f3bd0d238802fc01ef8937e
Author: tibordigana
AuthorDate: Fri Aug 2 17:09:58 2019 +0200

[INFRA-18734] Jenkins builds fail on email notifications due to unknown user ID "github"
---
vars/asfMavenTlpPlgnBuild.groovy | 5 ++++-
vars/asfMavenTlpStdBuild.groovy | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index ae610ef..a3e9007 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -99,7 +99,10 @@ def call(Map params = [:]) {
echo "***** FAST FAILURE *****\n\nFast failure triggered by ${taskContext.failingFast}\n\n***** FAST FAILURE *****"
}
stage("Notifications") {
- jenkinsNotify()
+ def isFirstBuild = currentBuild == null || currentBuild.changeSets == null
+ def authors = isFirstBuild ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+ println("The author of the last change: ${authors}")
+ if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
}
}
}
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index b0d1d0d..d906adf 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -179,7 +179,10 @@ def call(Map params = [:]) {
echo "***** FAST FAILURE *****\n\nFast failure triggered by ${failingFast}\n\n***** FAST FAILURE *****"
}
stage("Notifications") {
- jenkinsNotify()
+ def isFirstBuild = currentBuild == null || currentBuild.changeSets == null
+ def authors = isFirstBuild ? [] : currentBuild.changeSets.last().toList().collect { it.author.toString() }.unique()
+ println("The author of the last change: ${authors}")
+ if (isFirstBuild || !authors.contains('github')) jenkinsNotify()
}
}
}