Re: Pipeline groovy script git checkout on master workspace

2017-10-06 Thread Mark Waite
If you're using the github branch source provider, I believe it uses GitHub API calls to avoid checkout on the master. If you're using "vanilla git", then there isn't a way to avoid that checkout, since "vanilla git" does not provide a way to request a single file from a repository. Mark Waite

Re: Is there a way of cloning the repo an additional layer down?

2017-10-06 Thread Mark Waite
On Fri, Oct 6, 2017 at 2:24 PM dandeliondodgeball wrote: > Did this two different ways in the same workspace. > ../workspace/Pipeline01/Artifact/my.zip > ../workspace/Pipeline01/clonedRepo/ > > One for the artifact I needed. > For this I used an attribute in the

Re: Is there a way of cloning the repo an additional layer down?

2017-10-06 Thread dandeliondodgeball
Did this two different ways in the same workspace. ../workspace/Pipeline01/Artifact/my.zip ../workspace/Pipeline01/clonedRepo/ One for the artifact I needed. For this I used an attribute in the CopyArtifact plugin, like this (declarative pipeline): stages { stage('Copy Archive') {

Re: Trying to use CopyArtifact in declarative pipeline

2017-10-06 Thread dandeliondodgeball
Took me a while to find this, so posting it to make it easier to find. CopyArtifact syntax (ok, maybe syntax isn't the correct word for this, but you get the idea) step ([$class: 'CopyArtifact', projectName: "${jobname}", filter: "dist/${platform}/${targets}", selector: [

Re: Using params.item in agent docker section ...

2017-10-06 Thread Michael Pailloncy
Hi, To enable String interpolation, you need to use double quotes instead of simple quotes, otherwise variables are not resolved. Cheers 2017-10-06 7:53 GMT+02:00 Eric Tan : > Hi > > Is there a way to use parameters in the agent docker section like: > > pipeline { > >

Jenkins cli jar gave hava exception error on new LTS version

2017-10-06 Thread cbssslt
Hi, we see Jenkins cli jar gave hava exception error on new LTS version, is that known issue? Thanks C -- 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

Pipeline groovy script git checkout on master workspace

2017-10-06 Thread cbssslt
Hi, currently we see Pipeline groovy script git checkout on master workspace, is there a way to avoid this? Thanks C -- 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

Re: How to read environment variable from a node via jenkins windows batch command

2017-10-06 Thread Robert Hales
It is hard to answer this without more detail on your jobs. i.e. Is this a freestyle job? How and where is the environment variable set? Sounds to me like a scope issue. For example, if you are setting the variable in one shell script, then trying to get to it in another, it isn't going to

Re: Overriding static resources added to index.jelly

2017-10-06 Thread Shaun Thompson
So one solution is to not use layout.jelly and define my own layout html within my index.jelly file. On Friday, October 6, 2017 at 10:16:30 AM UTC-5, Shaun Thompson wrote: > > Is it possible to remove/filter js/css resources that are added to a > index.jelly file? The issue that I'm running

How to read environment variable from a node via jenkins windows batch command

2017-10-06 Thread Victor Martinez
How the agent is connected to the master? -- 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

Build Number seems stuck.

2017-10-06 Thread Ken Corey
Hi All, First off, I hope this is the right place for silly questions from Jenkins newbies. If not, please redirect me. I'm behind a proxy that requires authentication, and I spent a couple days fighting to compile an Android project. I needed gradle to understand how to drill through my

Trying to format build output with multi-line text nicely in outgoing email

2017-10-06 Thread Ken Corey
Hi All, I've got a changelog that's maintained by the devs like this: Build 126 --- 1234 1238 Build 127 --- 1256 1257 1259 ... I've written a perl script that outputs the content of the last block in this file: $ ./chopsection.pl 1256

How to read environment variable from a node via jenkins windows batch command

2017-10-06 Thread gurudatt SA
Hi All, The code which is executing in the workstation is setting an System variable. And i want to read the system variable from jenkins job - Windows batch command during execution. Is there a way to do this ? I have tried the classic way to read the system variable from command line -

Re: ERROR: Processing failed due to a bug in the code.

2017-10-06 Thread Mark Waite
Possibly there are other administrators on that Jenkins instance, and one of them assigned a value to the artifactory server in the general configuration? On Fri, Oct 6, 2017 at 9:43 AM Charles Karney wrote: > Thanks for the information. My problem seems to have cleared up

Re: ERROR: Processing failed due to a bug in the code.

2017-10-06 Thread Charles Karney
Thanks for the information. My problem seems to have cleared up by itself! --Charles On Thursday, October 5, 2017 at 11:05:51 AM UTC-4, Mark Waite wrote: > > That failure message is unrelated to git. > > The message "java.lang.RuntimeException: java.lang.IllegalArgumentException: > No >

Overriding static resources added to index.jelly

2017-10-06 Thread Shaun Thompson
Is it possible to remove/filter js/css resources that are added to a index.jelly file? The issue that I'm running into is I have a plugin using jquery resources and api's that are being effected by other plugins that have included JQuery at a global level. -- You received this message

Add a Managed Script with Groovy

2017-10-06 Thread Kristian
Hi, I want to add a "Managed script" with groovy to my list of managed scripts. But somehow I fail with that. This is my code so far: import org.jenkinsci.plugins.managedscripts.*; instance = Jenkins.getInstance(); newscriptconfig = new ScriptConfig("testid1", "testid1", "comment1",

Re: Pipeline support: Using Vault instead of default credentials mechanism in Jenkins?

2017-10-06 Thread Stephen Connolly
Somebody was working on a CredentialsStore implementation that uses a different backing store... I cannot recall whether that was Kubernates Secrets, Docker Secrets or Hashicorp Vault On 6 October 2017 at 02:12, thomas.lehmann via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hi

Pipeline support: Using Vault instead of default credentials mechanism in Jenkins?

2017-10-06 Thread thomas.lehmann via Jenkins Users
Hi all, the most pipeline DSL commands like *library*, *checkout* and *ssh-agent* seems to use the parameter *credentialsId **only* (it seems so). Could you give me suggestions how to work - at least - with those 3 DSL commands for the case I'm forced to use Vault instead of the credentials

strange new behavior of kubernetes plugin

2017-10-06 Thread rpavelka
Dear Jenkins users, we updated our Jenkins from 1.651.3 to 2.60.3 and our Kubernetes plugin from 0.11 to 1.0. We noticed wiping out home directory content (defined in Dockerfile) of the container slave after spinning it up in the new Jenkins setup. We were able to compare new and old setup

Re: Failed to connect to http://jenkins.build-env.svc.cluster.local:8080/tcpSlaveAgentListener/: jenkins.build-env.svc.cluster.local

2017-10-06 Thread YAN-HONG WANG
Hello Carlos, Thanks for reply again. And I obviously have jenkins service expose in namespace "build-env". $ kubectl --namespace=build-env get *service* NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE *jenkins *NodePort 10.98.101.107

Re: Using JNLP4

2017-10-06 Thread Oleg Nenashev
Better late than never. Swarm plugin has been updated in February. Version 3.3 now supports JNLP4. Not that you need to update not only the plugin, but also the Swarm Client executable. BR, Oleg четверг, 26 января 2017 г., 0:53:17 UTC+1 пользователь tamal написал: > > Hi, > We want to use JNLP4

Re: How alert users of failed tests when running Jenkins locally?

2017-10-06 Thread Anna Freiholtz
Yes you right. We use Skype for Business and maybe I can get Jenkins to send a message. E-mail could work, but many of us choose not read our e-mail too often. Too much incoming... But a blink device would be so much more fun to implement! :-) Anna Den torsdag 5 oktober 2017 kl. 17:09:51

Pipeline: Global Library added to revisions

2017-10-06 Thread Sverre Moe
We have been using Global Pipeline Libraries stored at the jenkins server in workflowLibs directory. Now I have moved this repository to our remote git server and added the library in Jenkins configuration. I have checked "*Load implicitly" and* unchecked "*Include @Library changes in job