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

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

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

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

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

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

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

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

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

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.,

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

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: > >

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

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

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

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

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

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,