Re: Java heap space

2018-02-10 Thread Ullrich Hafner
These are too many warnings for the current architecture of the plug-in, see 
https://issues.jenkins-ci.org/browse/JENKINS-1960 
.

Once the refactoring to the new analysis-model is finished, I think it would be 
possible to add an option to just count the number of warnings rather then 
creating and persisting them.

BTW: what is the reason that you are interested in tracking so many warnings?

> Am 09.02.2018 um 12:39 schrieb Consult Hyperion * :
> 
> At the last count:
> 
> 42938 Warning(s)
> 
> I did wonder if that was just too many and it was overloading something.  Is 
> that the problem?
> 
> 
> On Thursday, February 8, 2018 at 5:16:52 PM UTC, Ullrich Hafner wrote:
> How many warnings do you have?
> 
>> Am 08.02.2018 um 18:01 schrieb Consult Hyperion * >:
>> 
>> I keep getting this on a job - the worker is fine with other jobs:
>> 
>> [WARNINGS] Parsing warnings in console log with parser MSBuild
>> Skipping warnings blame since Git is the only supported SCM up to now.%n
>> FATAL: Java heap space
>> java.lang.OutOfMemoryError: Java heap space
>> at java.util.HashMap.resize(Unknown Source)
>> at java.util.HashMap.putVal(Unknown Source)
>> at java.util.HashMap.put(Unknown Source)
>> at java.util.HashSet.add(Unknown Source)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addCategory(AnnotationContainer.java:285)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.updateMappings(AnnotationContainer.java:250)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotation(AnnotationContainer.java:366)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addAuthorName(AnnotationContainer.java:393)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.updateMappings(AnnotationContainer.java:267)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotation(AnnotationContainer.java:366)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addModule(AnnotationContainer.java:319)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.updateMappings(AnnotationContainer.java:256)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotation(AnnotationContainer.java:366)
>> at 
>> hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotations(AnnotationContainer.java:376)
>> at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:307)
>> at hudson.plugins.analysis.core.BuildResult.(BuildResult.java:222)
>> at hudson.plugins.warnings.WarningsResult.(WarningsResult.java:52)
>> at hudson.plugins.warnings.WarningsResult.(WarningsResult.java:46)
>> at 
>> hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:434)
>> at 
>> hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:378)
>> at 
>> hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:312)
>> at 
>> hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:69)
>> at 
>> hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:298)
>> at 
>> hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
>> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
>> at hudson.model.Build$BuildExecution.post2(Build.java:186)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
>> at hudson.model.Run.execute(Run.java:1749)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at hudson.model.ResourceController.execute(ResourceController.java:97)
>> 
>> I've tried increasing the heap space (I think) with -Xmx2048M on the worker 
>> but it's not helping.  I'm wondering if the problem might be on the server 
>> instead?  It seems to start parsing warnings, get some of the way through 
>> then fall over.  Any useful suggestions gratefully received.
>> 
>> Thanks.
>> 
>> --
>> 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/f079111d-0efb-4cff-a304-b4b6db3252d8%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, sen

Shared library groovy code not executing on slave

2018-02-10 Thread Jasmitha M
I've written shared library to check out code from git using git block and echo 
ip address of node using shell command. It is being executed on slave. Git 
block seems to be executed successfully. Code is getting cloned on slave. But 
shell command gives master ip rather than slave ip. Could anyone say why it is 
not giving slave ip? 

-- 
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/18e79617-b30a-47ff-84ff-a5d5c24eadbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to run sequential jobs on the same Slave

2018-02-10 Thread Alex 2013
My requirement is as below: 
1) Two jobs A, B 
2) After A is succeed, we will run B 
3) A is the preparation step for B so that we would like to run B on the 
same Slave/node 
4) We would like to have a manage job for A/B, once A or B failed, the 
manage job will fail, only when both A/B succeed, the manage job will 
success 

I tried a few ways but no luck. 
I know that we can use "trigger/call other project" to make sure the 2nd 
jib being triggered on the same node, but then first job will return and we 
can't monitor the result for the 2nd job. 

If I choose "block" when trigger other project, I can wait until the 2nd 
job finish, but they can't run on the same slave/node 

I also tried to create first job as a multijob project and add 2nd job in 
the multijob project, but since the 1st job didn't exit , the 2nd one can't 
start due to executor being used. 

Any suggestions/solution here? Thanks 

-- 
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/9a2b37d9-afa4-4ea0-b3ce-3c49e098c18f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to run sequential jobs on the same Slave

2018-02-10 Thread Alex 2013
My requirement is as below: 
1) Two jobs A, B 
2) After A is succeed, we will run B 
3) A is the preparation step for B so that we would like to run B on the 
same Slave/node 
4) We would like to have a manage job for A/B, once A or B failed, the 
manage job will fail, only when both A/B succeed, the manage job will 
success 

I tried a few ways but no luck. 
I know that we can use "trigger/call other project" to make sure the 2nd 
jib being triggered on the same node, but then first job will return and we 
can't monitor the result for the 2nd job. 

If I choose "block" when trigger other project, I can wait until the 2nd 
job finish, but they can't run on the same slave/node 

I also tried to create first job as a multijob project and add 2nd job in 
the multijob project, but since the 1st job didn't exit , the 2nd one can't 
start due to executor being used. 

Any suggestions/solution here? Thanks 

-- 
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/de820aa0-7151-4fce-8b29-38e804958a99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to run sequential jobs on the same Slave

2018-02-10 Thread Mark Waite
If the purpose of job A is to prepare for job B, wouldn't it be better to
combine them into a single Freestyle job or combine them into a single
Pipeline job?

As a different way of asking the question, what benefits are you gaining by
keeping A and B as separate jobs?

Mark Waite

On Sat, Feb 10, 2018 at 1:18 PM Alex 2013  wrote:

> My requirement is as below:
> 1) Two jobs A, B
> 2) After A is succeed, we will run B
> 3) A is the preparation step for B so that we would like to run B on the
> same Slave/node
> 4) We would like to have a manage job for A/B, once A or B failed, the
> manage job will fail, only when both A/B succeed, the manage job will
> success
>
> I tried a few ways but no luck.
> I know that we can use "trigger/call other project" to make sure the 2nd
> jib being triggered on the same node, but then first job will return and we
> can't monitor the result for the 2nd job.
>
> If I choose "block" when trigger other project, I can wait until the 2nd
> job finish, but they can't run on the same slave/node
>
> I also tried to create first job as a multijob project and add 2nd job in
> the multijob project, but since the 1st job didn't exit , the 2nd one can't
> start due to executor being used.
>
> Any suggestions/solution here? Thanks
>
> --
> 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/de820aa0-7151-4fce-8b29-38e804958a99%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/CAO49JtEsejb1hk7pDcPvrAfyozN0JbpJ_FjbHjn9NcR7To3VJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shared library groovy code not executing on slave

2018-02-10 Thread niristotle okram
I kind of remember this scenario... can you
Share the sample snippet on what you are doing?

On Sat, Feb 10, 2018 at 11:00 AM Jasmitha M  wrote:

> I've written shared library to check out code from git using git block and
> echo ip address of node using shell command. It is being executed on slave.
> Git block seems to be executed successfully. Code is getting cloned on
> slave. But shell command gives master ip rather than slave ip. Could anyone
> say why it is not giving slave ip?
>
> --
> 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/18e79617-b30a-47ff-84ff-a5d5c24eadbe%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from mobile device, excuse typos if any.

-- 
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/CAPzcO4jqs5fEoyN26Cp0STv7NM560gydhHNxRdv30Mcp%3D9b1cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to run sequential jobs on the same Slave

2018-02-10 Thread Alex 2013
for example, job A is for build/deploy, job B is for testing.
they may be owned by different teams and we want to make it easy to 
differentiate possible error owners for the whole process

On Saturday, February 10, 2018 at 12:18:18 PM UTC-8, Alex 2013 wrote:
>
> My requirement is as below: 
> 1) Two jobs A, B 
> 2) After A is succeed, we will run B 
> 3) A is the preparation step for B so that we would like to run B on the 
> same Slave/node 
> 4) We would like to have a manage job for A/B, once A or B failed, the 
> manage job will fail, only when both A/B succeed, the manage job will 
> success 
>
> I tried a few ways but no luck. 
> I know that we can use "trigger/call other project" to make sure the 2nd 
> jib being triggered on the same node, but then first job will return and we 
> can't monitor the result for the 2nd job. 
>
> If I choose "block" when trigger other project, I can wait until the 2nd 
> job finish, but they can't run on the same slave/node 
>
> I also tried to create first job as a multijob project and add 2nd job in 
> the multijob project, but since the 1st job didn't exit , the 2nd one can't 
> start due to executor being used. 
>
> Any suggestions/solution here? Thanks 
>

-- 
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/f9f94d95-94bb-4af8-8d89-095172536e3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to run sequential jobs on the same Slave

2018-02-10 Thread Mark Waite
Separating jobs tends to leave the job definition outside the control of
the team, since most multi-job configurations are using Freestyle jobs.
Many teams have found that they prefer to store the job definition with the
rest of the source code as a Pipeline job.  When the team needs to resolve
a problem with the job definition, they edit the job definition in the
source code, then the next build will use that updated job definition.

Pipeline allows multiple stages for those cases where teams need to detect
if a stage they own is the cause of a test failure or a build failure.

I've spent a long time bending Freestyle jobs to fit my specific needs, and
have found it liberating to use Pipeline instead.  Pipeline makes job
refinement faster and more directly associated with the source code being
built.

Mark Waite

On Sat, Feb 10, 2018 at 1:48 PM Alex 2013  wrote:

> for example, job A is for build/deploy, job B is for testing.
> they may be owned by different teams and we want to make it easy to
> differentiate possible error owners for the whole process
>
>
> On Saturday, February 10, 2018 at 12:18:18 PM UTC-8, Alex 2013 wrote:
>>
>> My requirement is as below:
>> 1) Two jobs A, B
>> 2) After A is succeed, we will run B
>> 3) A is the preparation step for B so that we would like to run B on the
>> same Slave/node
>> 4) We would like to have a manage job for A/B, once A or B failed, the
>> manage job will fail, only when both A/B succeed, the manage job will
>> success
>>
>> I tried a few ways but no luck.
>> I know that we can use "trigger/call other project" to make sure the 2nd
>> jib being triggered on the same node, but then first job will return and we
>> can't monitor the result for the 2nd job.
>>
>> If I choose "block" when trigger other project, I can wait until the 2nd
>> job finish, but they can't run on the same slave/node
>>
>> I also tried to create first job as a multijob project and add 2nd job in
>> the multijob project, but since the 1st job didn't exit , the 2nd one can't
>> start due to executor being used.
>>
>> Any suggestions/solution here? Thanks
>>
> --
> 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/f9f94d95-94bb-4af8-8d89-095172536e3a%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/CAO49JtHc0xXUMTkN56oSrmDx6%3DOgN35PwHyak_cb8gpnz9L_CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.