Re: Where do Script Console actions get logged?

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 19:36, Adam Ochonicki wrote: > > Groovy script console is an attack vector with no logging Don't grant anonymous users (or anyone who you don't trust fully) administer permission on Jenkins. > How do I log this with the core Jenkins team to address?

Re: Email only after all retries fail

2017-01-26 Thread ram g
Hi Michal, I have used below script, but Still email gets triggered for all builds- def retryCount = build.envVars['NAGINATOR_COUNT'] ?: 0; def retryMaxCount = build.envVars['NAGINATOR_MAXCOUNT'] ?: 3; retryCount == retryMaxCount On Wednesday, June 15, 2016 at 6:13:17 PM UTC-4, Michal Kubenka

Re: Japan mirrors unstable

2017-01-26 Thread R. Tyler Croy
(replies inline) On Thu, 26 Jan 2017, Noam Tamim wrote: > I run my Jenkins server in Israel, and when accessing > http://mirrors.jenkins-ci.org, I get redirected to mirrors in Japan. > However - with those servers, downloads never finish. More often than not, > I get "Connection reset by peer"

Re: Does kubernetes plugin allow modifying POD resource limits?

2017-01-26 Thread J
A simple 'jnlp' wasn't working. The PODs go into error and terminate immediately so I couldn't look at any further logs there. Connection using jnlp-agent also just terminates immediately after connecting; so not sure what the actual problem is. On Thursday, 26 January 2017 12:40:57 UTC-8,

Re: Does kubernetes plugin allow modifying POD resource limits?

2017-01-26 Thread Carlos Sanchez
On Thu, Jan 26, 2017 at 9:04 PM, J wrote: > That worked with actually setting the name to 'jnlp-slave'; in a resource > unlimited namespace. Thanks > if you don't set the name to jnlp you'll get 2 containers in your pod > > Will get back to you as soon as I find the api

What is the proper name for "ghost" jobs and how are they controlled?

2017-01-26 Thread John Bobinyec
We have a pool of slaves. When a job is dispatched to one of them it is assigned to an executor on that machine. Oftentimes there is a very similar job running on another machine but it's not assigned to an executor. I call these ghosts. What do they do? How are they dispatched? It

Re: Does kubernetes plugin allow modifying POD resource limits?

2017-01-26 Thread J
That worked with actually setting the name to 'jnlp-slave'; in a resource unlimited namespace. Thanks Will get back to you as soon as I find the api handles for POD resource limits, as I'd really like to be able to use my existing cluster namespace. On Thursday, 26 January 2017 11:08:20

Re: FileNameFinder().getFileNames fails on one Jenkins node

2017-01-26 Thread Raja Chinnam
Thank you Daniel. On Thursday, January 26, 2017 at 4:09:57 AM UTC-8, Daniel Beck wrote: > > > > On 26.01.2017, at 13:09, Daniel Beck > wrote: > > > > 1: > https://wiki.jenkins-ci.org/display/JENKINS/Making+your+plugin+behave+in+secured+Jenkins > > > Wrong link -- the

Re: Old versions of plugins

2017-01-26 Thread Lokesh Jangir
What about if a plugin has dependencies ? It will throw error if plugin doesn't find dependency installed and it doesn't install dependencies when we install plugin by uploading a .hpi file. On Monday, January 16, 2012 at 9:32:45 PM UTC+5:30, slide wrote: > > Are older versions of plugins

Re: Does kubernetes plugin allow modifying POD resource limits?

2017-01-26 Thread Carlos Sanchez
You can check in k8s why the container exited. You need to make sure args is '${computer.jnlpmac} ${computer.name}' On Thu, Jan 26, 2017 at 8:04 PM, J wrote: > > You're right, the api only seems to define container limits. While I still > look for how the api infers these;

Re: Does kubernetes plugin allow modifying POD resource limits?

2017-01-26 Thread J
You're right, the api only seems to define container limits. While I still look for how the api infers these; I can usually define them in a yaml like this with a "type: Pod" label, and it puts limits on

Re: Where do Script Console actions get logged?

2017-01-26 Thread Adam Ochonicki
Audit trail plugin doesn't seem to log these either. Groovy script console is an attack vector with no logging. How do I log this with the core Jenkins team to address? On Thu, Jan 26, 2017 at 9:39 AM, Daniel Beck wrote: > > > On 26.01.2017, at 15:34, Adam Ochonicki

Re: Pipeline - stage, node

2017-01-26 Thread jerome
I'm not sure they actually do this much, but you could totally put a stage around your parallel. If we take a look at the diagram on https://jenkins.io/doc/book/pipeline/ stage{ parallel(['toto': node(){ ... }]) } seem like a valid way. I for one have a node that contain multiple stage and

Re: Pipeline - stage, node

2017-01-26 Thread Sharan Basappa
I would just like to point out a note from pipeline paper I am reading. It is as follows, Stages are usually the top most element of Pipeline syntax. Stages allow you to group your build step into its component parts. By default, multiple builds of the same pipeline can run concurrently. The

Re: LogParserPublisher rules on slave

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 16:11, Jérôme Godbout wrote: > > what's the difference between the projectRulePath and parsingRulesPath > exactly? I though the project was the one set into the master config, but I > may totally be wrong about this. The API is confusing. To be honest,

Re: LogParserPublisher rules on slave

2017-01-26 Thread Jérôme Godbout
what's the difference between the projectRulePath and parsingRulesPath exactly? I though the project was the one set into the master config, but I may totally be wrong about this. The API is confusing. Would also be nice to call this per stage console output, so I don't parse the huge build /

Re: How to load variables from file into windows environment variables in Jenkins pipeline?

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 15:49, Mark Allison wrote: > > Thanks, simply using double quotes instead of single works fine. Unexpected. Looks like I learned something new today. Thanks! -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: LogParserPublisher rules on slave

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 15:50, jer...@bodycad.com wrote: > > It would probably work if step() is executed on the slave through. Not necessary, but you're telling it to run on the master. From reading the code, something like the following should do: …, useProjectRule: true, projectRulePath:

Re: Pipeline - stage, node

2017-01-26 Thread jerome
I may not have all answer here, but here a start. stage serve no purpose except giving visual queue and split console data into the view as far as I know. It also split the time used to complete. For the node, they are sequential unless you use the parallel instruction. So you probably need to

Re: Pipeline - stage, node

2017-01-26 Thread Daniel Beck
> On 21.01.2017, at 19:24, Sharan Basappa wrote: > > I am stuck with conceptual understanding of pipeline. Have you read https://jenkins.io/doc/book/pipeline/ ? Most of what you're asking is being answered there. -- You received this message because you are

Re: Is it possible to echo the ${JOB_NAME} excluding the folder/

2017-01-26 Thread Mark Allison
I worked this out with def jobBaseName = "${env.JOB_NAME}".split('/').last() echo "Job Name (excl. path): ${jobBaseName}" Thanks Dirk for the code snippet that helped speed up the solution! On Wednesday, 25 January 2017 10:38:32 UTC, Mark Allison wrote: > > I want to use the ${JOB_NAME}

Re: Slave hang

2017-01-26 Thread jerome
It hang again today, seem like the MSBuild Warning plugin is the pipeline step that hang under Windows 10 if the user is in lock (not log off) state. When user that run the slave client is active on the machine it work fine. step([$class: 'WarningsPublisher', canRunOnFailed: true,

Re: Pipeline - stage, node

2017-01-26 Thread Sharan Basappa
can anyone be kind enough to respond to the query below of mine? It would help me a lot On Saturday, 21 January 2017 23:54:15 UTC+5:30, Sharan Basappa wrote: > Hello, > > I am trying to adapt pipeline as a part of my project. I am starting with > a simple example, though, to get my

Re: Pipeline: wildcard for branch name

2017-01-26 Thread Indra Gunawan (ingunawa)
HI Sharan, I sent this already: You can’t use the simple git pipeline command if you want to be fancy You should use the form where you can specify more options like configuring Git SCM: checkout scm: [$class: 'GitSCM', branches: [[name: '*/test*']], userRemoteConfigs: [[url:

Re: LogParserPublisher rules on slave

2017-01-26 Thread jerome
Yeah, seem about right, this what I end up doing: def all_rules_file = 'rules.txt' dir(pwd([tmp: true])) { writeFile([file: all_rules_file, text: all_rules_str]); stash includes: all_rules_file, name: 'LogParsingRules' } node('master') { unstash 'LogParsingRules' step([$class:

Re: How to load variables from file into windows environment variables in Jenkins pipeline?

2017-01-26 Thread Mark Allison
Thanks, simply using double quotes instead of single works fine. bat "echo MYKEY is %MYKEY%" On Thu, 26 Jan 2017 at 14:25 Daniel Beck wrote: > > > On 26.01.2017, at 12:57, Mark Allison wrote: > > > > How can I load variables from a file in a Windows

Re: Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script

2017-01-26 Thread Makarand Jadhav
Victor, Thanks for your response. I believe that was my mistake on copy-paste. I do use the DSL playground you mentioned. I have manually configured the plugin and checked the config.xml for the job and it generates same XML as generated from my Groovy DSL script(as below), except that it does

Re: Where do Script Console actions get logged?

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 15:34, Adam Ochonicki wrote: > > Where do Script Console actions get logged? They aren't. Maybe plugins such as Audit Trail Plugin let you add something here. -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: LogParserPublisher rules on slave

2017-01-26 Thread Daniel Beck
> On 24.01.2017, at 22:11, jer...@bodycad.com wrote: > > I was wondering, if I invoke the step LogParserPublisher command, does it get > run on the master even if declared inside the slave node? do I have to > stash/copy the rules files back to the master? then do a new node('master') > at

Where do Script Console actions get logged?

2017-01-26 Thread Adam Ochonicki
I've been unable to find where Groovy script run from the Script Console (/script) get logged. I've looked in all the obvious (and some non-obvious) places but cannot find anything. Where do Script Console actions get logged? -- You received this message because you are subscribed to the

Re: How to load variables from file into windows environment variables in Jenkins pipeline?

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 12:57, Mark Allison wrote: > > How can I load variables from a file in a Windows job and have them loaded > into the environment at run time? These are just Groovy variables. You didn't specify for them to be passed to launched processes'

Re: Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script

2017-01-26 Thread Victor Martinez
Have you tried to use http://job-dsl.herokuapp.com/ ? I tried your snippet and it seems it got some missing brackets. In any case, can you edit those steps with the UI and see the config.xml of the job to compare with? Cheers On Thursday, 26 January 2017 13:39:13 UTC, Makarand Jadhav wrote:

Re: sh pipeline step started to fail after update to 2.42

2017-01-26 Thread Rinaldo DiGiorgio
Yes that is what the issue is -- thank you. I have provided some information about downgrading -- however I have not run a full system test that will prove that it works on OSX, Linux, Sparc and windows -- If It does I will reply back. On Thursday, January 26, 2017 at 8:57:25 AM UTC-5, Daniel

Re: sh pipeline step started to fail after update to 2.42

2017-01-26 Thread Rinaldo DiGiorgio
I downgraded the following plugins, jenkins claimed that i did not need to restart so I didn't and tested each individually, the code below still failed. So I rebooted at the end and it worked so another bug. I am not sure if one or more than one need to be downgraded. Some of the downgrades

Re: sh pipeline step started to fail after update to 2.42

2017-01-26 Thread Daniel Beck
> On 25.01.2017, at 23:30, Rinaldo DiGiorgio wrote: > > nohup: failed to run command ‘sh’: No such file or directory Could this be https://issues.jenkins-ci.org/browse/JENKINS-41339 ? -- You received this message because you are subscribed to the Google Groups

Re: Pipeline: wildcard for branch name

2017-01-26 Thread Mark Waite
You may find it easier to start with a freestyle job so that you can work through the steps with a little more help from the Jenkins web interface. A freestyle job will let you define the branch with a wild card and will let you see your build results, see the summary of test results, etc. That

Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script

2017-01-26 Thread Makarand Jadhav
I am using the below groovy DSL script for populating the "publish_*over*_cifs"(v0.3) in the Build step for sending files to Windows Share from a Linux jenkins(v1.640) server from a seed job. The code seems to generate the "Publish Over CIFS" plugin in the job but the values(highlighted in Red

Re: sh pipeline step started to fail after update to 2.42

2017-01-26 Thread Rinaldo DiGiorgio
The lack of exception information or any textual indication as to the component that failed is another issue. How is one supposed to figure out what to downgrade. Here we are two days into it and we still can’t fix it without extensive trial and error. Where is the sh step defined. Having an

Re: FileNameFinder().getFileNames fails on one Jenkins node

2017-01-26 Thread Daniel Beck
> On 26.01.2017, at 13:09, Daniel Beck wrote: > > 1: > https://wiki.jenkins-ci.org/display/JENKINS/Making+your+plugin+behave+in+secured+Jenkins Wrong link -- the correct wiki page with (very advanced) information on how remoting works (that's probably not relevant to users

Re: FileNameFinder().getFileNames fails on one Jenkins node

2017-01-26 Thread Daniel Beck
> On 24.01.2017, at 20:41, Raja Chinnam wrote: > > Getting a list of files from jenkins workspace using groovy fails on one node > but it works on another. How can I investigate it? There was a similar error > when I tried "new File(pd).eachFile" method but

Re: Pipeline: wildcard for branch name

2017-01-26 Thread Sharan Basappa
Hi David, I am new to continuous integration and Jenkins, so I need inputs to go in the right direction. My requirement is that users push branches with name test_id1/test_id2 etc. I would like to build only when users have created branches with the above name. So, after seeing the responses,

How to load variables from file into windows environment variables in Jenkins pipeline?

2017-01-26 Thread Mark Allison
I have the following Jenkinsfile node { stage 'checkout' deleteDir() checkout scm load 'LoadTheseVariables.txt' echo "MYKEY: ${MYKEY}" echo "REPO: ${REPO}" bat 'echo MYKEY is %MYKEY%' bat 'echo REPO is %REPO%' } The file

Re: Showing trend results for multiple projects on one view

2017-01-26 Thread Victor Martinez
Hi Ian, In my case I created my own HTML with those specific job trends images url: - *YOUR_JENKINS_URL*/job/*YOUR_JOB*/*test/trend* I do also use a similar approach with the Plot plugin and the Build trends: - *YOUR_JENKINS_URL*/job/*YOUR_JOB*/*plot/getPlot*?index=0 -

Re: sh pipeline step started to fail after update to 2.42

2017-01-26 Thread Rainer Frey
Am Mittwoch, 25. Januar 2017 23:30:07 UTC+1 schrieb Rinaldo DiGiorgio: > > The following code was working with 2.41 ( maybe it was 2.40 ) > > node("master") { >sh 'ls' > } > > > I get the following error > > Running on master in /scratch/mach5-j/jenkins/jobs/sh > issue/workspace[Pipeline]

Re: Does kubernetes plugin allow modifying POD resource limits?

2017-01-26 Thread Carlos Sanchez
On Thursday, January 26, 2017 at 1:54:47 AM UTC+1, J wrote: > > I'm trying to schedule jenkins-slave PODs on a locally running cluster of > mine which already has resource limits for cpu/memory for PODs & Containers. > Firstly where can we specify resource limits for PODs (UI or anywhere)? >