Jenkins going haywire ?

2020-08-27 Thread Gilles Sadowski
Hi.

Something happening recently (apparently unrelated to changes
in the repository):
  https://ci-builds.apache.org/job/Commons/job/commons-statistics/3/console
  https://ci-builds.apache.org/job/Commons/job/commons-numbers/2/console
  https://ci-builds.apache.org/job/Commons/job/commons-rng/3/console

Any idea about the cause?

Thanks,
Gilles



RE: Jenkins going haywire ?

2020-08-27 Thread Uwe Schindler
We have seen the same for Lucene. The very useful and very important "Tools 
Environment" plugin is going crazy. This looks like a bug in this useful 
plugin. In most cases requires a Jenkins restart to recover.

In most cases those messages repeat up to 10 times, but this looks like it’s a 
loop.

Uwe

-
Uwe Schindler
uschind...@apache.org 
ASF Member, Apache Lucene PMC / Committer
Bremen, Germany
https://lucene.apache.org/

> -Original Message-
> From: Gilles Sadowski 
> Sent: Thursday, August 27, 2020 1:23 PM
> To: builds@apache.org
> Subject: Jenkins going haywire ?
> 
> Hi.
> 
> Something happening recently (apparently unrelated to changes
> in the repository):
>   https://ci-builds.apache.org/job/Commons/job/commons-statistics/3/console
>   https://ci-builds.apache.org/job/Commons/job/commons-numbers/2/console
>   https://ci-builds.apache.org/job/Commons/job/commons-rng/3/console
> 
> Any idea about the cause?
> 
> Thanks,
> Gilles



Re: Process Jenkins DSL action

2020-08-27 Thread Enrico Olivelli
Gavin,
I am still blocked here:
"Warning: Plugins have been installed without restarting Jenkins. A restart
is required to run Job DSL without any problems.
ERROR: You must configure the DSL job to run as a specific user in order to
use the Groovy sandbox."

Do you have any suggestions ?
Thanks
Enrico

Il giorno lun 17 ago 2020 alle ore 13:18 Enrico Olivelli <
eolive...@gmail.com> ha scritto:

> Gavin,
> In my opinion we have to activate the possibility to configure the
> permissions for single jobs. To do this, we access the global security
> settings via *“Manage Jenkins”* → *“Configure Global Security”*. There we
> have to add the “Per-project configurable Build Authorization” under
> “Access Control for Builds”:
>
> (taken from
> https://www.happycoders.eu/devops/jenkins-tutorial-implementing-seed-job/)
>
> Then I have to assign an "user" as executor of the job
>
> If no other project is using DSL and maybe it is not so useful for the ASF
> community in general I can discusso in dev@bookkeeper to switch from DSL
> to Jenkinsfile or to create jobs manually
>
>
>
> Enrico
>
> Il giorno sab 15 ago 2020 alle ore 20:44 Enrico Olivelli <
> eolive...@gmail.com> ha scritto:
>
>>
>>
>> Il Sab 15 Ago 2020, 20:35 Matt Sicker  ha scritto:
>>
>>> Using the sandbox is typically recommended as without it, the scripts
>>> can do anything an administrator can do.
>>
>>
>> My error with the sandbox is:
>>
>> ERROR: You must configure the DSL job to run as a specific user in order to 
>> use the Groovy sandbox
>>
>>
>>
>> I have found this guide:
>> https://www.happycoders.eu/devops/jenkins-tutorial-implementing-seed-job/
>>
>> If this configuration is not useful for other projects I could discuss on
>> dev@ list to stop using Jenkins DSL and manually configure the jobs or
>> switch to Jenkinsfile
>>
>> Enrico
>>
>>
>> Usually you'd only disable it
>>> for limited scripts where you need to dig into internal Jenkins state,
>>> but those types of scripts are usually things like Jenkins init
>>> scripts that customize some settings and are configured by admins.
>>>
>>> Caveat: I haven't used JobDSL myself, so I'm not sure how useful that
>>> plugin is in the sandbox.
>>>
>>> On Sat, 15 Aug 2020 at 06:23, Enrico Olivelli 
>>> wrote:
>>> >
>>> > Thank you Gavin,
>>> > it looks like the script now has problems.
>>> > I can fix them, but I don't know how can I make changes if you need to
>>> > approve them every time.
>>> >
>>> > We were using Jenkins DSL in order to have Jenkins jobs configuration
>>> > committed to git
>>> >
>>> > Do you think that enabling the Groovy sandbox would be a good idea?
>>> >
>>> > Enrico
>>> >
>>> > Il giorno sab 15 ago 2020 alle ore 13:15 Gavin McDonald <
>>> > gmcdon...@apache.org> ha scritto:
>>> >
>>> > > Hi Enrico,
>>> > >
>>> > >
>>> > > On Sat, Aug 15, 2020 at 8:31 AM Enrico Olivelli >> >
>>> > > wrote:
>>> > >
>>> > >> Gavin,
>>> > >> thank you.
>>> > >>
>>> > >> Now I have this second problem, it looks like that in the new
>>> Jenkins
>>> > >> every Jenkins DSL script must be approved.
>>> > >> see
>>> > >>
>>> https://ci-hadoop.apache.org/job/BookKeeper/job/bookkeeper-seed/3/console
>>> > >>
>>> > >> I am not sure how can we make it work, the help reads "New or
>>> modified
>>> > >> scripts must either be approved by an Jenkins administrator before
>>> they can
>>> > >> be used or they must be run in the restricted sandbox."
>>> > >>
>>> > >
>>> > > I have approved all scripts waiting, please try again.
>>> > >
>>> > >
>>> > >>
>>> > >> > git config core.sparsecheckout # timeout=10
>>> > >>  > git checkout -f 7645cb839761b9dde6462c28a87a0d1c428bf5fa #
>>> timeout=10
>>> > >> Commit message: "Bookie Client add quarantine ratio when error
>>> count exceed threshold"
>>> > >>  > git rev-list --no-walk 7645cb839761b9dde6462c28a87a0d1c428bf5fa
>>> # timeout=10
>>> > >> Processing DSL script
>>> .test-infra/jenkins/job_bookkeeper_codecoverage.groovy
>>> > >> ERROR: script not yet approved for use
>>> > >> Finished: FAILURE
>>> > >>
>>> > >>
>>> > >> If I enable the "Groovy sandbox", then I see this second error
>>> > >>
>>> > >> Commit message: "Bookie Client add quarantine ratio when error
>>> count exceed threshold"
>>> > >>  > git rev-list --no-walk 7645cb839761b9dde6462c28a87a0d1c428bf5fa
>>> # timeout=10
>>> > >>
>>> > >> ERROR: You must configure the DSL job to run as a specific user in
>>> order to use the Groovy sandbox.
>>> > >> Finished: FAILURE
>>> > >>
>>> > >>
>>> > >> Thank you
>>> > >>
>>> > >> Enrico
>>> > >>
>>> > >> Il giorno ven 14 ago 2020 alle ore 20:57 Gavin McDonald <
>>> > >> gmcdon...@apache.org> ha scritto:
>>> > >>
>>> > >>> Hi Enrico!
>>> > >>>
>>> > >>> On Fri, Aug 14, 2020 at 8:41 PM Enrico Olivelli <
>>> eolive...@gmail.com>
>>> > >>> wrote:
>>> > >>>
>>> > >>> > Hi,
>>> > >>> > I am migrating Bookkeeper jobs and it looks like there is no
>>> 'Process
>>> > >>> DSL
>>> > >>> > actin'
>>> > >>> >
>>> > >>> > We have a seed job that creates all of the other jobs
>>

Re: Jenkins going haywire ?

2020-08-27 Thread Matt Sicker
This is what I'm doing as a workaround for the tool DSL as it wasn't
working as expected in a complex pipeline I had:

https://github.com/apache/logging-pipelines/blob/master/vars/mvn.groovy

On Thu, 27 Aug 2020 at 06:36, Uwe Schindler  wrote:
>
> We have seen the same for Lucene. The very useful and very important "Tools 
> Environment" plugin is going crazy. This looks like a bug in this useful 
> plugin. In most cases requires a Jenkins restart to recover.
>
> In most cases those messages repeat up to 10 times, but this looks like it’s 
> a loop.
>
> Uwe
>
> -
> Uwe Schindler
> uschind...@apache.org
> ASF Member, Apache Lucene PMC / Committer
> Bremen, Germany
> https://lucene.apache.org/
>
> > -Original Message-
> > From: Gilles Sadowski 
> > Sent: Thursday, August 27, 2020 1:23 PM
> > To: builds@apache.org
> > Subject: Jenkins going haywire ?
> >
> > Hi.
> >
> > Something happening recently (apparently unrelated to changes
> > in the repository):
> >   https://ci-builds.apache.org/job/Commons/job/commons-statistics/3/console
> >   https://ci-builds.apache.org/job/Commons/job/commons-numbers/2/console
> >   https://ci-builds.apache.org/job/Commons/job/commons-rng/3/console
> >
> > Any idea about the cause?
> >
> > Thanks,
> > Gilles
>


-- 
Matt Sicker