Re: Issue with Publish over SSH plugins jenkins plugins

2014-07-03 Thread Swarup Rakshit
Thank You Richand. It's working now. On Thursday, July 3, 2014 7:38:00 PM UTC-7, Swarup Rakshit wrote: > > Hi All, > > I am working on project where I am using jenkins to transfer files to 5 > different server. Hence I decided that to use publish over SSH plugin as > build step. So I choosen t

Re: Issue with Publish over SSH plugins jenkins plugins

2014-07-03 Thread Richard Bywater
The source files is (IIRC) relative to the workspace. So I think you should be using either Models.txt or PMML_MappingFiles/Models.txt depending on which one you are after. Richard. On Fri, Jul 4, 2014 at 2:37 PM, Swarup Rakshit wrote: > Hi All, > > I am working on project where I am using jen

Issue with Publish over SSH plugins jenkins plugins

2014-07-03 Thread Swarup Rakshit
Hi All, I am working on project where I am using jenkins to transfer files to 5 different server. Hence I decided that to use publish over SSH plugin as build step. So I choosen to create build job with *Build a free-style software project. I added build step *to transfer file over SSH. I did

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread Slide
Yes, the service will be running as the local service account which usually has access to nothing. You can edit the service configuration to login as a user that has the access to the UNC path. On Thu, Jul 3, 2014 at 12:32 PM, wrote: > I am running the job as a user who has access. is that dif

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread funeeldy11
YES! that was it. Jenkins was running as a system user. Thank you! On Thursday, July 3, 2014 12:23:38 PM UTC-4, slide wrote: > > Or, if you don't mind the security implications, you could run Jenkins as > a user that has access... > > > On Thu, Jul 3, 2014 at 8:21 AM, Les Mikesell > wrote: >

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread Les Mikesell
On Thu, Jul 3, 2014 at 2:32 PM, wrote: > I am running the job as a user who has access. is that different than the > user running jenkins? Yes, the user running jenkins will depend on how the slave agent was started. Or the master if you aren't using slaves. -- Les Mikesell lesmikes.

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread funeeldy11
I am running the job as a user who has access. is that different than the user running jenkins? On Thursday, July 3, 2014 12:23:38 PM UTC-4, slide wrote: > > Or, if you don't mind the security implications, you could run Jenkins as > a user that has access... > > > On Thu, Jul 3, 2014 at 8:21 A

Re: audit-trail - don;t log build cause?

2014-07-03 Thread Daniel Beck
There is no way to disable this. I'd just rip out the AuditTrailRunListener.java class, then nobody should call AuditTrailPlugin.onStarted(Run). On 03.07.2014, at 17:44, James Nord (jnord) wrote: > Hi all, > > I'm experimenting with the audit trail plugin but for the life of me I can't > wo

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread Sam K
Oh, I have come across this error in my previous job. Unfortunately, I cannot test it now. But instead of %BuildResultsDir%, try $BuildResultsDir$ and see if it helps. On Thursday, July 3, 2014 7:31:12 AM UTC-7, funee...@gmail.com wrote: > > >We run our build.bat on a windows box. We ar

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread Slide
Or, if you don't mind the security implications, you could run Jenkins as a user that has access... On Thu, Jul 3, 2014 at 8:21 AM, Les Mikesell wrote: > On Thu, Jul 3, 2014 at 9:31 AM, wrote: > > > > > > We run our build.bat on a windows box. We are moving this into jenkins. > One of the comm

Starting job via REST api gives me "Started by remote host" and not user name

2014-07-03 Thread Morne Joubert
I am using a HttpRequest to trigger a "Job Generator" https://wiki.jenkins-ci.org/display/JENKINS/Job+Generator+Plugin I was expecting user details to be displayed in the triggered by but i only get "Started by remote host x.x.x.x" This then triggers futher jobs, marked as triggered by SYSTEM.

audit-trail - don;t log build cause?

2014-07-03 Thread James Nord (jnord)
Hi all, I'm experimenting with the audit trail plugin but for the life of me I can't work out how to not get it to spam the logs with build started events. The config (XML) is as follows .*/(?:configSubmit|doDelete|cancelQueue

Re: Problem running batch script from Jenkins - help please!

2014-07-03 Thread Les Mikesell
On Thu, Jul 3, 2014 at 9:31 AM, wrote: > > > We run our build.bat on a windows box. We are moving this into jenkins. One > of the command line args is a UNC pathname. The batch script works fine on > the windows machine in a cmd window. When I execute the same command in > jenkins batch script,

jmeter-maven-plugin jenkins question

2014-07-03 Thread Arsen Hakobyan
Hi all, can you help me to figure out one thing. i have setted up in jenkins jmeter-maven-plugin . I have 2 different jmx scripts and 2 jobs for those scripts. and I have one pom.xml. How can I confugure my jenkins/pom.xml to be possible using the same pom.xml run 2 different jmx scripts with

Problem running batch script from Jenkins - help please!

2014-07-03 Thread funeeldy11
We run our build.bat on a windows box. We are moving this into jenkins. One of the command line args is a UNC pathname. The batch script works fine on the windows machine in a cmd window. When I execute the same command in jenkins batch script, it cannot see the unc path somehow. The batch

RE: Running test cases as different user in Jenkins

2014-07-03 Thread James Nord (jnord)
The slave(s) do not need to be launched from the same account that runs the slave. You can run the master as j1, Then create 2 ssh keys and put one as u1 and the other as u2. Only give j1 the private key – then lauch the slaves as u1 and u2 from j1. That way u1 has no access to u2 and u2 has no a

Re: Running test cases as different user in Jenkins

2014-07-03 Thread Fritz Elfert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/03/2014 02:23 PM, varun srivastava wrote: Not really a jenkins question. More like a generic Unix question: "How to share certain directories or files between different users, where each user shall be able to write/delete" Solution: That's wha

Re: Running test cases as different user in Jenkins

2014-07-03 Thread varun srivastava
My Jenkins instance is running as u1. Launching a slave as u2 might require some permission to u1. I can get only restricted set of permission for u1 to do anything as u2. I launch my slave using following unix command ssh hostname java -jar /data/jenkins/slave.jar If u1 is granted permission to

Re: Running test cases as different user in Jenkins

2014-07-03 Thread Mark Waite
Maybe I stated poorly what I was suggesting. Don't allow u1 to sudo to u2 and don't allow u2 to sudo to u1. Create two separate jobs, one that runs as user u1 on the slave that is running as u1, and the other that runs as user u2 on the slave running as u2. Use "copy artifacts" or a similar tech

Re: Running test cases as different user in Jenkins

2014-07-03 Thread varun srivastava
Thanks Mark, But running the slave node as u2 would mean that u1 can run any command as u2 (equivalent to giving complete sudo permission for u2). I have restriction that u1 can sudo as u2 only for running test command/script. On Thu, Jul 3, 2014 at 6:23 PM, Mark Waite wrote: > Could you chang

Re: Running test cases as different user in Jenkins

2014-07-03 Thread Mark Waite
Could you change the requirements a little to simplify? For example, what if you had a slave that was running as user "u2" and performed all its work as user "u2". It could copy the build results from the job which had been performed as user "u1", then execute the tests as user "u2". Mark Waite

Running test cases as different user in Jenkins

2014-07-03 Thread varun srivastava
Hi, I have a centralized jenkins setup run as user u1. Different projects are set up on this instance. For running some testcases in some project, application user u2 permission is required. So I have granted permission to u1 to sudo as u2 only for running the test script/command. For example u

Re: Createing job through CLI

2014-07-03 Thread jv
copy-job and update-job. Copy-job will copy all promotions. This is what we are doing[1]. [1] https://github.com/hzh/create-job-cli Am 02.07.2014 20:48, schrieb Mike Craig: Hello, I am using the Jenkins CLI to pull down a list of 'template' jobs, search and replace for our release version, t

Re: User list contains mysterious entry...

2014-07-03 Thread rflueckiger
Ok, I issue has resolved itself for now. Still no idea how the user got in there in the first place, but I write it off as a combination of configuration mismanagement by myself and bad timing (some client trying to log in on some badly routed url, during the short window where the jenkins was

Re: User list contains mysterious entry...

2014-07-03 Thread rflueckiger
I think the actual name of the user is irrelevant, but I just discovered that the string matches the login name of an ownCloud user (running on the same system). I think it is theoretically possible, that this user or some ownCloud client might have "landed" on the jenkins page during the insta

Re: User list contains mysterious entry...

2014-07-03 Thread Richard Bywater
What's the user name or details? That might give us a hint :) Richard. On Thu, Jul 3, 2014 at 9:05 PM, wrote: > I'm using Jenkins Version 1.570 and I'm running it as a standalone process > (winstone server). > I'm also using Jenkins' own user database mode and there is currently one > user (me

User list contains mysterious entry...

2014-07-03 Thread rflueckiger
I'm using Jenkins Version 1.570 and I'm running it as a standalone process (winstone server). I'm also using Jenkins' own user database mode and there is currently one user (me), who can log in (according to Jenkins). However, the "full list" also shows a mysterious second user, and I'm trying