Create SSH nodes/agents with credentials for multiple users?

2019-05-02 Thread Lemings, Brad [US] (MS)
Hello all,

Simple question.  It is probably a FAQ.  If so, just point me to the answer.

Is it possible to create Jenkins agents/nodes with an SSH key pair for a real 
user (i.e. not some fake "jenkins" user account) without exposing those 
credentials to other users?

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/e9783dbdfadd448ca16f71a654bd137a%40XCGC3029.northgrum.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using LTS with Docker and install compatible plugins

2019-05-02 Thread 'Sven Hüßner' via Jenkins Users
I realize this is will be a necro, but for the future me coming here again:

You can specify the specific version of the plugin you want to install in a 
plugins.txt file like so:
pam-auth:1.1
matrix-project:1.4.1
script-security:1.13
...

Then copy the file to your container during build time and use it as input 
for install-plugins.sh like so:

COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt

But you will have to resolve yourself which version of which plugin is 
compatible to the version of Jenkins you install. That's still a tedious 
hassle.

Cheers

Am Donnerstag, 8. Juni 2017 18:18:36 UTC+2 schrieb Robert Kleinschmager:
>
> Hi,
>
> when using the official docker image for Jenkins LTS (2.46.3) and also 
> using the build in mechanism, to install plugins (and it's dependencies) 
> via install-plugins.sh
> then some of these plugins won't run with LTS, as they require a newer 
> version of jenkins.
>
> f.e.
>
> Pipeline: Job v2.12 - requires jenkins v2.60 
>
> Is it possible to install not the latest version of a plugin, but instead 
> the latest-compatible version?
>
> cheers
> Robert
>

-- 
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/4f39a7f1-db45-44f0-88c4-26e4986a7693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2019-05-02 Thread 'Sven Hüßner' via Jenkins Users
I realize this is something of a necro, but for future people coming by, 
this will help:

Use Jenkins-CLI to retrieve a list of plugins installed in the instance:

java -jar jenkins-cli.jar -s http://10.10.18.10:9000/ list-plugins

jdk-tool   JDK Tool Plugin  
1.2
build-timeout  Build Timeout
1.19
resource-disposer  Resource Disposer Plugin 
0.12
jsch   JSch dependency plugin   
0.1.55
workflow-scm-step  Pipeline: SCM Step   
2.7
...


You can also get this via

$ JENKINS_HOST=username:passw...@myhost.com:port

$ curl -sSL 
"http://$JENKINS_HOST/pluginManager/api/xml?depth=1=/*/*/shortName|/*/*/version=plugins"
 
| perl -pe 's/.*?([\w-]+).*?([^<]+)()(<\/\w+>)+/\1 
\2\n/g'|sed 's/ /:/'


Example Output:

cucumber-testresult-plugin:0.8.2
pam-auth:1.1
matrix-project:1.4.1
script-security:1.13
...



This is from https://github.com/jenkinsci/docker/blob/master/README.md

Then you can use a file with the format of
:
:
:


And copy it over in your Dockerfile, then use it as input for 
install-plugins.sh

Dockerfile:
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt

It's quite a bit irritating though when you come to updating those plugins 
later on. And I haven't found a solution for it yet.


Am Donnerstag, 13. September 2018 13:42:43 UTC+2 schrieb Thomas Sundberg:
>
> Hi! 
>
> I am creating a Jenkins installation from a Dockerfile. I want to 
> specify all plugins so they are available when the image is built. 
>
> This typically looks like many lines like this: 
>
> RUN /usr/local/bin/install-plugins.sh greenballs 
>
> Is there a way to find the proper name for each plugin? I am currently 
> looking for the proper name for the Docker Pipeline 
> Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin 
>
> Cheers, 
> Thomas 
>
> -- 
> Thomas Sundberg 
> M. Sc. in Computer Science 
>
> Mobile: +46 70 767 33 15 
> Blog: http://www.thinkcode.se/blog 
> Twitter: @thomassundberg 
>
> Better software through faster feedback 
>

-- 
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/da81f9f9-5945-45f1-b77a-ca3a60f21e52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trigger Pull Request even when no changes are on the target branch (bitbucket-branch-source-plugin)

2019-05-02 Thread RicardF
I'm using the bitbucket branch source plugin to trigger builds for all the 
branches and Pull requests.

My problem is that pull requests launch more actions and I always want that 
the PR-XXX job to be always launched even if target and origin branches do 
not have changes since the PR creation (currently it only triggers the PR 
if changes are integrated into origin branch, performing the PR-XXX job 
with the merge).

Is there any way to always execute the PR-XXX job on creation?

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/b12d9f77-fbe2-43d7-9f6c-694f5e5dcfb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread Slide
You are correct.

On Thu, May 2, 2019 at 6:11 AM b o b i  wrote:

> On Thursday, May 2, 2019 at 2:35:58 PM UTC+2, b o b i wrote:
>>
>> Could you explain me why "\$" worked, i.e. where it is documented? (I
>> lost pretty much time with such "nonsense"). (a bash variable should be
>> expanded inside a bash script as $var or "${var}" etc., i.e. why in a bash,
>> the vars are not bashingly treated?)
>>
>
> The answer is probably the following:
>
> Triple-double-quoted strings behave like double-quoted strings, with the
>> addition that they are multiline
>>
>> Double-quoted strings are plain java.lang.String if there’s no
>> interpolated expression, but are groovy.lang.GString instances if
>> interpolation is present.. If the GString is ever passed to a method taking
>> a String, the expression value inside the placeholder is evaluated to its
>> string representation (by calling toString() on that expression) and the
>> resulting String is passed to the method... If you need to escape the $
>> or ${} placeholders in a GString so they appear as is without
>> interpolation, you just need to use a \ backslash character to escape
>> the dollar sign:
>>
>
>> Because the template string itself will be parsed by Groovy before it is
>> passed to the templating framework
>>
> --
> 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/246dda31-10a1-4a58-b31f-97f43a0f319f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfo6%3DSRfs7d_9WWRmuH96vFLwUDhdqhQ%2BhkBopgQuvuBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread Mark Waite


On Thursday, May 2, 2019 at 6:35:58 AM UTC-6, b o b i wrote:
>
> Thank you, that work.
>
> Could you explain me why "\$" worked, i.e. where it is documented? (I lost 
> pretty much time with such "nonsense"). (a bash variable should be expanded 
> inside a bash script as $var or "${var}" etc., i.e. why in a bash, the vars 
> are not bashingly treated?)
>
>
The pipeline domain specific language is based on groovy.  Groovy does not 
expand variable references in strings surrounded by single quote characters 
(ASCII 0x27).  Groovy expands variable references in strings surrounded by 
double quote characters (ASCII 0x22).  A groovy variable reference in a 
string can have the same syntax as a bash variable reference.

Thus, your text:

sh """
  echo ${mytime}
"""

attempts to resolve the groovy variable 'mytime'.

If you had used:
sh '''
  echo ${mytime}
'''

it would attempt to resolve the shell variable 'mytime'.

See http://groovy-lang.org/syntax.html#_single_quoted_string and 
http://groovy-lang.org/syntax.html#_double_quoted_string for more details.

Mark Waite

 

> On Thursday, May 2, 2019 at 2:27:40 PM UTC+2, Daniel Butler wrote:
>>
>> Replace ${mytime} with \$mytime
>>
>> The mytime variable you've created is a bash one.
>>
>> Regards 
>> Daniel 
>>
>>
>> On Thu, 2 May 2019, 1:16 pm b o b i,  wrote:
>>
>>> Jenkins 2.174, in a scripted pipeline the following
>>>
>>> sh """#!/bin/bash
>>>echo "TTT"
>>>mytime="`date '+%Y_%m_%d__%H_%M_%S'`"
>>>echo ${mytime}
>>> """
>>>
>>> produces
>>>
>>> groovy.lang.MissingPropertyException: No such property: mytime for class: 
>>> groovy.lang.Binding
>>> at groovy.lang.Binding.getVariable(Binding.java:63)
>>> at 
>>> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:270)
>>> at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)
>>> at 
>>> org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:293)
>>> ...
>>>
>>> How can I have current time expanded as a string without the above error?
>>>
>>> -- 
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/3b826017-27f1-45c9-925c-f396b13bcea9%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/34eb7130-cee0-4cab-be7e-dfffcd1fd572%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread b o b i
On Thursday, May 2, 2019 at 2:35:58 PM UTC+2, b o b i wrote:
>
> Could you explain me why "\$" worked, i.e. where it is documented? (I lost 
> pretty much time with such "nonsense"). (a bash variable should be expanded 
> inside a bash script as $var or "${var}" etc., i.e. why in a bash, the vars 
> are not bashingly treated?)
>

The answer is probably the following:

Triple-double-quoted strings behave like double-quoted strings, with the 
> addition that they are multiline
>
> Double-quoted strings are plain java.lang.String if there’s no 
> interpolated expression, but are groovy.lang.GString instances if 
> interpolation is present.. If the GString is ever passed to a method taking 
> a String, the expression value inside the placeholder is evaluated to its 
> string representation (by calling toString() on that expression) and the 
> resulting String is passed to the method... If you need to escape the $ 
> or ${} placeholders in a GString so they appear as is without 
> interpolation, you just need to use a \ backslash character to escape the 
> dollar sign: 
>

> Because the template string itself will be parsed by Groovy before it is 
> passed to the templating framework 
>

-- 
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/246dda31-10a1-4a58-b31f-97f43a0f319f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline declarative - multiline bat does not resolve the env.variables

2019-05-02 Thread Slide
You need to use triple double quotes for string interpolation to work:

bat """

"""

On Thu, May 2, 2019 at 5:59 AM zakyn  wrote:

> Hello,
>
> I have this code and the env.variables are not resolved :(  I do not see
> the reason.
>
> Thank you for your help.
>
> Vladimir
>
> Code:
>
> stage('My stage'){
> steps{
> bat '''
> cd folder\\folder1
>
> ..\\..\\..\\folder1\\folder1\\folder1\\python.exe
> ..\\..\\folder1\\folder1\\action.py ..\\..\\ ..\\..\\_build
> ${env.JOB_NAME}#${env.BUILD_NUMBER} param param
> '''
> }
> }
>
>
> --
> 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/fe42b096-fa21-4882-8d20-f8a8c14a77c0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfxnr8Rh_7HtPyVmHWfM%3DSS-Fnt-e025fncnmewCrwY1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline declarative - multiline bat does not resolve the env.variables

2019-05-02 Thread zakyn
Hello,

I have this code and the env.variables are not resolved :(  I do not see 
the reason.

Thank you for your help.

Vladimir

Code:

stage('My stage'){
steps{
bat '''
cd folder\\folder1

..\\..\\..\\folder1\\folder1\\folder1\\python.exe 
..\\..\\folder1\\folder1\\action.py ..\\..\\ ..\\..\\_build 
${env.JOB_NAME}#${env.BUILD_NUMBER} param param
'''
}
}


-- 
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/fe42b096-fa21-4882-8d20-f8a8c14a77c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread b o b i
Thank you, that work.

Could you explain me why "\$" worked, i.e. where it is documented? (I lost 
pretty much time with such "nonsense"). (a bash variable should be expanded 
inside a bash script as $var or "${var}" etc., i.e. why in a bash, the vars 
are not bashingly treated?)

On Thursday, May 2, 2019 at 2:27:40 PM UTC+2, Daniel Butler wrote:
>
> Replace ${mytime} with \$mytime
>
> The mytime variable you've created is a bash one.
>
> Regards 
> Daniel 
>
>
> On Thu, 2 May 2019, 1:16 pm b o b i, > 
> wrote:
>
>> Jenkins 2.174, in a scripted pipeline the following
>>
>> sh """#!/bin/bash
>>echo "TTT"
>>mytime="`date '+%Y_%m_%d__%H_%M_%S'`"
>>echo ${mytime}
>> """
>>
>> produces
>>
>> groovy.lang.MissingPropertyException: No such property: mytime for class: 
>> groovy.lang.Binding
>>  at groovy.lang.Binding.getVariable(Binding.java:63)
>>  at 
>> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:270)
>>  at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)
>>  at 
>> org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:293)
>> ...
>>
>> How can I have current time expanded as a string without the above error?
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/3b826017-27f1-45c9-925c-f396b13bcea9%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/1c513de0-9269-44a3-8197-1a78d6eccf95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread Daniel Butler
Replace ${mytime} with \$mytime

The mytime variable you've created is a bash one.

Regards
Daniel


On Thu, 2 May 2019, 1:16 pm b o b i,  wrote:

> Jenkins 2.174, in a scripted pipeline the following
>
> sh """#!/bin/bash
>echo "TTT"
>mytime="`date '+%Y_%m_%d__%H_%M_%S'`"
>echo ${mytime}
> """
>
> produces
>
> groovy.lang.MissingPropertyException: No such property: mytime for class: 
> groovy.lang.Binding
>   at groovy.lang.Binding.getVariable(Binding.java:63)
>   at 
> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:270)
>   at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)
>   at 
> org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:293)
> ...
>
> How can I have current time expanded as a string without the above error?
>
> --
> 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/3b826017-27f1-45c9-925c-f396b13bcea9%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/CAO37hbgohHtkAeVoY-7BWJAkyiwqdqiUYmK65na%2B07s3wwoRHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread b o b i
Jenkins 2.174, in a scripted pipeline the following

sh """#!/bin/bash
   echo "TTT"
   mytime="`date '+%Y_%m_%d__%H_%M_%S'`"
   echo ${mytime}
"""

produces

groovy.lang.MissingPropertyException: No such property: mytime for class: 
groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:270)
at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)
at 
org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:293)
...

How can I have current time expanded as a string without the above error?

-- 
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/3b826017-27f1-45c9-925c-f396b13bcea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Programmatically create Jenkins dashboard view

2019-05-02 Thread Faad Sayaou
Hi, thanks for your reply. your reply was indeed helpful. Is it also
possible to do this via the groovy script? I saw an example in creating a
listview but couldn't find any example about dashboard view. My idea was to
have one script to run through the jenkins script console and
everything is created.
Thanks

On Tue, 30 Apr 2019 at 14:20, Nick Stolwijk  wrote:

> You can create views with the JobDSL [1].
>
> [1]
> https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.views.NestedView.views
>
> Hth,
>
> Nick Stolwijk
>
> ~~~ Try to leave this world a little better than you found it and, when
> your turn comes to die, you can die happy in feeling that at any rate you
> have not wasted your time but have done your best ~~~
>
> Lord Baden-Powell
>
>
> On Tue, Apr 30, 2019 at 8:20 AM Faad Sayaou  wrote:
>
>> Hi everyone,
>> I have several dashboard views and I would like to know if there is a
>> possibility of creating these views using groovy script?
>>
>> 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/908e3da1-b3da-4683-b620-732f363fd609%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/CAA9S6i6nMH6unEBWdYCE%2B3ddcSUwqm_hY9hWAC8NjuEGovsZ6g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

*Best Regards / Mit freundlichen Grüßen,*

*Faad Sayaou,*

*Embedded Systems for Mechatronics Masters student | FH Dortmund | Germany*

*Fachhochschule Dortmund*

*University of Applied Sciences and Arts*

*Email*: f aad...@gmail.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/CAL2KjjTJRzZUf%3Dmw7P%3DYACUsFbT-LUnRzg-m2NotwnZoOsEbSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Anonymous access to plugin resources (SimplePageDecorator)

2019-05-02 Thread Kamil Dzierżanowski
Hi!

I've been experimenting with a recent extension point, the 
SimplePageDecorator. I'd like to have an image stored within the plugin, 
which would be loaded and displayed on the login page. However, right now 
any attempt to retrieve such resource results in a redirect to the login 
page, meaning it's not being loaded. For now, I've retreated to loading the 
image from external source. Is it possible to enable anonymous access to 
webapp resources?

Thanks,
Kamil

-- 
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/32d0ecda-6bcc-4f7d-9d56-aa387c4b6bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Workspace clean-up killed jobs

2019-05-02 Thread David Aldrich
This issue is related: https://issues.jenkins-ci.org/browse/JENKINS-27329

Regards

David

On Thursday, May 2, 2019 at 9:11:53 AM UTC+1, Sarfroz Basha wrote:
>
> Hi,
>
> I am also facing same error. Have you found anything regarding this error. 
> Please share the solution.
>
> Regards,
> Sarfroz
>
> On Monday, November 27, 2017 at 2:16:04 PM UTC+5:30, David Aldrich wrote:
>
>> Hi
>>
>>  
>>
>> Two of our declarative script jobs have failed for similar reasons.  The 
>> jobs normally run with no problem.  We are running Jenkins 2.91.
>>
>>  
>>
>> The jobs take several hours to complete.  Each one failed part way 
>> through and gave the following message in its console log:
>>
>>  
>>
>> ERROR: missing workspace /data/hudsonuser/workspace/_trunk on 
>> 
>>
>>  
>>
>> The Jenkins system log shows this message that is coincident with the 
>> failure:
>>
>>  
>>
>> Nov 26, 2017 9:04:34 PM INFO hudson.model.AsyncPeriodicWork$1 run
>>
>> Started Workspace clean-up
>>
>> Nov 26, 2017 9:04:50 PM WARNING jenkins.branch.WorkspaceLocatorImpl locate
>>
>> JENKINS-34564 path sanitization ineffective when using legacy Workspace Root 
>> Directory ‘${ITEM_ROOTDIR}/workspace’; switch to 
>> ${JENKINS_HOME}/workspace/${ITEM_FULLNAME} as in JENKINS-8446 / JENKINS-21942
>>
>>  
>>
>> What is going on here and how should I fix it?
>>
>>  
>>
>> Best regards
>>
>>  
>>
>> David
>>
>>  
>>
>

-- 
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/f76b2a6a-0eff-4d0a-ad60-d8063f91a022%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Workspace clean-up killed jobs

2019-05-02 Thread Sarfroz Basha
Hi,

I am also facing same error. Have you found anything regarding this error. 
Please share the solution.

Regards,
Sarfroz

On Monday, November 27, 2017 at 2:16:04 PM UTC+5:30, David Aldrich wrote:

> Hi
>
>  
>
> Two of our declarative script jobs have failed for similar reasons.  The 
> jobs normally run with no problem.  We are running Jenkins 2.91.
>
>  
>
> The jobs take several hours to complete.  Each one failed part way through 
> and gave the following message in its console log:
>
>  
>
> ERROR: missing workspace /data/hudsonuser/workspace/_trunk on 
> 
>
>  
>
> The Jenkins system log shows this message that is coincident with the 
> failure:
>
>  
>
> Nov 26, 2017 9:04:34 PM INFO hudson.model.AsyncPeriodicWork$1 run
>
> Started Workspace clean-up
>
> Nov 26, 2017 9:04:50 PM WARNING jenkins.branch.WorkspaceLocatorImpl locate
>
> JENKINS-34564 path sanitization ineffective when using legacy Workspace Root 
> Directory ‘${ITEM_ROOTDIR}/workspace’; switch to 
> ${JENKINS_HOME}/workspace/${ITEM_FULLNAME} as in JENKINS-8446 / JENKINS-21942
>
>  
>
> What is going on here and how should I fix it?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>

-- 
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/5f79a2af-b066-49c5-8e24-39a2eb500a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch Pipeline Not Honoring Git Timeout During Branch Indexing

2019-05-02 Thread Sarfroz Basha
Hi,

I am also facing same error. Have you found anything related to above 
error. Can you please revert this with solution.

Regards,
Sarfroz


On Friday, October 14, 2016 at 7:07:12 PM UTC+5:30, David Johnson wrote:

> Hey all,
>
> I am trying to set up a multibranch pipeline job against a fairly large 
> repo. I have set both the fetch and checkout timeouts to 180 minutes under 
> the Advanced Clone Behaviors and Advanced Checkout Behaviors, to no avail. 
> Whenever the branch indexing job begins it reports that my timeouts are set 
> to 10 minutes and sure enough, after 10 minutes the job fails as follows.
>
> I am curious if there is some other configuration that I need to do in 
> order to get this to work properly? Whenever I try this on a smaller repo 
> with fewer branches I am able to see the branch indexing go through 
> successfully.
>
>  > git rev-parse --is-inside-work-tree # timeout=10
> Setting origin to 
>  > git config remote.origin.url  # timeout=10
> Fetching & pruning origin...
> Fetching upstream changes from origin
>  > git --version # timeout=10
> using GIT_SSH to set credentials 
>  > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* 
> --prune
> ERROR: Timeout after 10 minutes
> FATAL: Failed to recompute children of Multibranch_Pipeline
> hudson.plugins.git.GitException: Command "git fetch --tags --progress origin 
> +refs/heads/*:refs/remotes/origin/* --prune" returned status code 143:
>
> fatal: The remote end hung up unexpectedly
> fatal: early EOF
>
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
> at 
> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:233)
> at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148)
> at 
> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
> at 
> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
> at 
> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
> at hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:404)
> Finished: FAILURE
>
>

-- 
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/37f73e70-1619-470e-aac8-7beca92469ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH vs java web start for windows slave and Linux master in jenkins

2019-05-02 Thread rausalinas
ssh lets you only use resources while you need that node.  (unless you 
chose "Use this node as much as possible")

If I remember correctly, an agent can use around 80 MB of RAM. If your 
machine is quite resource-constrained, such as a Raspberry Pi that you use 
only sometimes for building for that platform, you may well want to save 
resources in case you use that machine for other purposes.

-- 
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/0c941b23-b884-4a72-9900-b4cb4ffb2116%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.