Re: Blue Ocean + Bitbucket cloud: is it possible to use without a team?

2018-04-05 Thread Alex D
Hi Vivek, thanks for responding and confirming that I didn't miss anything. 

I have found a workaround for my issue. I thought Blue Ocean is an entirely 
separate work flow from the normal pipelines, but that's not the case. 
Turns out, if I create the pipeline through the default Jenkins web UI, I 
can then use Blue Ocean to interact with this pipeline. Works for me!

On Friday, April 6, 2018 at 12:54:59 AM UTC+3, vivek wrote:
>
> Hi Alex,
>
> My inlined comments:
>
> > I have a special "build bot" account with read-only access to our repos. 
> But when I log Blue Ocean in with this account, it only finds zero repos 
> (the bot account has none), and zero teams (or one empty default team, I 
> don't recall). 
>
> Short answer, there is no bitbucket API to get repos that a user has 
> permission to access. There are APIs that only gives repo owned by a user 
> or team.
>
> Basically blueocean calls bitbucket API to get list of repositories for 
> given credentials. In this case it calls, 
> https://api.bitbucket.org/2.0/repositories/:[username 
> or team ], 
> but this API only returns repos 'owned' by the user or team in context.  It 
> doesn't return all repos across accounts that the user is has permission to 
> access.
>
> > I could specify a repo the bot has access to, but the UI doesn't let me 
> do that, and I can't progress.
>
> Right, at the moment you can only create pipelines for the repos owned by 
> a user or team.
>
> > Is there a way around this problem?
>
> Not unless Bitbucket provides an API that we can use to show user level 
> repo membership across teams/users. I guess it doesn't work for you but if 
> you can add  'bot account' to the team that owns this repo, that team will 
> appear and its repos accessible by 'bot account' can be built.
>
> Somewhat related, there is work in progress 
> https://issues.jenkins-ci.org/browse/JENKINS-46656, that will avoid users 
> to provide their credentials to blueocean, instead will do auth dance with 
> bitbucket to fetch jwt token and work with it. 
>
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/bc2ef390-ab55-4b5c-9190-4fb0a32af52e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Only trigger on cron

2018-04-05 Thread 'Seb Boving' via Jenkins Users
I have some jobs I only want to trigger via cron.  In a Github project, I 
can't seem to disable the triggers via commits (unless I disable the branch 
in which case cron's also don't run) in the job configuration.

Another way that could perhaps work is if the trigger type would be exposed 
within the pipeline steps (i.e through env vars).

Is there some way of doing this I am missing?  Should I use a different job 
type for this (while still having the convenience of having a Jenkinsfile 
in Github) and if so which?

thanks,
-seb.

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/e78fffde-f707-4476-aa58-c028421df88c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: blueocean bitbucket repo in loading mode forever

2018-04-05 Thread nup
Ok, I figured it out. Basically, if you have a project in Bitbucket called 
*my-project* and it has multiple repos A, B and C. A and B has data, but C 
repo was created but has no content at all. Since there is an empty repo  C 
in my-project blueocean just hangs trying to load any repositories in 
my-project. Either this is a bug in Blueocean or Bitbucket. 



On Thursday, April 5, 2018 at 11:35:28 AM UTC-7, vivek wrote:
>
> Can you provide more details? Any error shown on server side and on 
> browser console? I suspect frontend is not handling error reported when it 
> calls backend API. 
>
> On Thu, Apr 5, 2018 at 11:25 AM nup > 
> wrote:
>
>> Hi All, 
>>
>> I have blueocean pipeline that I was using months ago connected with 
>> bitbucket repo.  Recently I tried to use the same pipeline in the blue 
>> ocean, but after adding information for  "Which project does the 
>> repository belong to?"
>> Selected my repo, but the little blue circle keeps spinning forever with 
>> "Loading" message and I cannot create a pipeline. 
>>
>> Does anyone know how to fix this? Any help would be greatly appreciated. 
>>
>> 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 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/ce3e716b-a066-4b13-b651-5e702d8c229a%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Sent from my iPhone 
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/6ba75d24-d2c6-4894-8dae-e344d0790900%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Blue Ocean + Bitbucket cloud: is it possible to use without a team?

2018-04-05 Thread Vivek Pandey
Hi Alex,

My inlined comments:

> I have a special "build bot" account with read-only access to our repos.
But when I log Blue Ocean in with this account, it only finds zero repos
(the bot account has none), and zero teams (or one empty default team, I
don't recall).

Short answer, there is no bitbucket API to get repos that a user has
permission to access. There are APIs that only gives repo owned by a user
or team.

Basically blueocean calls bitbucket API to get list of repositories for
given credentials. In this case it calls,
https://api.bitbucket.org/2.0/repositories/:[username
or team ],
but this API only returns repos 'owned' by the user or team in context.  It
doesn't return all repos across accounts that the user is has permission to
access.

> I could specify a repo the bot has access to, but the UI doesn't let me
do that, and I can't progress.

Right, at the moment you can only create pipelines for the repos owned by a
user or team.

> Is there a way around this problem?

Not unless Bitbucket provides an API that we can use to show user level
repo membership across teams/users. I guess it doesn't work for you but if
you can add  'bot account' to the team that owns this repo, that team will
appear and its repos accessible by 'bot account' can be built.

Somewhat related, there is work in progress
https://issues.jenkins-ci.org/browse/JENKINS-46656, that will avoid users
to provide their credentials to blueocean, instead will do auth dance with
bitbucket to fetch jwt token and work with it.

On Wed, Apr 4, 2018 at 6:37 AM Alex D 
wrote:

> I'm trying to set up a Blue Ocean pipeline. My code repo is on Bitbucket
> Cloud, and I've discovered two ways to access this repo from Blue Ocean:
>
>1. through a team that owns the repo, or
>2. through the user account that owns the repo.
>
> None of these tow options are suitable. My repo is not associated with any
> teams, and I don't want to let Blue Ocean to log into Bitbucket through the
> main admin account. I have a special "build bot" account with read-only
> access to our repos. But when I log Blue Ocean in with this account, it
> only finds zero repos (the bot account has none), and zero teams (or one
> empty default team, I don't recall). I could specify a repo the bot has
> access to, but the UI doesn't let me do that, and I can't progress.
>
> Is there a way around this problem? Or is Blue Ocean no-go for me?
>
> P. S. I can't associate the repos of interest with a team because it
> requires repo ownership to be transferred to the team, and I can't afford
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d4967dbe-db30-45ce-a046-c2a343a13013%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my iPhone

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAKT4V19%2B_SZtddLXoCKZSu1fWKtJNmfzd4y-nqMx_yE-DXrzjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: blueocean bitbucket repo in loading mode forever

2018-04-05 Thread Vivek Pandey
Can you provide more details? Any error shown on server side and on browser
console? I suspect frontend is not handling error reported when it calls
backend API.

On Thu, Apr 5, 2018 at 11:25 AM nup  wrote:

> Hi All,
>
> I have blueocean pipeline that I was using months ago connected with
> bitbucket repo.  Recently I tried to use the same pipeline in the blue
> ocean, but after adding information for  "Which project does the
> repository belong to?"
> Selected my repo, but the little blue circle keeps spinning forever with
> "Loading" message and I cannot create a pipeline.
>
> Does anyone know how to fix this? Any help would be greatly appreciated.
>
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/ce3e716b-a066-4b13-b651-5e702d8c229a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my iPhone

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAKT4V197FtPdRqQbpHJ_0x_RZSiOwUnvcQnXuKTyffFPPLn6hA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


blueocean bitbucket repo in loading mode forever

2018-04-05 Thread nup
Hi All, 

I have blueocean pipeline that I was using months ago connected with 
bitbucket repo.  Recently I tried to use the same pipeline in the blue 
ocean, but after adding information for  "Which project does the repository 
belong to?"
Selected my repo, but the little blue circle keeps spinning forever with 
"Loading" message and I cannot create a pipeline. 

Does anyone know how to fix this? Any help would be greatly appreciated. 

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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ce3e716b-a066-4b13-b651-5e702d8c229a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Remote Jenkins Node never brought offline

2018-04-05 Thread Alexandru Băluț
I'm using Jenkins ver. 2.107.1 and I created a Node. See the screenshot
below for the configuration details of the Node.

The node is launched by a "Launch command" which starts an expensive cloud
instance, then starts the agent remotely through ssh, then after the agent
process stops shuts down the machine.

In the agent log I see "Agent successfully connected and online" but even
though the Availability is set to "Take this agent online when in demand,
and offline when idle", and Idle delay is 1, it's never taken offline. I
even specifically marked the agent as offline by clicking a button in its
Status page, but still the same.

I tried to kill the "java -jar agent.jar" process and the machine was shut
down as expected, but then it was brought up again, even though Build Queue
is empty "No builds in the queue".

Why does Jenkins keep bringing it up?

Thanks,
Alex

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAHAfVU9D%3DS90fbZwmJkwmG%3D-8O%3DG6fS_e3yTri61k-0oHSK0fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Fwd: Performance monitoring (RAM and CPU usage) of a C++ application

2018-04-05 Thread Kubiack
Hello Jenkins Users


I am currently using Jenkins for automated tests on a C++ application
running on Ubuntu.

I use a Jenkinsfile to automate the build steps; most of them are shell
commands :

'sh make build'

'sh make test1'

and so on ...

The tests produces CSV files consumed by the plot plugin so I have nice
graphs of the evolution of some metrics (numerical precisions mostly, we
are doing research).

I want to add a step which runs my application and monitor the RAM and CPU
usage and output a CSV (for plots again). The idea is to be able to see the
"progresses" on RAM and CPU usage (mean, max, std-dev) accross each builds.

I currently have no idea about how to do that, except maybe a bash script
running 'top' or similar command periodically during the execution of the
application.

Is someone knows a better way to do that ?

Any idea will be greatly appreciated !

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAJHgMvrDf3xXqY-POBRN%3DrPAVc7RA3y2CTCp-QdaQHHdHX5rFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trend Graph

2018-04-05 Thread Ullrich Hafner
I this a general advice or are you using the warnings plugin in a different way 
that requires that the old behavior should be retained?

BTW: the corresponding issue is 
https://issues.jenkins-ci.org/browse/JENKINS-50551

> Am 05.04.2018 um 13:13 schrieb Artur Szostak :
> 
> Unless you want to make a lot of people angry, or unless there is a 
> fundamentally good reason, always make the existing behaviour the default. 
> New behaviour should be explicitly selected. If there is a good reason to 
> make new behaviour the default, there should at the very least be a 
> transition period over several plugin versions, and clear deprecation 
> warnings / mechanisms to allow for a sensible update / transition strategy.
> 
> Cheers
> 
> Artur
> 
> From: jenkinsci-users@googlegroups.com 
>   > on behalf of Dan 
> mailto:daniel.faie...@remcom.com>>
> Sent: 30 March 2018 15:29:25
> To: Jenkins Users
> Subject: Re: Trend Graph
> 
> Maybe I should change that so that the first build always has no new 
> warnings. What do you think? I’m not sure if I break something from other 
> peoples’ jobs if I change that…
> 
> This would solve my problem, so I'm all for it!
> For people who want existing functionality, you could add a checkbox in 
> "Configure the trend graph". Although it seems my usage makes more sense, 
> there's probably someone who disagrees. Something like:
> 
> 
> Suppress reference build
> If set warnings for the reference build are not displayed as 'new' for the 
> graph type 'Distribution of new and fixed warnings'.
> 
> 
> 
> Or you could reverse it and have
> 
> Display reference build
> 
> 
> On Thursday, March 29, 2018 at 7:43:19 PM UTC-4, Ullrich Hafner wrote:
> I think this will not work. If no previous result is found, then an empty set 
> of warnings is used as baseline, so we still get a large number of new 
> warnings. I wonder if it would make sense to change the current behavior of 
> my plugin. I must admit that marking all warnings of the first build as new 
> is not a conscious decision. Maybe I should change that so that the first 
> build always has no new warnings. What do you think? I’m not sure if I break 
> something from other peoples’ jobs if I change that…
> 
> The other suggestions about changing the graphs: this is currently not 
> supported will will never be supported with the current chart implementation. 
> In the future (*), I would like to replace the png server side rendered 
> charts with client side rendered JS charts. Then it should be easy to 
> configure these graphs on the client side.
> 
> (*) Currently this is blocked by an integration of an old Prototype.JS 
> library in Jenkins core, see 
> https://issues.jenkins-ci.org/browse/JENKINS-49319 for details
> 
> Am 29.03.2018 um 21:42 schrieb Mark Waite  >:
> 
> What if the first build on a branch were run without calculating warnings 
> (since you intend to ignore warnings from the first build, you could choose 
> not to compute those warnings and not to report them.
> 
> After first build is complete, reconfigure the job (Jenkins UI or in the 
> Jenkinsfile if Pipeline) to report warnings.
> 
> Mark Waite
> 
> On Thu, Mar 29, 2018 at 12:26 PM Dan  > wrote:
> Jenkins uses a trend graph to display things like failed unit tests or 
> compilation warnings as a function of build number. Is there a way to 
> suppress only the first build OR to limit the height of the y-axis?
> 
> My company's workflow
> - create a copy of a Jenkins job for your particular branch
> - Build the branch without changes. This gives a baseline for the # of 
> warnings in the code (it has very old code, so there are a LOT)
> - The branch then automatically builds daily. New warnings introduced by the 
> developer show up in the Trend Graph.
> 
> The Trend Graph is configured to show only new or fixed warnings.
> The problem is that the 1st build introduces a ton of "new" warnings. This 
> pushes the +Y-axis max value to >1000. Any warnings fixed/introduced after 
> that are not visible.
> 
> Solution
> If we could somehow suppress showing just that first build, while still 
> showing all subsequent builds, this would be fixed. Or, if the +Y-axis could 
> be limited to show numbers from 0-100, this would be fixed.
> 
> Is this possible?
> 
> --
> 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-use...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/9449eb64-eb32-4d86-ab8f-ace4a11ff4a4%40googlegroups.com
>  

Re: Trend Graph

2018-04-05 Thread Artur Szostak
Unless you want to make a lot of people angry, or unless there is a 
fundamentally good reason, always make the existing behaviour the default. New 
behaviour should be explicitly selected. If there is a good reason to make new 
behaviour the default, there should at the very least be a transition period 
over several plugin versions, and clear deprecation warnings / mechanisms to 
allow for a sensible update / transition strategy.

Cheers

Artur

From: jenkinsci-users@googlegroups.com  on 
behalf of Dan 
Sent: 30 March 2018 15:29:25
To: Jenkins Users
Subject: Re: Trend Graph

Maybe I should change that so that the first build always has no new warnings. 
What do you think? I’m not sure if I break something from other peoples’ jobs 
if I change that…

This would solve my problem, so I'm all for it!
For people who want existing functionality, you could add a checkbox in 
"Configure the trend graph". Although it seems my usage makes more sense, 
there's probably someone who disagrees. Something like:


Suppress reference build
If set warnings for the reference build are not displayed as 'new' for the 
graph type 'Distribution of new and fixed warnings'.



Or you could reverse it and have

Display reference build


On Thursday, March 29, 2018 at 7:43:19 PM UTC-4, Ullrich Hafner wrote:
I think this will not work. If no previous result is found, then an empty set 
of warnings is used as baseline, so we still get a large number of new 
warnings. I wonder if it would make sense to change the current behavior of my 
plugin. I must admit that marking all warnings of the first build as new is not 
a conscious decision. Maybe I should change that so that the first build always 
has no new warnings. What do you think? I’m not sure if I break something from 
other peoples’ jobs if I change that…

The other suggestions about changing the graphs: this is currently not 
supported will will never be supported with the current chart implementation. 
In the future (*), I would like to replace the png server side rendered charts 
with client side rendered JS charts. Then it should be easy to configure these 
graphs on the client side.

(*) Currently this is blocked by an integration of an old Prototype.JS library 
in Jenkins core, see https://issues.jenkins-ci.org/browse/JENKINS-49319 for 
details

Am 29.03.2018 um 21:42 schrieb Mark Waite >:

What if the first build on a branch were run without calculating warnings 
(since you intend to ignore warnings from the first build, you could choose not 
to compute those warnings and not to report them.

After first build is complete, reconfigure the job (Jenkins UI or in the 
Jenkinsfile if Pipeline) to report warnings.

Mark Waite

On Thu, Mar 29, 2018 at 12:26 PM Dan > wrote:
Jenkins uses a trend graph to display things like failed unit tests or 
compilation warnings as a function of build number. Is there a way to suppress 
only the first build OR to limit the height of the y-axis?

My company's workflow
- create a copy of a Jenkins job for your particular branch
- Build the branch without changes. This gives a baseline for the # of warnings 
in the code (it has very old code, so there are a LOT)
- The branch then automatically builds daily. New warnings introduced by the 
developer show up in the Trend Graph.

The Trend Graph is configured to show only new or fixed warnings.
The problem is that the 1st build introduces a ton of "new" warnings. This 
pushes the +Y-axis max value to >1000. Any warnings fixed/introduced after that 
are not visible.

Solution
If we could somehow suppress showing just that first build, while still showing 
all subsequent builds, this would be fixed. Or, if the +Y-axis could be limited 
to show numbers from 0-100, this would be fixed.

Is this possible?

--
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-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9449eb64-eb32-4d86-ab8f-ace4a11ff4a4%40googlegroups.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-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGfLMfX6P_ampCegh1aKTs5uU%3D9Lt67Ag97fQApE%2BaheQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



Re: Request to be made a maintainer of audit-trail-plugin

2018-04-05 Thread Baptiste Mathus
Hello,
You want to send this to the dev list please.

Thanks

Le jeu. 5 avr. 2018 à 10:39,  a écrit :

>
> Hello,
>
> I request to be made a maintainer of audit-trail-plugin. Now this
> repository is abandon.
>
> Cheers,
> Tomasz
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/0cece8b8-1800-41ce-8cc1-b48d542347d3%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6PTKKz9HRU%3DVB0FvgCsusBqa%2BnWUzEzLmZnghnRQehyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: setup of Jenkins infrastructure

2018-04-05 Thread Artur Szostak
We have a setup with ~1000 matrix jobs building on about 50 platform / version 
combinations (i.e. one subjob is one platform combination). Total volume of the 
build logs approaches 1.5TB on a btrfs volume with compression enabled (I 
believe raw is about 2.5TB). If you were talking about freestyle jobs then our 
setup is way bigger than what you will have, otherwise its a similar size. Our 
experience has been that the Jenkins master becomes IOPS bound. You will really 
want a data storage system that can give you a high enough IOPS rate for the 
master. Otherwise the start up times are very long and the Jenkins webpage 
slows down badly. SSD is ideal if you can afford it, but only necessary for big 
setups with high amounts of jobs and build logs.

Cheers

Artur


From: jenkinsci-users@googlegroups.com  on 
behalf of LnT 
Sent: 01 March 2018 09:35
To: Jenkins Users
Subject: Re: setup of Jenkins infrastructure

Thanks so much Dirk.
I will convince for Linux Jenkins master.

Burden meaning - if 3000+ Jenkins jobs are created then

even though jobs run @ slaves
but respective build information will be stored @ Jenkins master. Hence it is 
seeing as burden.

What would you suggest - if Jenkins page load is damn slow ?

Regards,
LnT



On Thursday, March 1, 2018 at 12:43:51 PM UTC+5:30, Dirk Heinrichs wrote:
Hi,

> My Plan is
> 1. Create Jenkins master in in windows VM (Provided 16GB RAM)

We were also running our Jenkins master on Windows for the past couple of 
years, but we finally migrated it to Linux last year. Windows really (still) 
doesn't make a good server OS (even though it has "Server" in the name). So if 
there's no real reason other than "manager wants it to be this way", I'd 
recommend against running any server on Windows.

> Cons : I suspect , 3000+ jobs will be created and heavy burden over Jenkins 
> master

Please define "heavy burden". We usually don't run that much on the master, all 
the heavy lifting is done on our agent nodes.

HTH...

Dirk

--
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 
https://groups.google.com/d/msgid/jenkinsci-users/6b3570ad-779f-4874-960f-a7ec7b3e1c8d%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/50011751a1bc4370bc7dc210ed442d33%40partner.eso.org.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß

> Ok, it seems that the following line is the problem:
> 
> publish_ssh.removeHostConfiguration(host[0])
> 
> After commenting it out, the job runs perfectly using "Execute system Groovy 
> script".

You might need to go into Manage Jenkins -> In-process Script Approval and 
approve the method.

HTH...

Dirk
-- 
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 mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_8dc8643a-2Dda74-2D45dc-2D8714-2D9baaf47ecb98-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=uP6G3jxbaKTH_YK03ZaG2TZhQFdiFzO9Cqd4M8-XDqI&s=6TigJFccIzcyDjv24SEJp0zX-TpdaDlPhd6JRVNKmks&e=.
For more options, visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=uP6G3jxbaKTH_YK03ZaG2TZhQFdiFzO9Cqd4M8-XDqI&s=xA1ozapx1IJhMQXfv4ZmzAeJmpcg4Syi5-J-msJ3BB8&e=.

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/SN6PR15MB24164A9F26B21BC1E5F24BE8AABB0%40SN6PR15MB2416.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Volker Groß
Ok, it seems that the following line is the problem:

publish_ssh.removeHostConfiguration(host[0])

After commenting it out, the job runs perfectly using "Execute system 
Groovy script".

Volker


Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb Volker Groß:
>
> Hi,
>
> i'm having a bunch of groovy-scripts, which are at least about 2,5 years 
> old. At the time the scripts where set up, we were able to add 
> publish-over-ssh ssh-servers within the jenkins global configuration tab.
> After one update those scripts won't run again. I'm always getting this 
> error:
>
> Started by user Entwicklung
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
> Processing provided DSL script
> ERROR: startup failed:
> script: 33: unable to resolve class BapSshHostConfiguration 
>  @ line 33, column 23.
>  def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>  ^
>
> 1 error
>
> Finished: FAILURE
>
> This is my script, i just deleted the host-values ;)
>
> import jenkins.model.*
> import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
>
> def inst = Jenkins.getInstance()
> def publish_ssh = 
> inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin')
>
>
> println 
> ""
> println "PublishOverSsh - Creating global list of Server/Paths"
> println 
> ""
>
>
> /* Serverlist
>  The following has to be set.
>   
> name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec
> */
> def hosts = [
>
> ['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,3,false,'','',true]
> ]
>
> println 'Renewing Global Publish-Over-SSH-Server Configs'
>
> hosts.each { host->
>   def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>   println " - SSH-Host ${host[0]}"
>   publish_ssh.removeHostConfiguration(host[0])
>   publish_ssh.addHostConfiguration(configuration)
> }
>
> I hope one can help.
>
> Best from DE
> Volker
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/8dc8643a-da74-45dc-8714-9baaf47ecb98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Volker Groß
Thank you Dirk, for pointing me the right direction, but let me hopefully 
ask a final question:

Is there a way to execute this tiny groovy-script, which runs in the script 
console without errors, within a Jenkins job? 

I tried it with using "Execute system Groovy script, which brings up this 
error:

ERROR: Build step failed with exception
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts 
not permitted to use staticMethod jenkins.model.Jenkins getInstance
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:189)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onStaticCall(SandboxInterceptor.java:160)
at org.kohsuke.groovy.sandbox.impl.Checker$2.call(Checker.java:186)
at 
org.kohsuke.groovy.sandbox.impl.Checker.checkedStaticCall(Checker.java:190)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:97)
at 
org.kohsuke.groovy.sandbox.impl.Checker$checkedCall.callStatic(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
at Script1.run(Script1.groovy:4)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.run(GroovySandbox.java:141)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(SecureGroovyScript.java:333)
at hudson.plugins.groovy.SystemGroovy.run(SystemGroovy.java:95)
at hudson.plugins.groovy.SystemGroovy.perform(SystemGroovy.java:59)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1727)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Execute system Groovy script' marked build as failure
Finished: FAILURE


and as "Execute Groovy Script" with the error i posted before. "I can't see 
the wood, as there are too many trees"...

Yours 
Volker

Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb Volker Groß:
>
> Hi,
>
> i'm having a bunch of groovy-scripts, which are at least about 2,5 years 
> old. At the time the scripts where set up, we were able to add 
> publish-over-ssh ssh-servers within the jenkins global configuration tab.
> After one update those scripts won't run again. I'm always getting this 
> error:
>
> Started by user Entwicklung
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials
> Processing provided DSL script
> ERROR: startup failed:
> script: 33: unable to resolve class BapSshHostConfiguration 
>  @ line 33, column 23.
>  def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>  ^
>
> 1 error
>
> Finished: FAILURE
>
> This is my script, i just deleted the host-values ;)
>
> import jenkins.model.*
> import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
>
> def inst = Jenkins.getInstance()
> def publish_ssh = 
> inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin')
>
>
> println 
> ""
> println "PublishOverSsh - Creating global list of Server/Paths"
> println 
> ""
>
>
> /* Serverlist
>  The following has to be set.
>   
> name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec
> */
> def hosts = [
>
> ['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,3,false,'','',true]
> ]
>
> println 'Renewing Global Publish-Over-SSH-Server Configs'
>
> hosts.each { host->
>   def configuration = new 
> BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10])
>   println " - SSH-Host ${host[0]}"
>   publish_ssh.removeHostConfiguration(host[0])
>   publish_ssh.addHostConfiguration(configuration)
> }
>
> I hope one can help.
>
> Best from DE
> Volker
>

-- 
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...@go

Request to be made a maintainer of audit-trail-plugin

2018-04-05 Thread tomasz . sek . 88

Hello,

I request to be made a maintainer of audit-trail-plugin. Now this 
repository is abandon.

Cheers,
Tomasz

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/0cece8b8-1800-41ce-8cc1-b48d542347d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-05 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß

> Build step 'Execute Groovy script' marked build as failure

"Groovy Script" != "System Groovy Script".

You can test System Groovy scripts in the Script Console (Manage Jenkins -> 
Script Console). Attention: Don't use System.exit() there since it would tell 
your Jenkins to exit.

Bye...

Dirk
-- 
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 mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_jenkinsci-2Dusers_c754f25d-2D8fb4-2D49b3-2D983c-2D1cd8748e56e9-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=qlNVPmHNbBxQ7gS7RMLid6YHTNZU_UtnVqi-sA9pl50&s=-2qwFFMqFB18ZA_uDcZ6AoCy48RVzZcS9_5WFwLSBio&e=.
For more options, visit 
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=qlNVPmHNbBxQ7gS7RMLid6YHTNZU_UtnVqi-sA9pl50&s=uWsksHHAftDhpewEtGGWRRgyKn4HL_e6PSrWfCvUnzc&e=.

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/SN6PR15MB241658005F7C777BF03D79C5AABB0%40SN6PR15MB2416.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy script to do jenkins configuration on Manage Jenkins level for Blackduck detect plugin

2018-04-05 Thread Ewelina Wilkosz
I'm confused, isn't it the one I provided? 
https://github.com/jenkinsci/blackduck-detect-plugin/blob/master/src/main/java/com/blackducksoftware/integration/detect/jenkins/post/DetectPostBuildStepDescriptor.java
 
?

it has setters for hubUrl, credentials, timeout... exactly what you have in 
global config:




so it would be - I'm guessing, haven't tried:


import com.blackducksoftware.integration.detect.jenkins.post.
DetectPostBuildStepDescriptor;

def blackduckDetectDesc = Jenkins.getInstance().getDescriptor("
com.blackducksoftware.integration.detect.jenkins.post.
DetectPostBuildStepDescriptor")

blackduckDetectDesc.setHubTimeout(60);

blackduckDetectDesc.setTrustSSLCertificates(true)


etc?


On Thursday, March 29, 2018 at 4:24:58 PM UTC+2, Sabyasachi Das wrote:
>
> Thanks Ewelina,
>
> Actually we are looking for a method to retrieve the class instance which 
> is keeping the BlackDuckHub configuration on master level.
>
>  
>
> For example for SonarQube it will be
>
>  
>
> import jenkins.model.Jenkins;
>
> import hudson.plugins.sonar.SonarGlobalConfiguration;
>
> import hudson.plugins.sonar.SonarInstallation;
>
>  
>
> def sonarDescr = 
> jenkins.getInstance().getDescriptorByType(SonarGlobalConfiguration)l
>
> sonarDescr.setInstallations(
>
> new SonarInstallation(
>
> 'sonar',
>
> 'http://sonarqube.com',
>
> // Other constructor properties...
>
> )
>
> );
>
> sonarDescr.save();
>
>
> Didn't find it in this class.
>
> On Monday, March 26, 2018 at 10:54:17 PM UTC+5:30, Ewelina Wilkosz wrote:
>>
>> I haven't tried that and don't know the plugin, but I think you need to 
>> find descriptor first
>> since I've found global.jelly for DetectPostBuildStep (
>> https://github.com/jenkinsci/blackduck-detect-plugin/blob/master/src/main/resources/com/blackducksoftware/integration/detect/jenkins/post/DetectPostBuildStep/global.jelly)
>>  
>> I would risk and say it may be that one: 
>>
>> https://github.com/blackducksoftware/blackduck-detect-plugin/blob/9993e4a22bf375c11d1872e4d619b83940b7e777/src/main/java/com/blackducksoftware/integration/detect/jenkins/post/DetectPostBuildStepDescriptor.java
>>
>> you can see there are public setters in it, so getDescriptor for 
>> com.blackducksoftware.integration.detect.jenkins.post 
>> (I guess) and use it to call setters
>> does it make sense to you?
>>
>> In the future, hopefully, Jenkins Configuration as Code Plugin will be 
>> able to take care of that for you :)
>>
>> On Monday, March 26, 2018 at 5:50:54 PM UTC+2, Sabyasachi Das wrote:
>>>
>>> Hi All,
>>>
>>> I have installed Blackduck detect plugin in jenkins. I want to do 
>>> Blackduck  detect configurations via groovy script.
>>>
>>> I am able to do using GUI Manage Jenkins -> configure system but need to 
>>> do similar activity via groovy script.
>>> Similar configurations for other plugins can be done for example below. 
>>> But for BlackDuck detect I cant find any appropriate class to provide.
>>> https://github.com/blackducksoftware/blackduck-detect-plugin
>>>
>>> Anyone please help me on this.
>>>
>>> Thanks,
>>> Sabya
>>>
>>> Sonar Script
>>> ==
>>> import jenkins.model.*
>>> import hudson.plugins.sonar.*
>>> import hudson.plugins.sonar.model.*
>>> import jenkins.plugins.slack.SlackNotifier
>>> import jenkins.plugins.git.GitSCMSource
>>>
>>> def inst = Jenkins.getInstance()
>>>
>>> def desc = inst.getDescriptor("hudson.plugins.sonar.SonarPublisher")
>>> //or slack or git
>>> def slack = instance.getDescriptor(SlackNotifier)
>>> def gitPluginSetup = instance.getDescriptor(GitSCM)
>>>
>>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/e496431c-067c-4490-8886-0f9269248a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.