Restricting job list permission using Role-Based Strategy

2016-10-13 Thread Maneesh M P
Hello,

We are using Role Based Strategy plugin for our authorization. The problem 
I am currently facing is, I am unable to restrict user to view jobs only 
which he is authorized to.
With my current configuration a logged in user can see all the jobs, though 
he wont have any other permission to execute or configure etc.

Is there a way I can control the job listing also with Role Based strategy 
plugin ?

Thanks,
Maneesh

-- 
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/feb41433-c011-4bb4-b3fd-1b3f978d7ba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins is slow at fisrt connection

2016-10-13 Thread ycollet
Hello,

I noticed that for some times now, jenkins is quite slow on first 
connection. After the first connection, jenkins is quick to react.
I was looking in the logs of jenkins and I noticed this:

Infos: Started Gravatar periodic lookup
oct. 14, 2016 8:23:56 AM hudson.model.AsyncPeriodicWork$1 run
Infos: Finished Gravatar periodic lookup. 29 271 ms

I will try to remove the plugin related to gravatar and see what happens.

Yann

-- 
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/b83d3109-abd9-441e-8c1a-6a87c911d2ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline - keep build forever

2016-10-13 Thread Daniel Beck

> On 13.10.2016, at 13:18, roman.pi...@fluidtime.com wrote:
> 
> Is there any possibility to keep a build forever programmatically after 
> submitting an input approval step?

currentBuild.rawBuild.keepLog(true) should do this.

This requires sandbox script approval.

Should probably be exposed for 'currentBuild' and allowed in the sandbox, so 
please file an RFE.

-- 
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/045BED34-EBFE-4633-BF84-53934D614AFA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Mail Commander setup

2016-10-13 Thread Flint Fazz
is there a way to trigger to build a project by sending email?

-- 
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/57e3837f-9db0-4cc5-a4dc-ba0bf050c4b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Mail Commander setup

2016-10-13 Thread Flint Fazz
sorry, i forgot to explain... i want to use an email that trigger to build 
a project. and I saw Mail Commander plugin.

-- 
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/0a4c0338-08f0-460b-a893-37b8dd37aa1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PermGen issue

2016-10-13 Thread vishad alekh
Hi,

Yes, I am using multi branch pipeline and also jdk 7. 
Actually I have made build n compilation job for 3 application. There is a 
master job which is calling these three jobs in parallel executor. 



Thanks and Regards 
Vishad Alekh

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: R. Tyler Croy
Sent: Friday 14 October 2016 6:48 AM
To: jenkinsci-users@googlegroups.com
Reply To: jenkinsci-users@googlegroups.com
Subject: Re: PermGen issue

(replies inline)

On Thu, 13 Oct 2016, vishad alekh wrote:

> Hi All,
> 
> I am using Jenkins 2.11. My Jenkins is frequently going down with permGen 
> issue. 
> Even if I am not executing any jobs. 
> My server configuration is pretty good too.
> 
> Can someone please assist with the possible reason for the same. Or any way 
> in which this can be resolved. 
> 
> I have tried increasing the permGen space by passing parameter at the time of 
> startup but no luck. 
> 
> Maven configuration is also done for the same.

Out of curiosity are you using Multibranch Pipeline heavily? The fact that
you're having a PermGen issue means you're likely running on JDK7, can you tell
us anything else about your environment?



- R. Tyler Croy

--
Code: 
Chatter: 

% gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
You received this message because you are subscribed to a topic in the Google 
Groups "Jenkins Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jenkinsci-users/xjlojjCKPhI/unsubscribe.
To unsubscribe from this group and all its topics, 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/20161014011749.GT3357%40blackberry.coupleofllamas.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/20161014033848.5972045.13477.25939%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Mail Commander setup

2016-10-13 Thread Mark Waite
It is impressive that a plugin from 2011, based on Jenkins 1.398, which
seems to have only released a single version, is still running with a
Jenkins version roughly 300 releases later.

You probably want to use email-ext or a more recently maintained plugin to
send e-mail.

Mark Waite

On Thu, Oct 13, 2016 at 9:21 PM Flint Fazz  wrote:

> I did follow the MAIL COMMANDER setup but the problem is, but where should
> I put the "jenkins-cli.jar"?
>
> then tried to send email, and couldn't trigger..
>
> POP3 mail server address: pop.gmail.com
> POP3 mail server port: 995
> POP3 User Name: jenk...@gmail.com
> POP3 Password: **
>
> then I tried to use the jenkins-cli.jar, it shows these errors..
> Right now I put jenkins-cli.jar to /home/jenkins/ and change the ownership
> to jenkins:jenkins
> [WARN] Failed to authenticate with your SSH keys. Proceeding as anonymous
> ERROR: No such job 'test'
>
> --
> 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/24915167-13bb-46ac-89c7-da06f83fe86a%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/CAO49JtH7kU3NrHaAwOatpPN70KwkLvJ6yeMYM51W8%3D4L9rEEEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Mail Commander setup

2016-10-13 Thread Flint Fazz
I did follow the MAIL COMMANDER setup but the problem is, but where should 
I put the "jenkins-cli.jar"?

then tried to send email, and couldn't trigger..

POP3 mail server address: pop.gmail.com
POP3 mail server port: 995
POP3 User Name: jenk...@gmail.com
POP3 Password: **

then I tried to use the jenkins-cli.jar, it shows these errors..
Right now I put jenkins-cli.jar to /home/jenkins/ and change the ownership 
to jenkins:jenkins
[WARN] Failed to authenticate with your SSH keys. Proceeding as anonymous
ERROR: No such job 'test'

-- 
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/24915167-13bb-46ac-89c7-da06f83fe86a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PermGen issue

2016-10-13 Thread R. Tyler Croy
(replies inline)

On Thu, 13 Oct 2016, vishad alekh wrote:

> Hi All,
> 
> I am using Jenkins 2.11. My Jenkins is frequently going down with permGen 
> issue. 
> Even if I am not executing any jobs. 
> My server configuration is pretty good too.
> 
> Can someone please assist with the possible reason for the same. Or any way 
> in which this can be resolved. 
> 
> I have tried increasing the permGen space by passing parameter at the time of 
> startup but no luck. 
> 
> Maven configuration is also done for the same.

Out of curiosity are you using Multibranch Pipeline heavily? The fact that
you're having a PermGen issue means you're likely running on JDK7, can you tell
us anything else about your environment?



- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
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/20161014011749.GT3357%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


PermGen issue

2016-10-13 Thread vishad alekh
Hi All,

I am using Jenkins 2.11. My Jenkins is frequently going down with permGen 
issue. 
Even if I am not executing any jobs. 
My server configuration is pretty good too.

Can someone please assist with the possible reason for the same. Or any way in 
which this can be resolved. 

I have tried increasing the permGen space by passing parameter at the time of 
startup but no luck. 

Maven configuration is also done for the same.


Please assist. 


Thanks and Regards
Vishad Alekh 

-- 
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/c2190157-2708-4f49-931e-372b9e4e48a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automated Jenkins Installs

2016-10-13 Thread Victor Martinez
Hi Ryan,

There are different solutions besides of using Docker (which IMO, it's the 
one of the best ones as Mark already suggested), as long as you use 
Configuration Management tools:
- Ansible -> https://galaxy.ansible.com/geerlingguy/jenkins/
- Puppet -> https://forge.puppet.com/rtyler/jenkins
- Chef -> https://supermarket.chef.io/cookbooks/jenkins
- Salt -> https://github.com/saltstack-formulas/jenkins-formula

Besides of that, you can automate even more if you use the 
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Hook+Script , I've used 
to configured for instance: some active directory, security policies, 
ant/jdk/maven installations, ssh/other credentials and so on.

Cheers 

On Thursday, 13 October 2016 18:15:53 UTC+1, Mark Waite wrote:
>
> The official Jenkins image can be easily extended to pass in the 
> configuration in files.  That's how it is designed to work, and it has 
> worked quite well for me.
>
> If you'd like to see one way to do it, look at the lts-with-plugins branch 
> of my docker repo, 
> https://github.com/MarkEWaite/docker/tree/lts-with-plugins .  I've also 
> added credentials and agents and many other configuration settings by 
> committing files to a private repository similar to that one.I use 
> docker images to test the Jenkins git plugin and the Jenkins git client 
> plugin and have been very pleased with how well Jenkins works with complex 
> setups in a docker environment.
>
> I'm sure there are others with much better techniques than mine, but 
> you're welcome to refer to my techniques as one way of doing it.
>
> Mark Waite
>
> On Thu, Oct 13, 2016 at 9:54 AM Ryan Cocks  > wrote:
>
>> Hi,
>>
>> I'm a bit surprised to find Jenkins installation requires manual 
>> intervention via a user interface.
>>
>> Are there any guides on how to avoid the UI and do an automated deploy of 
>> Jenkins itself?
>>
>> Best idea I have is to store a post-setup jenkins docker image. I'd much 
>> prefer to be able to pass in the configuration in files or the environment.
>>
>> Best regards,
>> Ryan
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/3fabfeff-5336-45dc-a3ea-0f2a271d4a11%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/89e03e52-27fd-4dc9-87e9-3e34e10d5ab4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in Jenkins.

2016-10-13 Thread Victor Martinez
It's worth adding further details about what you did to see that error and 
also what plugins/jenkins versions are installed. Then you can get more 
accurate answers though.

What Stackoverflow means:
- 
http://stackoverflow.com/questions/22182669/what-actually-causes-a-stack-overflow-error

Just googling a bit that particular Class name from the attached stacktrace 
I've found the below jira reference:
- https://issues.jenkins-ci.org/browse/JENKINS-35432

Cheers


On Thursday, 13 October 2016 21:43:26 UTC+1, Rachel wrote:
>
> Hi Zue,
>
> What job configuration are you trying to execute?
>
> Best regards,
> Rachel
>
> El jueves, 13 de octubre de 2016, 18:32:17 (UTC+2), Zue Sani escribió:
>>
>> Hi could any one let me know what was this error? how to rectify it.
>>
>>
>> Thank you,
>> zue.
>>
>

-- 
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/5c941462-7697-46e4-bfdf-a44779a1baab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polling both svn and git from pipeline

2016-10-13 Thread Rachel
Hi,

In your case, I would have two separated Jenkins jobs, but sharing the same 
workspace:

   - Advanced Project Options > Use custom workspace 

I hope be useful.

Best regards,
Rachel

El miércoles, 12 de octubre de 2016, 2:47:08 (UTC+2), taroc...@gmail.com 
escribió:
>
> Is it possible to poll for changes from both svn and git repositories from 
> within a pipeline job? In Jenkins, pipeline scm configuration is tied to a 
> particular scm type (due to a radio button), but I would like to poll both 
> svn and git at the same time. As a result of the poll detecting an scm 
> change, I want to invoke only one build.
>
> As a workaround, maybe I need to have two separate Jenkins jobs? 
>

-- 
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/e42c8b9e-8de8-489d-9b3d-741c66b0b17e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins with Cucumber not working, please help !!

2016-10-13 Thread Rachel
Hi Vinoth,

I'm not sure if you executed Maven command after plugins installation or if 
you restarted Jenkins after installation.

I think you're looking for Cucumber Reports Plugin 
 and 
you have detailed information about configuration here 
.

I hope be useful.

Best regards,
Rachel

El jueves, 13 de octubre de 2016, 19:53:46 (UTC+2), Vinoth Kannan escribió:
>
> Hi,
>
>  
>
> I have a maven project, in which i have used Cucumber with Junit runner.
>
> Now i tried of integrating it with jenkins and was able to invoke the 
> script through simple command "mvn test" from jenkins
>
> But when i clicked on Cucumber-JVM report its not showing anything other 
> than build number.
>
>  
>
> I just went to manage plugins, searched Cucumber and downloaded all the 
> plugins named with cucumber.
>
>  
>
>  
>
> I got the below one:
>
> Project
>
> Number
>
> Date
>
> Cukes
>
> 10
>
> 28 Sep 2016, 19:32
>
> Features Statistics
>
> The following graphs show passing and failing statistics for features
>
> You have no features in your cucumber report
>
>  
>

-- 
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/9758a054-3868-4129-b127-457c1fc3338e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in Jenkins.

2016-10-13 Thread Rachel
Hi Zue,

What job configuration are you trying to execute?

Best regards,
Rachel

El jueves, 13 de octubre de 2016, 18:32:17 (UTC+2), Zue Sani escribió:
>
> Hi could any one let me know what was this error? how to rectify it.
>
>
> Thank you,
> zue.
>

-- 
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/9c744eb8-6a77-4072-8a28-dbb17a6cb8ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable To execute SCons script in jenkins

2016-10-13 Thread Rachel
Hi,

Yes, that's the reason. If you remove the build step about SCons, you'll 
have to add a new step:

   - Add build step > Execute shell

and write the SCons command:

scons -f /Users/Uma/.jenkins/jobs/Sample/workspace


or in a smart way:

scons -f $WORKSPACE


I think you don't need to re-define an environment variable.

I hope be useful.

Best regards,
Rachel

El jueves, 13 de octubre de 2016, 10:58:47 (UTC+2), Uma escribió:
>
> Hi,
>
> I have tried removing the build step in  my project->configure->Build. 
>
> Now the console output is 
>
> Started by user Administrator 
>
> Building in workspace /Users/Shared/Jenkins/Home/workspace/TestProject
>  > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
>  > git config remote.origin.url https://github.com/guma-005/JenkinsDemo.git # 
> timeout=10
> Fetching upstream changes from https://github.com/guma-005/JenkinsDemo.git
>  > git --version # timeout=10
>  > git fetch --tags --progress https://github.com/guma-005/JenkinsDemo.git 
> +refs/heads/*:refs/remotes/origin/*
>  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
>  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
> Checking out Revision 79d8e3a80aa4b114f72ad383f985028838f26ab0 
> (refs/remotes/origin/master)
>  > git config core.sparsecheckout # timeout=10
>  > git checkout -f 79d8e3a80aa4b114f72ad383f985028838f26ab0
>  > git rev-list 79d8e3a80aa4b114f72ad383f985028838f26ab0 # timeout=10
> Finished: SUCCESS
>
>
> (Sorry I created another job with same code and everything)
>
>
> Project Structure in Git : 
>— SConstruct 
>— Demo
>—  Files.cpp
>—  Files.hpp
>
> Environment variables 
>   List of variables 
>   Name  
>   Value  
>
> Delete
>
>
>
>
>
>
>
>   Home directory /Users/Shared/Jenkins/Home [image: Help for feature: Home 
> directory] 
>   Workspace Root Directory  [image: Help for feature: Workspace Root 
> Directory] 
>   Build Record Root Directory  [image: Help for feature: Build Record Root 
> Directory] 
>
>
> It seems it not even running Scons script in my workspace. If so why it 
> return SUCCESS?
> Thanks in advance.
>
>
> On Wed, Oct 12, 2016 at 9:14 PM, Rachel  > wrote:
>
>> Hi Uma,
>>
>> I've used those steps for creating new environment variables in Jenkins, 
>> but not for overwriting PATH, althouth you might use:
>>
>> Value = $PATH:/adding/new/path/
>>
>> in order not to lose previous value of PATH. Anyway, if scons is located 
>> in /usr/local/bin (as you indicated), Jenkins would have to find it, 
>> because that path is usually into PATH variable.
>>
>> From your output, I guess you're using SCons Plugin. Although it's not 
>> necessary in this case, try to configure "SCons Executable Path" in "Global 
>> Configuration" (
>> https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=42470444) with 
>> /usr/local/bin (without /scons).
>>
>> If problem persists, maybe it's a bug of SCons Plugin. Try to execute 
>> SCons through:
>>
>>- Add build step > Execute shell
>>
>> Tell us if you get it.
>>
>> Best regards,
>> Rachel
>>
>>
>> El miércoles, 12 de octubre de 2016, 18:29:50 (UTC+2), Uma escribió:
>>>
>>> Hi,
>>> Thanks for the reply 
>>> Where can I set env variable for scons path?
>>>
>>> I have tried setting  Jenkins -> Manage Jetkins -> configure System -> 
>>> Global Properties -> Environment Variable :
>>>   Name = PATH 
>>>   Value = /usr/local/bin/scons
>>>
>>> It does not seems to be work.
>>>
>>> regards
>>>
>>> On Wed, Oct 12, 2016 at 6:15 PM, Victor Martinez >> > wrote:
>>>
 Hi,
 Apparently scons is not part of your env variable path.

 Run 'which scons' and 'echo $PATH' then you will figure out what env 
 varianles were loaded when running that job.

 Cheers

 --
 You received this message because you are subscribed to a topic in the 
 Google Groups "Jenkins Users" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/jenkinsci-users/Ofs-TV4s10Y/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 jenkinsci-use...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/5f3616e9-f013-41f7-a237-95421034ef24%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jenkinsci-users/Ofs-TV4s10Y/unsubscribe
>> .
>> To unsubscribe from this group and al

Jenkins pipeline - run parallel things on an agent

2016-10-13 Thread Lina Muryanto
Hi, 
I am a new Jenkins Pipeline user.
I want to use Jenkins pipeline to run my regression tests.
For simplification, I want to run 2 tests on same node (agent) in parallel.

My pipeline script has a stage that looks like:

...
   stage ('runParallel') {
  node ('regrNode') {
 def testsuites = ['smokeTestONE', 'smokeTestTWO']

 def runTSClosure = { testsuite ->
sh "echo RUNNING $testsuite testsuite"
 }
 echo "DEBUG... testsuites: " + testsuites
 def parallelBuilders = parallelTestsBuilder5(testsuites, 
runTSClosure)

 echo "DEBUG... parallelBuilders " + parallelBuilders
 parallel parallelBuilders
  }
   }
...
I have a parallelTestsBuilder5 in my Global Shared Library, defined as 
follows:
@NonCPS
def call(tsArr, Closure body) {

   def tsArray = tsArr

   def builders = [:]
   tsArray.each {
  def test = it
  builders[test] = {
 body(test)
  }
   }
   return builders
}
---
When I ran my pipeline, I got:
[Pipeline] echo
DEBUG... testsuites: [smokeTestONE, smokeTestTWO]
[Pipeline] echo
DEBUG... parallelBuilders 
[smokeTestONE:parallelTestsBuilder5$_call_closure1$_closure2@56786875, 
smokeTestTWO:parallelTestsBuilder5$_call_closure1$_closure2@6d9351cc]
[Pipeline] parallel
[Pipeline] [smokeTestONE] { (Branch: smokeTestONE)
[Pipeline] [smokeTestTWO] { (Branch: smokeTestTWO)
[Pipeline] [smokeTestONE] sh
[smokeTestONE] [runRegressionParallel3.1] Running shell script
[smokeTestONE] + echo RUNNING smokeTestTWO testsuite
[smokeTestONE] RUNNING smokeTestTWO testsuite
[Pipeline] [smokeTestTWO] sh
[smokeTestTWO] [runRegressionParallel3.1] Running shell script
[Pipeline] }
[smokeTestTWO] + echo RUNNING smokeTestTWO testsuite
[smokeTestTWO] RUNNING smokeTestTWO testsuite


QUESTION:
Why am I getting the following?
[smokeTestONE] + echo RUNNING smokeTestTWO testsuite
[smokeTestONE] RUNNING smokeTestTWO testsuite

=> I am expecting:
[smokeTestONE] + echo RUNNING smokeTestONE testsuite
[smokeTestONE] RUNNING smokeTestONE testsuite

Let me know what I did wrong.
Thanks,
Lina

-- 
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/6c5403fa-9f19-4dd8-8816-b05285954956%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Running externally loaded groovy functions on agent

2016-10-13 Thread Fahd Arshad
Hi Guys,

I need Some help loading external functions in Jenkinsfile.

Jenkinsfile contents below:
node('local-node')

{

git "https://github.com/afahd/MW.git";
echo "this is groovy"
clone.clone()

}

Externally loaded function:





@Grab(group='org.yaml', module='snakeyaml', version='1.17')
import org.yaml.snakeyaml.*
public class Dependency {
   public LinkedHashMap h1;
   Dependency(LinkedHashMap h1) {
   this.h1 = h1
   }
}
def clone()
{
  Yaml yaml = new Yaml();
  String project;
  String location;
  String branch;
  String build;
  InputStream input = new FileInputStream(new File("dependencies.yaml"));
  Dependency data = yaml.load(input);
  Set s1 = data.h1.keySet();
  for (int num=0;numhttps://groups.google.com/d/msgid/jenkinsci-users/222f028c-90aa-4554-9ea4-db06c9ad86c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins with Cucumber not working, please help !!

2016-10-13 Thread Vinoth Kannan


Hi,

 

I have a maven project, in which i have used Cucumber with Junit runner.

Now i tried of integrating it with jenkins and was able to invoke the 
script through simple command "mvn test" from jenkins

But when i clicked on Cucumber-JVM report its not showing anything other 
than build number.

 

I just went to manage plugins, searched Cucumber and downloaded all the 
plugins named with cucumber.

 

 

I got the below one:

Project

Number

Date

Cukes

10

28 Sep 2016, 19:32

Features Statistics

The following graphs show passing and failing statistics for features

You have no features in your cucumber report

 

-- 
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/14fcc13a-de18-4e91-bd48-763b0c15daa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automated Jenkins Installs

2016-10-13 Thread Mark Waite
The official Jenkins image can be easily extended to pass in the
configuration in files.  That's how it is designed to work, and it has
worked quite well for me.

If you'd like to see one way to do it, look at the lts-with-plugins branch
of my docker repo,
https://github.com/MarkEWaite/docker/tree/lts-with-plugins .  I've also
added credentials and agents and many other configuration settings by
committing files to a private repository similar to that one.I use
docker images to test the Jenkins git plugin and the Jenkins git client
plugin and have been very pleased with how well Jenkins works with complex
setups in a docker environment.

I'm sure there are others with much better techniques than mine, but you're
welcome to refer to my techniques as one way of doing it.

Mark Waite

On Thu, Oct 13, 2016 at 9:54 AM Ryan Cocks  wrote:

> Hi,
>
> I'm a bit surprised to find Jenkins installation requires manual
> intervention via a user interface.
>
> Are there any guides on how to avoid the UI and do an automated deploy of
> Jenkins itself?
>
> Best idea I have is to store a post-setup jenkins docker image. I'd much
> prefer to be able to pass in the configuration in files or the environment.
>
> Best regards,
> Ryan
>
> --
> 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/3fabfeff-5336-45dc-a3ea-0f2a271d4a11%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/CAO49JtEc57yqSVqStU5Ru4DqpXCc1UYqAkiUxoe69oJfyQ9shg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Automated Jenkins Installs

2016-10-13 Thread Ryan Cocks
Hi,

I'm a bit surprised to find Jenkins installation requires manual 
intervention via a user interface.

Are there any guides on how to avoid the UI and do an automated deploy of 
Jenkins itself?

Best idea I have is to store a post-setup jenkins docker image. I'd much 
prefer to be able to pass in the configuration in files or the environment.

Best regards,
Ryan

-- 
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/3fabfeff-5336-45dc-a3ea-0f2a271d4a11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


touble with push hook from github enterprise

2016-10-13 Thread Watrous, Daniel
Hi,

I'm using github enterprise (GHE) and Jenkins 2.17. I have a working 
parameterized pipeline. Now I'm interested in having that run every time code 
is pushed to GHE. I have the GHE side setup to send a push notification.

[cid:image001.png@01D2253C.A6A8C6F0]

The green checkmark seems to suggest that GHE can successfully post the event 
to Jenkins.

I have checked the box to have the build trigger when a change is pushed.

[cid:image002.png@01D2253C.A6A8C6F0]

Hook for repo it-cloud-services/cloud-portal-automation-api on github.hpe.com 
failed to be registered or were removed. More info can be found on global 
manage page. This message will be dismissed if Jenkins receives a PING event 
from repo or repo will be ignored in global configuration.

I can't find much information on this error and I'm not sure where to go next. 
Any ideas to help me troubleshoot this?

Thanks,
Daniel

-- 
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/AT5PR84MB02284AAA0C4024BFEEAF7259CEDC0%40AT5PR84MB0228.NAMPRD84.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


Re: Are jelly templates supported in email-ext with pipeline

2016-10-13 Thread András Gaál
Hi, any updates on this?

Regards,
Andrew

On Thursday, April 21, 2016 at 4:21:52 PM UTC+2, slide wrote:
>
> The biggest hurdle at this point is that email-ext uses token macro for 
> token replacement and token macro is built around AbstractBuild, which 
> pipeline does not use. I am looking into adding the capability to token 
> macro, and thus email-ext. It's something I am actively working on.
>
> On Thu, Apr 21, 2016, 06:30 Mark Bidewell > 
> wrote:
>
>> Is support planed for a future release?
>>
>>
>> On Saturday, April 16, 2016 at 2:16:35 PM UTC-4, slide wrote:
>>
>>> No, this is not currently supported. Token macro, which is the basis for 
>>> the SCRIPT token doesn't currently support the type of object that pipeline 
>>> uses.
>>>
>>> On Tue, Feb 9, 2016 at 10:32 AM Rinaldo DiGiorgio  
>>> wrote:
>>>
>> I am able to use email-ext with pipeline to send emails.  I am trying to 
 use jelly templates. I do not see an option for the template processor in 
 the following. I tried adding *SCRIPT* to the body.


 emailext attachLog: true, body: ' ${SCRIPT, 
 template="html/test.groovy"}', subject: 'Test of email', to: '
 somea...@somedomain.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-use...@googlegroups.com.
>>>
>>>
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/f7ed76fc-7c0d-4b5d-b582-5e39d468809d%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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f25baa0e-8051-4e1a-8f75-d3ed4fdea15f%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/dd84fcf4-ea83-485c-af8b-407a8f7c5d1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


docker: command not found ( Mac mini + Jenkins )

2016-10-13 Thread Victor Martinez
Environment variables when connecting ssh slaves might be a bit different, as 
far as I know those ssh connections are not interactive therefore you need to 
review whether that Docker binary is part of any of the paths of the PATH 
variable.

There are some references in the below link for instance:

http://unix.stackexchange.com/questions/164779/jenkins-does-not-use-systems-locales

Cheers

-- 
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/29336825-e25a-4f98-8019-2cf79c45e4bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email Extension Plugin - "groovy.lang.MissingPropertyException: No such property:" exception when trying to print the message contents

2016-10-13 Thread Slide
The messages are always sent as multipart, even for plain text messages.

On Thu, Oct 13, 2016, 07:15 Adri CS  wrote:

> Hi slide,
>
> yes. That was it! Thanks!
>
> Altough why is the content being reported as multipart when it's a plain
> text string?
>
> Cheers!
>
>
> On Thursday, 13 October 2016 15:57:35 UTC+2, slide wrote:
>
> You are missing double quotes around the variable.
>
> logger.println("${PROJECT_DEFAULT_CONTENT}");
>
> On Thu, Oct 13, 2016, 06:44 Adri CS  wrote:
>
> Dear all,
>
> In a project, I'm trying to access to the message contents in the
> *Pre-send script.*I'm trying to add those contents to the log.
>
> I've set up the message type directly to *text/plain* and specified the 
> *Default
> Contents* to a string (let's say: "ABCDEF").
>
> So in the *Pre-send script,* I'm executing the following piece of code:
>
> logger.println(msg.getContentType());
> logger.println(msg.getContent());
> logger.println(${PROJECT_DEFAULT_CONTENT});
>
> *) The first line will print *text/plain* as expected.
>
> *) The second line will print
>
> *javax.mail.internet.MimeMultipart@4d0c4f81**) And the third line will
> throw the *groovy.lang.MissingPropertyException: No such property:*
> exception.
>
>  The complete message is:
>
> groovy.lang.MissingPropertyException: No such property: ABCDEF for class:
> Script1
> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
> ScriptBytecodeAdapter.java:53)
> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.
> getProperty(PogoGetPropertySite.java:52)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
> callGroovyObjectGetProperty(AbstractCallSite.java:307)
> at Script1.run(Script1.groovy:39)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
> ExtendedEmailPublisher.java:528)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript
> (ExtendedEmailPublisher.java:481)
> at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
> ExtendedEmailPublisher.java:365)
> at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
> ExtendedEmailPublisher.java:350)
> at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
> ExtendedEmailPublisher.java:258)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
> AbstractBuild.java:779)
> at hudson.model.AbstractBuild$AbstractBuildExecution.
> performAllBuildSteps(AbstractBuild.java:720)
> at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
> at hudson.model.Run.execute(Run.java:1767)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:404)
>
> groovy.lang.MissingPropertyException: No such property:
> ABCDEFGHIJKLMNOPQRSTUVWXYZ for class: Script1
> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
> ScriptBytecodeAdapter.java:53)
> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.
> getProperty(PogoGetPropertySite.java:52)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
> callGroovyObjectGetProperty(AbstractCallSite.java:307)
> at Script1.run(Script1.groovy:39)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
> ExtendedEmailPublisher.java:528)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript
> (ExtendedEmailPublisher.java:481)
> at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
> ExtendedEmailPublisher.java:365)
> at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
> ExtendedEmailPublisher.java:350)
> at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
> ExtendedEmailPublisher.java:258)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
> AbstractBuild.java:779)
> at hudson.model.AbstractBuild$AbstractBuildExecution.
> performAllBuildSteps(AbstractBuild.java:720)
> at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
> at hudson.model.Run.execute(Run.java:1767)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:404)
>
>
> My questions are:
>
>   *) Why the message's content is being reported as *multipart*, even
> though I forcefully specified *text/plain*?
>
>   *) Why trying to access the message's content throws the excep

Re: Email Extension Plugin - "groovy.lang.MissingPropertyException: No such property:" exception when trying to print the message contents

2016-10-13 Thread Adri CS
Hi slide,

yes. That was it! Thanks!

Altough why is the content being reported as multipart when it's a plain 
text string?

Cheers!

On Thursday, 13 October 2016 15:57:35 UTC+2, slide wrote:
>
> You are missing double quotes around the variable. 
>
> logger.println("${PROJECT_DEFAULT_CONTENT}");
>
> On Thu, Oct 13, 2016, 06:44 Adri CS > 
> wrote:
>
>> Dear all,
>>
>> In a project, I'm trying to access to the message contents in the 
>> *Pre-send script.*I'm trying to add those contents to the log.
>>
>> I've set up the message type directly to *text/plain* and specified the 
>> *Default 
>> Contents* to a string (let's say: "ABCDEF").
>>
>> So in the *Pre-send script,* I'm executing the following piece of code:
>>
>> logger.println(msg.getContentType());
>> logger.println(msg.getContent());
>> logger.println(${PROJECT_DEFAULT_CONTENT});
>>
>> *) The first line will print *text/plain* as expected.
>>
>> *) The second line will print 
>>
>> *javax.mail.internet.MimeMultipart@4d0c4f81**) And the third line will 
>> throw the *groovy.lang.MissingPropertyException: No such property:* 
>> exception.
>>
>>  The complete message is:
>>
>> groovy.lang.MissingPropertyException: No such property: ABCDEF for class: 
>> Script1
>> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
>> ScriptBytecodeAdapter.java:53)
>> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.
>> getProperty(PogoGetPropertySite.java:52)
>> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
>> callGroovyObjectGetProperty(AbstractCallSite.java:307)
>> at Script1.run(Script1.groovy:39)
>> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
>> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
>> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
>> ExtendedEmailPublisher.java:528)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.
>> executePresendScript(ExtendedEmailPublisher.java:481)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
>> ExtendedEmailPublisher.java:365)
>> at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
>> ExtendedEmailPublisher.java:350)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
>> ExtendedEmailPublisher.java:258)
>> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>> at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
>> AbstractBuild.java:779)
>> at hudson.model.AbstractBuild$AbstractBuildExecution.
>> performAllBuildSteps(AbstractBuild.java:720)
>> at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
>> at hudson.model.Run.execute(Run.java:1767)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at hudson.model.ResourceController.execute(ResourceController.java:98
>> )
>> at hudson.model.Executor.run(Executor.java:404)
>>
>> groovy.lang.MissingPropertyException: No such property: 
>> ABCDEFGHIJKLMNOPQRSTUVWXYZ for class: Script1
>> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
>> ScriptBytecodeAdapter.java:53)
>> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.
>> getProperty(PogoGetPropertySite.java:52)
>> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
>> callGroovyObjectGetProperty(AbstractCallSite.java:307)
>> at Script1.run(Script1.groovy:39)
>> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
>> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
>> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
>> ExtendedEmailPublisher.java:528)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.
>> executePresendScript(ExtendedEmailPublisher.java:481)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
>> ExtendedEmailPublisher.java:365)
>> at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
>> ExtendedEmailPublisher.java:350)
>> at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
>> ExtendedEmailPublisher.java:258)
>> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>> at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
>> AbstractBuild.java:779)
>> at hudson.model.AbstractBuild$AbstractBuildExecution.
>> performAllBuildSteps(AbstractBuild.java:720)
>> at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
>> at hudson.model.Run.execute(Run.java:1767)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at hudson.model.ResourceController.execute(ResourceController.java:98
>> )
>> at hudson.model.Executor.run(Executor.java:404)
>>
>>
>> My questions are:
>>
>>   *) Why the message's content is being reported as *multipart*, even 
>> though I forcefully specified *text/plain*?
>>
>>   *) Why trying to access the message's content throws the exception?
>>
>> Best 

Re: Email ext to send html body in Pipeline

2016-10-13 Thread Slide
I believe that was added in 2.50 that was released recently.

On Wed, Oct 12, 2016, 13:57 Sam K  wrote:

> Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that
> is already available in the plugin?  That is EXACTLY what most would want I
> presume.  :)
>
>
> On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote:
>
> Thanks for bringing this to my attention Mark.  I was not aware of that.
> The jelly scripts are great which send predefined content.  In my case, I
> am generating content which I want to send in the body.
>
> I am trying to work with mutt email client but having other roadblocks.  :(
>
> On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>
> Support for templates was added in 2.50 if that helps.
>
> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>
> This works for most part.  Except, I have a html formatted file which I
> would like to send as the body.  Is it possible?  Thanks
>
> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' +
> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH
> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>
> --
> 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/ba748cfd-f69b-485c-b797-51572934e22b%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/CAPiUgVeRPtjirXNfbWPCbtP0vu%3Dbmed9PjDVLrjX8ZC7Kw8%2BEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker Slaves Plugin Exception in Pipeline

2016-10-13 Thread Qiang
Thanks for fixing it... the 1.0.5 version worked perfectly with sample 
code. Can't wait to put into real use :)

Qiang

On Tuesday, October 11, 2016 at 1:07:00 PM UTC-5, Qiang wrote:
>
> Thank you!
>
> I noticed a "git" command alone is ok, but adding a "sh" command generate 
> the following error.
>
> Looking forward to the fix!
>
>
> Qiang
>
> On Tuesday, October 11, 2016 at 10:11:31 AM UTC-5, nicolas de loof wrote:
>>
>> Hi.
>>
>> Identified the root cause, a fix will be released asap.
>>
>> Le 11 oct. 2016 15:38, "Qiang Ma"  a écrit :
>>
>>> Hi, all,
>>>
>>> Have you successfully run the sample of Docker Slaves Plugin?
>>>
>>> I am using Docker Slaves Plugin v 1.0.4, on Jenkins 2.6.
>>> Copied the sample (Pipeline job support) from 
>>> https://github.com/jenkinsci/docker-slaves-plugin 
>>>
>>> The images were downloaded, git checkout happened,  but the pipeline 
>>> finished with error below:
>>>
>>> [Pipeline] }
>>>
>>> [Pipeline] // dockerNode[Pipeline] End of 
>>> Pipelinejava.lang.NullPointerException
>>> at 
>>> it.dockins.dockerslaves.drivers.CliDockerDriver.applyHints(CliDockerDriver.java:236)
>>> at 
>>> it.dockins.dockerslaves.drivers.CliDockerDriver.launchSideContainer(CliDockerDriver.java:366)
>>> at 
>>> it.dockins.dockerslaves.DefaultDockerProvisioner.createSideContainers(DefaultDockerProvisioner.java:122)
>>> at 
>>> it.dockins.dockerslaves.DefaultDockerProvisioner.launchBuildContainers(DefaultDockerProvisioner.java:99)
>>> at 
>>> it.dockins.dockerslaves.DefaultDockerProvisioner.launchBuildProcess(DefaultDockerProvisioner.java:139)
>>> at it.dockins.dockerslaves.DockerLauncher.launch(DockerLauncher.java:56)
>>> at hudson.Launcher$ProcStarter.start(Launcher.java:381)
>>>
>>>
>>>
>>> Any comment/help is appreciated.
>>>
>>> Regards,
>>> Qiang
>>>
>>> -- 
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/59c6a543-8e06-445f-9098-30024e83e2f6%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/490d893a-7499-4076-a24c-46d52349c090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email Extension Plugin - "groovy.lang.MissingPropertyException: No such property:" exception when trying to print the message contents

2016-10-13 Thread Slide
You are missing double quotes around the variable.

logger.println("${PROJECT_DEFAULT_CONTENT}");

On Thu, Oct 13, 2016, 06:44 Adri CS  wrote:

> Dear all,
>
> In a project, I'm trying to access to the message contents in the
> *Pre-send script.*I'm trying to add those contents to the log.
>
> I've set up the message type directly to *text/plain* and specified the 
> *Default
> Contents* to a string (let's say: "ABCDEF").
>
> So in the *Pre-send script,* I'm executing the following piece of code:
>
> logger.println(msg.getContentType());
> logger.println(msg.getContent());
> logger.println(${PROJECT_DEFAULT_CONTENT});
>
> *) The first line will print *text/plain* as expected.
>
> *) The second line will print
>
> *javax.mail.internet.MimeMultipart@4d0c4f81**) And the third line will
> throw the *groovy.lang.MissingPropertyException: No such property:*
> exception.
>
>  The complete message is:
>
> groovy.lang.MissingPropertyException: No such property: ABCDEF for class:
> Script1
> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
> ScriptBytecodeAdapter.java:53)
> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.
> getProperty(PogoGetPropertySite.java:52)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
> callGroovyObjectGetProperty(AbstractCallSite.java:307)
> at Script1.run(Script1.groovy:39)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
> ExtendedEmailPublisher.java:528)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript
> (ExtendedEmailPublisher.java:481)
> at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
> ExtendedEmailPublisher.java:365)
> at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
> ExtendedEmailPublisher.java:350)
> at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
> ExtendedEmailPublisher.java:258)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
> AbstractBuild.java:779)
> at hudson.model.AbstractBuild$AbstractBuildExecution.
> performAllBuildSteps(AbstractBuild.java:720)
> at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
> at hudson.model.Run.execute(Run.java:1767)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:404)
>
> groovy.lang.MissingPropertyException: No such property:
> ABCDEFGHIJKLMNOPQRSTUVWXYZ for class: Script1
> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
> ScriptBytecodeAdapter.java:53)
> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.
> getProperty(PogoGetPropertySite.java:52)
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
> callGroovyObjectGetProperty(AbstractCallSite.java:307)
> at Script1.run(Script1.groovy:39)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
> at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
> ExtendedEmailPublisher.java:528)
> at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript
> (ExtendedEmailPublisher.java:481)
> at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
> ExtendedEmailPublisher.java:365)
> at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
> ExtendedEmailPublisher.java:350)
> at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
> ExtendedEmailPublisher.java:258)
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
> AbstractBuild.java:779)
> at hudson.model.AbstractBuild$AbstractBuildExecution.
> performAllBuildSteps(AbstractBuild.java:720)
> at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
> at hudson.model.Run.execute(Run.java:1767)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:404)
>
>
> My questions are:
>
>   *) Why the message's content is being reported as *multipart*, even
> though I forcefully specified *text/plain*?
>
>   *) Why trying to access the message's content throws the exception?
>
> Best regards,
> Adrian
>
> --
> 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

Email Extension Plugin - "groovy.lang.MissingPropertyException: No such property:" exception when trying to print the message contents

2016-10-13 Thread Adri CS
Dear all,

In a project, I'm trying to access to the message contents in the 
*Pre-send script.*I'm trying to add those contents to the log.

I've set up the message type directly to *text/plain* and specified the 
*Default 
Contents* to a string (let's say: "ABCDEF").

So in the *Pre-send script,* I'm executing the following piece of code:

logger.println(msg.getContentType());
logger.println(msg.getContent());
logger.println(${PROJECT_DEFAULT_CONTENT});

*) The first line will print *text/plain* as expected.

*) The second line will print 

*javax.mail.internet.MimeMultipart@4d0c4f81**) And the third line will 
throw the *groovy.lang.MissingPropertyException: No such property:* 
exception.

 The complete message is:

groovy.lang.MissingPropertyException: No such property: ABCDEF for class: 
Script1
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
ScriptBytecodeAdapter.java:53)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(
PogoGetPropertySite.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
callGroovyObjectGetProperty(AbstractCallSite.java:307)
at Script1.run(Script1.groovy:39)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
ExtendedEmailPublisher.java:528)
at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript(
ExtendedEmailPublisher.java:481)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
ExtendedEmailPublisher.java:365)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
ExtendedEmailPublisher.java:350)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
ExtendedEmailPublisher.java:258)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.
performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
at hudson.model.Run.execute(Run.java:1767)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)

groovy.lang.MissingPropertyException: No such property: 
ABCDEFGHIJKLMNOPQRSTUVWXYZ for class: Script1
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
ScriptBytecodeAdapter.java:53)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(
PogoGetPropertySite.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.
callGroovyObjectGetProperty(AbstractCallSite.java:307)
at Script1.run(Script1.groovy:39)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(
ExtendedEmailPublisher.java:528)
at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript(
ExtendedEmailPublisher.java:481)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(
ExtendedEmailPublisher.java:365)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(
ExtendedEmailPublisher.java:350)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(
ExtendedEmailPublisher.java:258)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.
performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
at hudson.model.Run.execute(Run.java:1767)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)


My questions are:

  *) Why the message's content is being reported as *multipart*, even 
though I forcefully specified *text/plain*?

  *) Why trying to access the message's content throws the exception?

Best regards,
Adrian

-- 
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/3324d8bb-b1f4-4233-bcec-2d9d473d0c60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Execute action on build deletion

2016-10-13 Thread Adri CS
Hi Baptiste,

Thanks for your input.
I will go for the plugin option, as I think this shouldn't be a "system" 
script, because I only need this behaviour for a very specific jobs.

Thanks and cheers!

On Thursday, 8 September 2016 18:10:44 UTC+2, Baptiste Mathus wrote:
>
> I think this is a matter of context. That has to be like a "system" groovy 
> script.
>
> Also, if that doesn't work, you should probably just create a plugin. You 
> have already written what you need, and that will let you manage it 
> cleanlier (writing tests, versioning…).
>
> Cheers
>
> Le 6 sept. 2016 6:32 PM, "Adri CS" > a 
> écrit :
>
>> Hi,
>>
>> I have a parametrized job that spawns Docker containers when it's 
>> running. This job is configured to store only the 10 most recent runs.
>> I would like to have the containers running for as long as the run that 
>> spawned them is stored in Jenkins.
>>
>> So, the idea would be having something like a Listener that would execute 
>> the Docker commands to remove the containers when the build is about to be 
>> deleted.
>>
>> I've thought of using the *PostBuild Groovy script* plugin to execute a 
>> listener and redefine the *onDeleted* method.
>>
>> For example:
>>
>> import hudson.model.Run;
>> import hudson.model.listeners.RunListener;
>> import hudson.Extension;
>>
>> @Extension
>> public class DeleteListener extends RunListener {
>>   @Override
>>   void onDeleted(Run r) {
>>  println(r.getNumber())
>>   }
>> }
>>
>>
>>
>> The problem with this approach is that when I execute the build, I get 
>> this error:
>>
>> Groovy script failed:
>> org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No 
>> signature of method: DeleteListener.main() is applicable for argument 
>> types: ([Ljava.lang.String;) values: [[]]
>> Possible solutions: wait(), wait(long), all(), any(), find(), wait(long, 
>> int)
>>
>>
>>
>> I'm not proficient with Java, neither Groovy; so I'm having a hard time 
>> understanding this error.
>>
>> *My question* is how, if possible, can I execute some system commands 
>> whenever a certain build is about to be deleted.
>>
>> Thanks and kind regards!
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/832ce598-477c-4fcf-ae79-4107ee2373d7%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/6cd0c7ff-c572-4cd1-9755-c52faf47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile: How to iterate a properties file without having an "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread eid badr
Thank you, it worked

Am Donnerstag, 13. Oktober 2016 12:47:43 UTC+2 schrieb Sverre Moe:
>
> Put it in a method annotated with @NonCPS
>
> torsdag 13. oktober 2016 11.18.12 UTC+2 skrev eid badr følgende:
>>
>> Hi
>>
>> in jenkinsFile.groovy I want to iterate over a properties file, but I 
>> always get an error
>> how can it be done properly with no error?
>>
>> node('master') {
>> Properties properties = new Properties()
>> properties.load(new 
>> FileInputStream("${env.JENKINS_HOME}\\properties\\${file}"))
>>
>> for(Entry en : properties.entrySet()) {
>> System.out.println(en);
>> }
>>
>> /*for(Object k:properties.keySet()) {
>> String key = (String) k;
>> } */ // same error
>>  /*   Enumeration en = properties.propertyNames();
>> while (en.hasMoreElements()) {
>> String key = (String) en.nextElement();
>> System.out.println(key + " -- " + properties.getProperty(key));
>> }*/ // same error
>> }
>>
>>
>>
>>
>> java.io.NotSerializableException: java.util.Hashtable$Entry
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
>>  at 
>> org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
>>  at 
>> org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
>>  at 
>> org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
>>  at 
>> org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
>>  at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>  at java.util.HashMap.internalWriteEntries(Unknown Source)
>>  at java.util.HashMap.writeObject(Unknown Source)
>>  at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>  at java.lang.reflect.Method.invoke(Unknown Source)
>>  at 
>> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>>  at 
>> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>>  at 
>> org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
>>  at 
>> org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
>>  at 
>> org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
>>  at 
>> org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
>>  at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>  at java.util.TreeMap.writeObject(Unknown Source)
>>  at sun.reflect.GeneratedMethodAccessor424.invoke(Unknown Source)
>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sou

pipeline - keep build forever

2016-10-13 Thread roman . pickl
Hi there,

Is there any possibility to keep a build forever programmatically after 
submitting an input approval step?

Best,
Roman

-- 
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/e274d5a7-60b8-4bed-825d-47132b06fd6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile: How to iterate a properties file without having an "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread Sverre Moe
Put it in a method annotated with @NonCPS

torsdag 13. oktober 2016 11.18.12 UTC+2 skrev eid badr følgende:
>
> Hi
>
> in jenkinsFile.groovy I want to iterate over a properties file, but I 
> always get an error
> how can it be done properly with no error?
>
> node('master') {
> Properties properties = new Properties()
> properties.load(new 
> FileInputStream("${env.JENKINS_HOME}\\properties\\${file}"))
>
> for(Entry en : properties.entrySet()) {
> System.out.println(en);
> }
>
> /*for(Object k:properties.keySet()) {
> String key = (String) k;
> } */ // same error
>  /*   Enumeration en = properties.propertyNames();
> while (en.hasMoreElements()) {
> String key = (String) en.nextElement();
> System.out.println(key + " -- " + properties.getProperty(key));
> }*/ // same error
> }
>
>
>
>
> java.io.NotSerializableException: java.util.Hashtable$Entry
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
>   at 
> org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
>   at 
> org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
>   at 
> org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
>   at 
> org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
>   at java.io.ObjectOutputStream.writeObject(Unknown Source)
>   at java.util.HashMap.internalWriteEntries(Unknown Source)
>   at java.util.HashMap.writeObject(Unknown Source)
>   at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
>   at 
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
>   at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
>   at 
> org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
>   at 
> org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
>   at 
> org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
>   at 
> org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
>   at java.io.ObjectOutputStream.writeObject(Unknown Source)
>   at java.util.TreeMap.writeObject(Unknown Source)
>   at sun.reflect.GeneratedMethodAccessor424.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
>   at 
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableCla

Jenkinsfile: How to iterate a properties file without having an "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread eid badr
Hi

in jenkinsFile.groovy I want to iterate over a properties file, but I 
always get an error
how can it be done properly with no error?

node('master') {
Properties properties = new Properties()
properties.load(new 
FileInputStream("${env.JENKINS_HOME}\\properties\\${file}"))

for(Entry en : properties.entrySet()) {
System.out.println(en);
}

/*for(Object k:properties.keySet()) {
String key = (String) k;
} */ // same error
 /*   Enumeration en = properties.propertyNames();
while (en.hasMoreElements()) {
String key = (String) en.nextElement();
System.out.println(key + " -- " + properties.getProperty(key));
}*/ // same error
}




java.io.NotSerializableException: java.util.Hashtable$Entry
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.internalWriteEntries(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.TreeMap.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor424.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
   

Jenkinsfile: How to iterate a properties file without having a "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread eid badr
Hi

in my jenkinsFile I want to iterate over a properties file, but I always 
get an error
how can it be done properly with no error?

node('master') {
Properties properties = new Properties()
properties.load(new 
FileInputStream("${env.JENKINS_HOME}\\properties\\${file}"))

for(Entry en : properties.entrySet()) {
System.out.println(en);
}

/*for(Object k:properties.keySet()) {
String key = (String) k;
} */ // same error
 /*   Enumeration en = properties.propertyNames();
while (en.hasMoreElements()) {
String key = (String) en.nextElement();
System.out.println(key + " -- " + properties.getProperty(key));
}*/ // same error
}




java.io.NotSerializableException: java.util.Hashtable$Entry
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.internalWriteEntries(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.TreeMap.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor424.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 

Re: problem in 1 project and 2 either files need to send if changes detected

2016-10-13 Thread Axl Kersillian
i even tried 
Root Build script: ${workspace}/resource/ or ${workspace}/web/
it won't work because both build.gradle of resource and web codes are to 
build commons, repository, service.

-- 
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/4017fc41-0c53-4af9-b527-51f945124aa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable To execute SCons script in jenkins

2016-10-13 Thread Umamaheswari G
Hi,

I have tried removing the build step in  my project->configure->Build.

Now the console output is

Started by user Administrator 

Building in workspace /Users/Shared/Jenkins/Home/workspace/TestProject
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url
https://github.com/guma-005/JenkinsDemo.git # timeout=10
Fetching upstream changes from https://github.com/guma-005/JenkinsDemo.git
 > git --version # timeout=10
 > git fetch --tags --progress
https://github.com/guma-005/JenkinsDemo.git
+refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 79d8e3a80aa4b114f72ad383f985028838f26ab0
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 79d8e3a80aa4b114f72ad383f985028838f26ab0
 > git rev-list 79d8e3a80aa4b114f72ad383f985028838f26ab0 # timeout=10
Finished: SUCCESS


(Sorry I created another job with same code and everything)


Project Structure in Git :
   — SConstruct
   — Demo
   —  Files.cpp
   —  Files.hpp

Environment variables
  List of variables
  Name
  Value

Delete







  Home directory /Users/Shared/Jenkins/Home [image: Help for feature:
Home directory] 
  Workspace Root Directory  [image: Help for feature: Workspace Root
Directory] 
  Build Record Root Directory  [image: Help for feature: Build Record
Root Directory] 


It seems it not even running Scons script in my workspace. If so why
it return SUCCESS?
Thanks in advance.


On Wed, Oct 12, 2016 at 9:14 PM, Rachel 
wrote:

> Hi Uma,
>
> I've used those steps for creating new environment variables in Jenkins,
> but not for overwriting PATH, althouth you might use:
>
> Value = $PATH:/adding/new/path/
>
> in order not to lose previous value of PATH. Anyway, if scons is located
> in /usr/local/bin (as you indicated), Jenkins would have to find it,
> because that path is usually into PATH variable.
>
> From your output, I guess you're using SCons Plugin. Although it's not
> necessary in this case, try to configure "SCons Executable Path" in "Global
> Configuration" (https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=
> 42470444) with /usr/local/bin (without /scons).
>
> If problem persists, maybe it's a bug of SCons Plugin. Try to execute
> SCons through:
>
>- Add build step > Execute shell
>
> Tell us if you get it.
>
> Best regards,
> Rachel
>
>
> El miércoles, 12 de octubre de 2016, 18:29:50 (UTC+2), Uma escribió:
>>
>> Hi,
>> Thanks for the reply
>> Where can I set env variable for scons path?
>>
>> I have tried setting  Jenkins -> Manage Jetkins -> configure System ->
>> Global Properties -> Environment Variable :
>>   Name = PATH
>>   Value = /usr/local/bin/scons
>>
>> It does not seems to be work.
>>
>> regards
>>
>> On Wed, Oct 12, 2016 at 6:15 PM, Victor Martinez 
>> wrote:
>>
>>> Hi,
>>> Apparently scons is not part of your env variable path.
>>>
>>> Run 'which scons' and 'echo $PATH' then you will figure out what env
>>> varianles were loaded when running that job.
>>>
>>> Cheers
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Jenkins Users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/jenkinsci-users/Ofs-TV4s10Y/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/5f3616e9-f013-41f7-a237-95421034ef24%
>>> 40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/Ofs-TV4s10Y/unsubscribe.
> To unsubscribe from this group and all its topics, 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/f9bacef9-916d-4dcc-81fc-d66ebf6031b6%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...@go

problem in 1 project and 2 either files need to send if changes detected

2016-10-13 Thread Axl Kersillian
Hello guys,

I'll explain first,
I have a project name testProj.
Under workspace I have commons, repository, service, resource, web.
The files I need to deploys are resource.jar and web.jar but both resource 
and web also depends on the commons, repository and service.

Source Code Management:
using Git and the repository URL is ssh://
gitlinode.com:2122/home/git/testProj/ 

Branch Specifier: */master

Build trigger
Poll SCM H/1 * * * * (to run every minute)

build
Invoke Gradle
  Gradle Version: Gradle
  Tasks: build -x test
  Build File: build.gradle

This is the problem I encounter:
They told me when jenkins detect changes in web or resource, the jenkins 
should automatically build and deploy either resource.jar or web.jar to the 
server and run..

What I did, but wrong:
1. using SSH2 Easy Plugin to send both file but they said is wrong, because 
it's related to tester and they will be interrupted, it's supposedly only 
the changes will be send.
2. I tried create 2 different project for resource and web, but when 
jenkins detect a file changes in commons, repository and service it will 
automatically build both project.

What should I do? is there a plugin that can help me?

-- 
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/3cb6670f-edc2-4fd0-b884-f744f20881a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


problem in 1 project and 2 files have to deploy when changes detected

2016-10-13 Thread Axl Kersillian
Hello guys,

I'll explain first,
I have a project name testProj.
Under workspace I have commons, repository, service, resource, web.
The files I need to deploys are resource.jar and web.jar but both resource 
and web also depends on the commons, repository and service.

Source Code Management:
using Git and the repository URL is 
ssh://g...@linode.com:2122/home/git/testProj/
Branch Specifier: */master

Build trigger
Poll SCM H/1 * * * * (to run every minute)

build
Invoke Gradle
  Gradle Version: Gradle
  Tasks: build -x test
  Build File: build.gradle

This is the problem I encounter:
They told me when jenkins detect changes in web or resource, the jenkins 
should automatically build and deploy either resource.jar or web.jar to the 
server and run..

What I did, but wrong:
1. using SSH2 Easy Plugin to send both file but they said is wrong, because 
it's related to tester and they will be interrupted, it's supposedly only 
the changes will be send.
2. I tried create 2 different project for resource and web, but when 
jenkins detect a file changes in commons, repository and service it will 
automatically build both project.

What should I do? is there a plugin that can help me?

-- 
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/df8c205c-1809-4d50-818d-5d0cc7f26c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Uninstall jenkins and its dependencies from Red Hat Linux Enterprise Edition(5.8)

2016-10-13 Thread chinmoy padhi
Hi Google Users,

I am trying to uninstall jenkins using rpm -e commands, but it is not at 
all removing all the dependencies.
So how to uninstall, so that all dependencies can be removed? Currently I 
am trying to do the same on Red Hat Linux Enterprise Edition (5.8)

Appreciate your help

Thanks,
Chinmoy

-- 
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/265c2614-18bc-45cd-a65c-bae2a72a5026%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to write log file error I am getting in Jenkins for build.xml

2016-10-13 Thread chinmoy padhi
I tried to check the owner and permission of jobs(jenkins for both 
directory and contents) directory and workspace(jrootsfor both directory 
and contents) directory

Even I changed the workspace to jenkins from root , also gave chmod 777 * 
to all but still getting the error.

On Wednesday, 12 October 2016 20:23:45 UTC+5:30, Björn Pedersen wrote:
>
> Hi,
>
> probably you need to check the access permission on your workspace (and 
> contents). 
> Jenkins normally will run the jobs as an other user as you used to do your 
> manual test.
>
> Björn
>
> Am Mittwoch, 12. Oktober 2016 14:53:59 UTC+2 schrieb chinmoy padhi:
>>
>> Hi Google Users,
>>
>> Need a help on the mentioned subject line.
>> I have installed the jenkins using *"rpm -ivh"* command 
>> Currently I am running the Jenkins on
>> 1. Linux RHEL 5.8 (32-bit)
>> 2. java version "1.7.0_79"
>> 3. Master mode only
>> 4. Jenkins Version 1.651.3
>>
>> Steps to Execute
>> --
>> 1. I am trying to run the junit test cases from *build.xml* using 
>> Ant(Apache Ant(TM) version 1.9.7 compiled on April 9 2016)
>> 2. Same project I am running from Windows 7 for easy debugging using 
>> Eclipse for build.xml and other class files.
>> 3. I copied the Windows project to Linux path and created a job and 
>> workspace in* /var/lib/jenkins/*
>> 4. Run the build from Jenkins which required desired configuration and it 
>> run perfectly.
>> 5. Later I compiled the AllTest.java file from Windows and copied the 
>> .java and .class file from windows and copied the respective files to* 
>> /var/lib/jenkins/workspace/project/src *folder and .class file to* 
>> /var/lib/jenkins/workspace/project/target/class* folder.
>> 6. When I build the project again from Jenkins it started to throw error 
>> after all my test cases got executed.
>> 7. Every time its pointing to Junit task in the build.xml file, I tried 
>> to google but didn't get the exact answers.
>> 8. When I didn't find any resolution I have removed the jenkins rpm using 
>> *"rpm 
>> -e"* command. But it didn't removed the jenkins folder from* 
>> /var/lib/jenkins *
>> 9. Re-installed the same rpm and freshly created new freestyle project 
>> but it didn't resolve the same error and again after running all the test 
>> cases it throws the error.
>>
>> Appreciate your help. Please find the attached build.xml
>>
>> Thanks,
>> Chinmoy
>>
>

-- 
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/42cc159f-f4e2-476f-8d3d-3156d862a357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins all changes number

2016-10-13 Thread Axl Kersillian
Thanks for the reply guys. and thanks for explanation. i thought it was an 
error on jenkins. i'm still new here and don't know what kind of scm there 
using.. what i do know is there using git and gradle to build the project.

-- 
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/6a628752-4d05-4df1-8c67-2ad478c3eaa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.