Re: Use Master/Slave architecture on the same linux machine.

2015-10-12 Thread iostrym
Thanks a lot. tested with success. master and slave on same unix machine 
without doing anything else that playing with "add a node" in Jenkins 
administration.

Concerning ressource taken by jenkins slave. do you have an idea ? Because 
if we need one slave per user on the unix machine, there could be a 
ressource problem.

Le samedi 10 octobre 2015 00:02:43 UTC+2, Mark Waite a écrit :
>
>
> On Fri, Oct 9, 2015 at 3:58 PM armando <arman...@gmail.com 
> > wrote:
>
>> thanks a lot for details. 
>>
>> I was told that one jenkins installation must be configured as master OR 
>> slave.
>>
>> When I read your post, it seems that it is possible to configure a slave 
>> on the same machine without installing another Jenkins installation and 
>> configure it as a slave:
>>
>> one jenkins installation could be configured as a master and also be used 
>> to configure other slaves ? right ?
>>
>
> That's right.
>
> The general guidance is one slave per machine because a single slave can 
> have multiple executors.  Executors are lighter weight than slaves, since 
> they exist within a slave.  Your use case is atypical because you need 
> different system level attributes (logged in user, signing certificate 
> access, etc.) for different jobs.
>
> Mark Waite
>  
>
>> 2015-10-09 23:51 GMT+02:00 Mark Waite <mark.ea...@gmail.com 
>> >:
>>
>>> I can confirm that it is possible to have a master and a slave on the 
>>> same Linux machine where the master runs as one user and the slave runs as 
>>> another user.
>>>
>>> It is atypical because most Jenkins users don't need a specific user to 
>>> execute their build steps.  It is not abnormal or hard to do.
>>>
>>> I've never seen any documentation which describes how to do that, though 
>>> there are help icons beside each of the fields which control that behavior.
>>>
>>> Using our Jenkins server (running as the user "jenkins"), I configured a 
>>> slave to run as the user "mwaite" on the same machine by configuring a 
>>> slave, and selecting credentials for the user mwaite from the "Advanced" 
>>> section of the Jenkins nodes configuration page.  Then I ran a job on that 
>>> slave which executed the command "id".  That command showed that the slave 
>>> is running as the user "mwaite" as expected.
>>>
>>> Mark Waite
>>>
>>> On Fri, Oct 9, 2015 at 3:15 PM iostrym <arman...@gmail.com > 
>>> wrote:
>>>
>>>> Thanks a lot for your answer.
>>>>
>>>> Then can you confirm me that it is possible to have a master (user 
>>>> jenkins) and its slave (user TOTO) on the same linux machine ?
>>>>
>>>> If yes, is it a abnormal and tricky way of doing (hard to do, badly 
>>>> documented, with low chance of success) or is it a common way of doing ?
>>>>
>>>>
>>>> Le vendredi 9 octobre 2015 22:58:05 UTC+2, Mark Waite a écrit :
>>>>
>>>>> The Jenkins slave launch will allow you to launch the slave as the 
>>>>> user TOTO.  Then all jobs which run on that slave will be executed as the 
>>>>> user TOTO.  You can even run multiple slaves as the same user (though I 
>>>>> don't know why you would), so long as you use a distinct directory for 
>>>>> each 
>>>>> of the slaves.
>>>>>
>>>>> Mark Waite
>>>>>
>>>>> On Fri, Oct 9, 2015 at 9:03 AM iostrym <arman...@gmail.com> wrote:
>>>>>
>>>> We have a multi-user linux server.
>>>>>>
>>>>>> Jenkins in installed and configured as master.
>>>>>>
>>>>>> Some jobs need to be run by a user TOTO for some specific reasons 
>>>>>> (license access for example)
>>>>>>
>>>>>> One of our solution is to use "execute shell script on remote host 
>>>>>> using ssh" but then the workspace is still on the jenkins user whereas 
>>>>>> data 
>>>>>> are generated on the TOTO home directory. We would like to avoid a 
>>>>>> script 
>>>>>> to move data generated (pretty dirty)
>>>>>>
>>>>>> So I wonder if it is possible to install a slave jenkins for each 
>>>>>> user on the same linux machine ? Then the job workspace will be on TOTO 
>>>>>> homespace.
>&

Re: Use Master/Slave architecture on the same linux machine.

2015-10-09 Thread iostrym
Thanks a lot for your answer.

Then can you confirm me that it is possible to have a master (user jenkins) 
and its slave (user TOTO) on the same linux machine ?

If yes, is it a abnormal and tricky way of doing (hard to do, badly 
documented, with low chance of success) or is it a common way of doing ?

Le vendredi 9 octobre 2015 22:58:05 UTC+2, Mark Waite a écrit :
>
> The Jenkins slave launch will allow you to launch the slave as the user 
> TOTO.  Then all jobs which run on that slave will be executed as the user 
> TOTO.  You can even run multiple slaves as the same user (though I don't 
> know why you would), so long as you use a distinct directory for each of 
> the slaves.
>
> Mark Waite
>
> On Fri, Oct 9, 2015 at 9:03 AM iostrym <arman...@gmail.com > 
> wrote:
>
>> We have a multi-user linux server.
>>
>> Jenkins in installed and configured as master.
>>
>> Some jobs need to be run by a user TOTO for some specific reasons 
>> (license access for example)
>>
>> One of our solution is to use "execute shell script on remote host using 
>> ssh" but then the workspace is still on the jenkins user whereas data are 
>> generated on the TOTO home directory. We would like to avoid a script to 
>> move data generated (pretty dirty)
>>
>> So I wonder if it is possible to install a slave jenkins for each user on 
>> the same linux machine ? Then the job workspace will be on TOTO homespace.
>>
>> What is the most-used multi-user linux architecture for Jenkins ? 
>>
>> Best regards,
>>
>> -- 
>> 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/68956858-28c3-4b0d-bc1c-f789c3f644fc%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/68956858-28c3-4b0d-bc1c-f789c3f644fc%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/7b5d870e-d898-4911-a14a-9e8ce5a549ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Use Master/Slave architecture on the same linux machine.

2015-10-09 Thread iostrym
We have a multi-user linux server.

Jenkins in installed and configured as master.

Some jobs need to be run by a user TOTO for some specific reasons (license 
access for example)

One of our solution is to use "execute shell script on remote host using 
ssh" but then the workspace is still on the jenkins user whereas data are 
generated on the TOTO home directory. We would like to avoid a script to 
move data generated (pretty dirty)

So I wonder if it is possible to install a slave jenkins for each user on 
the same linux machine ? Then the job workspace will be on TOTO homespace.

What is the most-used multi-user linux architecture for Jenkins ? 

Best regards,

-- 
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/68956858-28c3-4b0d-bc1c-f789c3f644fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


export display in a shell script executed by Jenkins

2016-01-07 Thread iostrym
Hi,

We have a TCL script that has a GUI that is executed by Jenkins using a 
shell script in the job.

Then we have to use :

export DISPLAY=:

I used things like that to try to avoid the use of a port number that is 
already used by someone else or by another job :

export DISPLAY=:`expr "$BUILD_NUMBER" + "100"`

Is there a clean way in the jenkins shell script to get a port_number that 
is free ? so that the job will never fail because of a port_number already 
existant...

thanks a lot.

-- 
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/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread iostrym
ok i just realized that after the 

export DISPLAY=:

I have the command :

Xvfb :`expr "$BUILD_NUMBER" + "100"` &

So using the plugin will have the same impact.

But... in the plugin I don't see anything to use a free port number... it 
is said that the port_number will be the number of the build. So there will 
be risk for build to abord if the port_number is take by another job...

Le jeudi 7 janvier 2016 15:05:33 UTC+1, iostrym a écrit :
>
> Thanks a lot. But is the use of Xvfb plug-in more heavy than a 
> simple export DISPLAY function ? in term of ressource utilization...
>
> Le jeudi 7 janvier 2016 14:24:07 UTC+1, Mark Waite a écrit :
>>
>> The xvnc plugin can start a VNC based X server at the start of your job, 
>> and stop it at the end of your job.  Most Linux distributions make it very 
>> easy to install Xvnc, then the plugin will use that installation of Xvnc to 
>> provide you a display server (and the DISPLAY environment variable).  I had 
>> very good results with that plugin.
>>
>> There is also an Xvfb plugin which uses the X virtual frame buffer driver 
>> to do the same thing.  I haven't used it, but there are others who have 
>> used it with good results.
>>
>> Mark Waite
>>
>> On Thu, Jan 7, 2016 at 6:07 AM iostrym <arman...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> We have a TCL script that has a GUI that is executed by Jenkins using a 
>>> shell script in the job.
>>>
>>> Then we have to use :
>>>
>>> export DISPLAY=:
>>>
>>> I used things like that to try to avoid the use of a port number that is 
>>> already used by someone else or by another job :
>>>
>>> export DISPLAY=:`expr "$BUILD_NUMBER" + "100"`
>>>
>>> Is there a clean way in the jenkins shell script to get a port_number 
>>> that is free ? so that the job will never fail because of a port_number 
>>> already existant...
>>>
>>> thanks a lot.
>>>
>>> -- 
>>> 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/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> 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/29e03fd5-524d-4b5e-8f35-0049e79f3e21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-08 Thread iostrym
thanks a lot. I didn't see this option "Let Xvfb choose display name"

:)

Le jeudi 7 janvier 2016 18:57:10 UTC+1, old hooky a écrit :
>
> > Quoting iostrym <arman...@gmail.com >: 
> > 
> >> Hi, 
> >> 
> >> We have a TCL script that has a GUI that is executed by Jenkins using a 
> >> shell script in the job. 
> >> 
> >> Then we have to use : 
> >> 
> >> export DISPLAY=: 
> >> 
> >> I used things like that to try to avoid the use of a port number that 
> is 
> >> already used by someone else or by another job : 
> >> 
> >> export DISPLAY=:`expr "$BUILD_NUMBER" + "100"` 
> >> 
> >> Is there a clean way in the jenkins shell script to get a port_number 
> that 
> >> is free ? so that the job will never fail because of a port_number 
> already 
> >> existant... 
> >> 
> >> thanks a lot. 
> > 
> > 
> > Try this: 
> https://wiki.jenkins-ci.org/display/JENKINS/Port+Allocator+Plugin 
>
>
> Sorry, you asked for a free port number, but that's not really what you 
> want. 
>
> As suggested, you should use   
> https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin 
>
>

-- 
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/dca2df53-66ec-4c03-a19f-8239d091c001%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread iostrym
yes, sorry it was a mistake.

anyway, I don't succeed to let jenkins to chose the display number when 
using Xvbf plugin...

Le jeudi 7 janvier 2016 15:11:33 UTC+1, Dirk Heinrichs a écrit :
>
> Am 07.01.2016 um 15:05 schrieb iostrym:
>
> Thanks a lot. But is the use of Xvfb plug-in more heavy than a 
> simple export DISPLAY function ? in term of ressource utilization...
>
>
> Without it, setting DISPLAY for a Jenkins job doesn't make much sense.
>
> Bye...
>
> Dirk
> -- 
>
> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
> *Tel*: +49 2226 159 (Ansage) 1149
> *Email*: d...@recommind.com 
> *Skype*: dirk.heinrichs.recommind
> www.recommind.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2c04b093-546d-48cd-8cc6-c85319336b83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


jenkins advanced user right

2015-11-30 Thread iostrym
Hello,

Is it possible to give right for some users to create and configure their 
job without being able to modify some jobs.

Typically, have one job area for one project and another job area for 
another project. And use from one project that can't modify job for the 
other project.

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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins advanced user right

2015-12-01 Thread iostrym
Thanks.

role based plugin don't work without cloudbee folder ? I had a quick look 
at role based plugin but hte problem is that all existing right for each 
user (around 30) will be lost with this plugin. It seems that we will have 
to redo all right for each user. right ?

I also discover that at job creation it is possible to "protect" the job 
and add right for specific user but it is quite fastiduous if there are 
several user to give access.

In the same subject, what about "slave protection" ? If I add a slave, is 
it possible to be sure that a job from another group of user (another 
project) won't use that slave ? I don't find any slave protection. Even if 
the slave is not configured to be used "as much as possible", it seems to 
be still possible for a user to select my slave for his job. (and execute a 
rm * -rf on my machine...)

Best regards,

Le mardi 1 décembre 2015 03:57:08 UTC+1, Indra Gunawan (ingunawa) a écrit :
>
> Use Cloudbee Folder, and Role based Plugin.  Define specific role based on 
> the regex of each of name of folder for projects/jobs.   One category of 
> jobs each in a separate folder.
>
>
> From: <jenkins...@googlegroups.com > on behalf of iostrym <
> arman...@gmail.com >
> Reply-To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Date: Monday, November 30, 2015 at 1:48 AM
> To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Subject: jenkins advanced user right
>
> Hello, 
>
> Is it possible to give right for some users to create and configure their 
> job without being able to modify some jobs.
>
> Typically, have one job area for one project and another job area for 
> another project. And use from one project that can't modify job for the 
> other project.
>
> 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/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/5eeb1923-d6cc-4a36-b93a-7ff47c119f95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins advanced user right

2015-11-30 Thread iostrym
Thanks,

Are you saying that I use to install a specific plug-in to do that ? it is 
not nativelly inside Jenkins ?

is there a more widely user plugin beyong all these ?

Best regards,

Le lundi 30 novembre 2015 11:04:34 UTC+1, Stephen Connolly a écrit :
>
> Yes. You need to use an authorization strategy that allows permissions to 
> differ per item, e.g.
>
> * Project matrix
> * Role strategy
> * CloudBees RBAC (proprietary)
>
> On 30 November 2015 at 09:48, iostrym <arman...@gmail.com > 
> wrote:
>
>> Hello,
>>
>> Is it possible to give right for some users to create and configure their 
>> job without being able to modify some jobs.
>>
>> Typically, have one job area for one project and another job area for 
>> another project. And use from one project that can't modify job for the 
>> other project.
>>
>> 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/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/7b668967-d56a-43b9-ba30-a44cd4adc16c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins advanced user right

2015-12-01 Thread iostrym
thanks a lot. but it will be difficult for us to buy such a plugin.

anyone else know if there is a free plug in to lock some slave for some 
users or one user ?

Le mardi 1 décembre 2015 11:06:00 UTC+1, Stephen Connolly a écrit :
>
> On 1 December 2015 at 10:01, iostrym <arman...@gmail.com > 
> wrote:
>
>> Thanks.
>>
>> role based plugin don't work without cloudbee folder ? I had a quick look 
>> at role based plugin but hte problem is that all existing right for each 
>> user (around 30) will be lost with this plugin. It seems that we will have 
>> to redo all right for each user. right ?
>>
>> I also discover that at job creation it is possible to "protect" the job 
>> and add right for specific user but it is quite fastiduous if there are 
>> several user to give access.
>>
>>
> Ahem...
>
> [Puts on CloudBees Employee Hat]
>
> Really sounds like you are looking for some of the enterprise features in 
> CloudBees Jenkins Enterprise:
>
> * CloudBees RBAC plugin supports importing your current Matrix or Project 
> Matrix security settings so you can migrate to an fully RBAC model piecewise
> * CloudBees RBAC plugin allows for creation of local groups that make 
> per-project role assignment easier
> * CloudBees RBAC plugin allows delegation of RBAC management for specific 
> items to a subset of users
> * CloudBees Folders plus allows restriction of some slaves to jobs within 
> specific folders
> * etc
>
> [Removes CloudBees Employee Hat] 
>  
>
>> In the same subject, what about "slave protection" ? If I add a slave, is 
>> it possible to be sure that a job from another group of user (another 
>> project) won't use that slave ? I don't find any slave protection. Even if 
>> the slave is not configured to be used "as much as possible", it seems to 
>> be still possible for a user to select my slave for his job. (and execute a 
>> rm * -rf on my machine...)
>>
>> Best regards,
>>
>> Le mardi 1 décembre 2015 03:57:08 UTC+1, Indra Gunawan (ingunawa) a 
>> écrit :
>>>
>>> Use Cloudbee Folder, and Role based Plugin.  Define specific role based 
>>> on the regex of each of name of folder for projects/jobs.   One category of 
>>> jobs each in a separate folder.
>>>
>>>
>>> From: <jenkins...@googlegroups.com> on behalf of iostrym <
>>> arman...@gmail.com>
>>> Reply-To: "jenkins...@googlegroups.com" <jenkins...@googlegroups.com>
>>> Date: Monday, November 30, 2015 at 1:48 AM
>>> To: "jenkins...@googlegroups.com" <jenkins...@googlegroups.com>
>>> Subject: jenkins advanced user right
>>>
>>> Hello, 
>>>
>>> Is it possible to give right for some users to create and configure 
>>> their job without being able to modify some jobs.
>>>
>>> Typically, have one job area for one project and another job area for 
>>> another project. And use from one project that can't modify job for the 
>>> other project.
>>>
>>> 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/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/c843b0cd-778b-4960-aafe-1371b7686c62%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> 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/5eeb1923-d6cc-4a36-b93a-7ff47c119f95%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/5eeb1923-d6cc-4a36-b93a-7ff47c119f95%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> 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/a009e16c-2949-41a4-86f8-63d2867704d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: security based project behavior jenkins v1.504

2016-01-12 Thread iostrym

In brief :

if in global security the "job -> configure" is set for a user. Does it 
mean that he has right to do job configuration for all jenkins jobs ? Even 
if the user is not added in the project specific security configuration ?

And also

if "job -> configure" is not set for a user, does he have right to do at 
least job configuration of its own job ?

Best regards,

Le lundi 11 janvier 2016 15:28:17 UTC+1, iostrym a écrit :
>
> Hi, 
>
> I'm using project matrix security on jenkins v1.504 (arround 2013)
>
> So I configure user access in Jenkins Configure Global Security and also 
>  inside jobs (project).
>
> As I read documentation, the project matrix should be cumulative with 
> matrix in global security.
>
> Does it says that if a user has job modification rights in global security 
> he could do job modification on all jobs. even on jobs that are protected 
> using project based security ? If yes, it is strange because I don't notice 
> this behavior everytime but sometimes I meet case where a user can do 
> modification in a job whereas the job has project based security.
>
> What would be the correct configuration for users in global configuration 
> if we want them to be able to see all jobs but be able to do modification 
> only on their jobs (is it always the case ?) and on jobs that has a project 
> based security that allow this.
>
> I don't want to use cloudbee plugin, and i'm trying to understand how 
> jenkins works without any specific plugin for security.
>

-- 
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/a5bbfdc7-5448-4cf9-b599-79b39927dd7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: console parsing with master/slave architecture

2016-01-11 Thread iostrym
thanks, I use also warning plugin but this parser can't be used to see 
warning with respect of the duration time... There is only alphetical order 
:(

So I would like to have a colored view of the console with respect of 
error/warning/note. exactly like 

Console Parser Plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/Console+Parser+Plugin> and log 
parser plugin


Le lundi 11 janvier 2016 13:46:30 UTC+1, Ullrich Hafner a écrit :
>
> You can check the warnings plug-in: here you can define your own parser 
> using Groovy…
>
> Am 11.01.2016 um 13:06 schrieb iostrym <arman...@gmail.com >:
>
> Hi all,
>
> I'm looking for a console parsing that don't need a file in the jenkins 
> server. Because I have no physical access to the linux server.
>
> But if the parser could be configurer using a test field inside jenkins, 
> it could be great.
>
> two parser that I have look for that : 
> Console Parser Plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/Console+Parser+Plugin> and 
> log parser plugin
> need a parser file on the jenkins server to work.
>
> Any idea ?
>
> -- 
> 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/a7f3e464-a1e5-4830-b701-212c764ae409%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/a7f3e464-a1e5-4830-b701-212c764ae409%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/9db67c7d-35d2-40a0-a67c-05de0028266b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


security based project behavior jenkins v1.504

2016-01-11 Thread iostrym
Hi, 

I'm using project matrix security on jenkins v1.504 (arround 2013)

So I configure user access in Jenkins Configure Global Security and also 
 inside jobs (project).

As I read documentation, the project matrix should be cumulative with 
matrix in global security.

Does it says that if a user has job modification rights in global security 
he could do job modification on all jobs. even on jobs that are protected 
using project based security ? If yes, it is strange because I don't notice 
this behavior everytime but sometimes I meet case where a user can do 
modification in a job whereas the job has project based security.

What would be the correct configuration for users in global configuration 
if we want them to be able to see all jobs but be able to do modification 
only on their jobs (is it always the case ?) and on jobs that has a project 
based security that allow this.

I don't want to use cloudbee plugin, and i'm trying to understand how 
jenkins works without any specific plugin for security.

-- 
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/e9c9ef2d-327c-4f05-b7bb-25aa82d07726%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


console parsing with master/slave architecture

2016-01-11 Thread iostrym
Hi all,

I'm looking for a console parsing that don't need a file in the jenkins 
server. Because I have no physical access to the linux server.

But if the parser could be configurer using a test field inside jenkins, it 
could be great.

two parser that I have look for that : 
Console Parser Plugin 
 and log 
parser plugin
need a parser file on the jenkins server to work.

Any idea ?

-- 
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/a7f3e464-a1e5-4830-b701-212c764ae409%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: crash plug-in warning - java heap space

2016-01-25 Thread iostrym
thanks a lot. So the message we have is a java heap problem that occurs on 
Jenkins Master ? Right ? 

Is it possible to modify the heap size of the Jenkins Master ?

Le samedi 23 janvier 2016 14:18:54 UTC+1, Ullrich Hafner a écrit :
>
> Parsing is done on the master.
>
> Am 22.01.2016 um 14:45 schrieb iostrym <arman...@gmail.com >:
>
> Hi,
>
> We did a crash with jenkins, using plug-in warnings with a logfile that is 
> 70 Mo big :
>
> [WARNINGS] Parsing warnings in console log with parser FPGA_Questa_UVM
>
> ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to 
> exception
>
> hudson.util.IOException2 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.util.IOException2>: 
> remote file operation failed: /***/ at 
> hudson.remo...@**:serveur_linux_rdo 
>
>   at hudson.FilePath.act(FilePath.java:861) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act=method>
>
>   at hudson.FilePath.act(FilePath.java:838) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act=method>
>
>   at 
> hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:447)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.warnings.WarningsPublisher.annotate=method>
>
>   at 
> hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:411)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.warnings.WarningsPublisher.parseConsoleLog=method>
>
>   at 
> hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:320) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.warnings.WarningsPublisher.perform=method>
>
>   at 
> hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:333)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.analysis.core.HealthAwareRecorder.perform=method>
>
>   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform=method>
>
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform=method>
>
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps=method>
>
>   at hudson.model.Build$BuildExecution.post2(Build.java:183) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.post2=method>
>
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.post=method>
>
>   at hudson.model.Run.execute(Run.java:1592) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute=method>
>
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run=method>
>
>   at hudson.model.ResourceController.execute(ResourceController.java:88) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute=method>
>
>   at hudson.model.Executor.run(Executor.java:237) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run=method>
>
> Caused by: java.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Remote 
> call on serveur_linux_rdo failed
>
>   at hudson.remoting.Channel.call(Channel.java:681) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.call=method>
>
>   at hudson.FilePath.act(FilePath.java:854) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act=method>
>
>   ... 14 more
>
> Caused by: java.lang.OutOfMemoryError 
> <http://stacktrace.jenkins-ci.org/search?query=java.lang.OutOfMemoryError>: 
> Java heap space
>
>
>
> We tried to re-run our slave with a bigger heap size but it doesn't help. So 
> we wonder if the HEAP error is regarding the master or the slave ? Which one 
> is executing the plug-in warning and do the parsing : master or slave ?
>
>
> because of "Remote call on serveur_linux_rdo failed" we thought that the 
> parsing was done by the slave but as the upgrade of the heap size of  Java 
> Virtual Machine don't change anything and also because I succee

crash plug-in warning - java heap space

2016-01-22 Thread iostrym
Hi,

We did a crash with jenkins, using plug-in warnings with a logfile that is 
70 Mo big :

[WARNINGS] Parsing warnings in console log with parser FPGA_Questa_UVM

ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to 
exception

hudson.util.IOException2 
: 
remote file operation failed: /***/ at 
hudson.remoting.Channel@**:serveur_linux_rdo 


  at hudson.FilePath.act(FilePath.java:861) 


  at hudson.FilePath.act(FilePath.java:838) 


  at 
hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:447) 


  at 
hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:411)
 


  at 
hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:320) 


  at 
hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:333)
 


  at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 


  at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
 


  at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786)
 


  at hudson.model.Build$BuildExecution.post2(Build.java:183) 


  at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733) 


  at hudson.model.Run.execute(Run.java:1592) 


  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 


  at hudson.model.ResourceController.execute(ResourceController.java:88) 


  at hudson.model.Executor.run(Executor.java:237) 


Caused by: java.io.IOException 
: Remote 
call on serveur_linux_rdo failed

  at hudson.remoting.Channel.call(Channel.java:681) 


  at hudson.FilePath.act(FilePath.java:854) 


  ... 14 more

Caused by: java.lang.OutOfMemoryError 
: 
Java heap space



We tried to re-run our slave with a bigger heap size but it doesn't help. So we 
wonder if the HEAP error is regarding the master or the slave ? Which one is 
executing the plug-in warning and do the parsing : master or slave ?


because of "Remote call on serveur_linux_rdo failed" we thought that the 
parsing was done by the slave but as the upgrade of the heap size of  Java 
Virtual Machine don't change anything and also because I succeed to crash the 
master and shutdown all slaves connected to the master by testing it, I gives 
me the feeling that the master may do something with the parsing.


Any idea ?


Best regards,


Armand

-- 
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/8f34dbbe-ec3f-4877-a17d-de3d8b21e9ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to abort a job during it's execution by itself

2018-04-11 Thread iostrym
Is there a possibility to abort a job during it's execution by the job itself.

For instance the job launch a script that do the update from versioning tool 
and if no update are available, then the job is aborted.
This way the job is not stored at all by Jenkins.

Some plugin do already the tool versioning scrutation but we can't use them for 
our specific tool versioning version.

This is why I'm looking for a smart way to abort a build.

-- 
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/a7a42fdc-bc4a-4b9b-bfed-4b81ea0d87f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.