Getting java.lang.OutOfMemoryError: Java heap space

2016-07-11 Thread Prakhash Sivakumar
Hi all,
I'm using Jenkins which is deployed on tomcat server. I'm getting the below 
error when running a task in Jenkins. I have searched for the 
possibilities which are mentioned on [1] , but I couldn't find any Jenkins 
related configuration files mentioned. Please provide suggestions to handle 
this issue


[1] 
https://support.cloudbees.com/hc/en-us/articles/209715698-How-to-add-Java-arguments-to-Jenkins

45554 [ZAP-ProxyThread-5] ERROR org.zaproxy.zap.ZAP$UncaughtExceptionLogger  - 
Exception in thread "ZAP-ProxyThread-5"
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at 
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at 
java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at 
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
at java.lang.StringBuilder.append(StringBuilder.java:190)
at 
com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:172)
at 
com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:157)
at 
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.readFromAsString(AbstractMessageReaderWriterProvider.java:114)
at 
com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:73)
at 
com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:58)
at 
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:553)
at 
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.JiraRestClient.invokeGetMethod(JiraRestClient.java:43)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.XmlDomParser.getAllOpenIssues(XmlDomParser.java:327)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.XmlDomParser.parseXmlDoc(XmlDomParser.java:57)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.ExtensionJiraIssueCreater.createJiraIssues(ExtensionJiraIssueCreater.java:215)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.JiraIssueCreaterAPI.handleApiAction(JiraIssueCreaterAPI.java:60)
at org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source)
at org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown 
Source)
at org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)



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/965d5774-d92e-437f-a9a3-ac00346bcd30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to make SCP plugin display "Copy Console output" option

2016-07-11 Thread Gang Xu
Hi all,

My OS is CentOS 7 and installed with Jenkins 1.651 stable version

I install SCP publish plugin 1.8 and configured it in Jenkins System 
Administration.

After that, I created job and try to configure post-build with "Publish 
Artificacts to SCP Repo"

But I can not find "Copy Console Log" option except "Keep Hierarchy" option.
Could you anyone guide me which I missed?

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/c73f8ab5-955b-4aae-9a8c-c8ff4fe0fecd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins windows service restarting by itself

2016-07-11 Thread Baptiste Mathus
Please do not cross post. This post should be on the users list only.

Also, ML protip: your emails *are* read.
So, if you don't get an answer, and would like someone to spend her/his
free time helping you, it's probably better to show at least you're doing
your part of the work: digging on it (protip #2, as the one asking for
help, you're expected to do the biggest part ;-)).
So, a better way to bump a request is at least to show what you did in the
meantime. Shows you're spending time on it too, and helps narrowing
hypothesis.

My 2 cents

>
>
2016-07-09 17:17 GMT+02:00 SACHIN V :

> Hi Team,
>
> Whenever I run UI automation tests, Jenkins windows service is restarting
> by itself causing slaves to go offline and tests failing. Please let me
> know if someone has faced similar issue and how could you overcome the
> problem.
>
> Jenkins version being used is *1.651.3*
>
> Regards,
> Sachin
>
>
>
>
> --
> 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/a227e945-8390-47f3-b223-ad4791131746%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/CANWgJS5fxMVbhQKLEGdPqRgcjOYeXtVc0jm3yWOxkX6t7Q05aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom metrics

2016-07-11 Thread Andrew Melo


On Friday, June 10, 2016 at 5:42:14 PM UTC-5, Matt Stave wrote:
>
> You can add build parameters while the build's in flight, with 
> [jenkinsURL]/cli/command/set-build-parameter
> You should be able to refer to those in subsequent builds
>
> See also https://wiki.jenkins-ci.org/display/JENKINS/Plot+Plugin  (though 
> I've never used it)
>

This works great! Thanks.
 

>
> --- Matt
>
> On Sunday, May 22, 2016 at 9:22:27 PM UTC-7, Andrew Melo wrote:
>>
>> Hello, 
>>
>> I had two short questions about what was possible with pipeline jobs: 
>>
>> 1) Suppose I want to track some arbitrary values between builds and 
>> fail if they have decreased. Is there a way to stash integers/values 
>> between builds? For example, let's say I want to enforce that the lint 
>> of the codebase gets better with each commit or github pull request. 
>> Is there a step/command that could be used within groovy to extract 
>> the previous value to make the comparison? Or, am I stuck basically 
>> manually copying results to "magic" places on the master that later 
>> builds can suck down. 
>>
>> 2) Let's suppose that I want to publish a trend of these values as a 
>> graph on the main job page. I know there's the HTML publisher that can 
>> publish arbitrary pages, but that's buried another click down. Is 
>> there a way to have custom charts/HTML show up on the job/build pages 
>> themselves? 
>>
>> Thanks! 
>> Andrew 
>>
>> -- 
>> -- 
>> Andrew Melo 
>>
>

-- 
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/a16c28fc-3037-4e10-b9de-8643e486d35c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


New NPE with ghprb?

2016-07-11 Thread Andrew Melo
Hello all,

I have a repository that is configured to have GH send webhooks for
PRs, which trigger builds of a multibranch configuration. The most
recent updates I pulled causes the following to fire after the job
runs:

Jul 11, 2016 8:31:59 PM SEVERE
org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener
returnEnvironmentVars
Unable to connect to GitHub repo
java.lang.NullPointerException
at org.kohsuke.github.GitHub.getRepository(GitHub.java:337)
at 
org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener.returnEnvironmentVars(GhprbUpstreamStatusListener.java:52)
at 
org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener.onCompleted(GhprbUpstreamStatusListener.java:115)
at 
org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener.onCompleted(GhprbUpstreamStatusListener.java:33)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
at hudson.model.Run.execute(Run.java:1765)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)

 this causes the status on GH to never get updated, which prevents
any merging of code.

What can be done to get more information about this? Everything else
works up until that point, so I assume there's not a connectivity
problem between my host and GH, so I'm unsure of where to start
searching.

Thanks!
Andrew

-- 
--
Andrew Melo

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


Re: is this a part of JENKINS-17587 bug impacting the pipeline job type?

2016-07-11 Thread niristotle okram
never mind, i got it fixed.

On Mon, Jul 11, 2016 at 12:53 PM, niristotle okram 
wrote:

> Declaring the node section in the pipeline workflow script as below
>
>
> node(‘"PHG123" || "PSJ456"’) {
>
>  //some code block
>
>  }
>
>
> Also like this
>
>
> node(‘PHG123 && PSJ456’ )
>
>  //some code block
>
>  }
>
> Both failed to respect the logical operator. jenkins log says :
>
>
> There are no nodes with the label ‘PHG123" || "PSJ456’
>
> There are no nodes with the label ‘PHG123&’
>
>
>
>
>
>
>
> --
> Regards
> nirish okram
>



-- 
Regards
nirish okram

-- 
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/CAPzcO4j0ccjuqCJptRenB%2BFmfm-F%2B%3DaQ2T1_EPQR2K%3DKkdN37g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins windows service restarting by itself

2016-07-11 Thread SACHIN V
Hi All,

Did someone face similar issue? Please let me know how to overcome this 
problem.

On Saturday, July 9, 2016 at 8:47:10 PM UTC+5:30, SACHIN V wrote:
>
> Hi Team,
>
> Whenever I run UI automation tests, Jenkins windows service is restarting 
> by itself causing slaves to go offline and tests failing. Please let me 
> know if someone has faced similar issue and how could you overcome the 
> problem.
>
> Jenkins version being used is *1.651.3*
>
> Regards,
> Sachin
>
>
>
>
>

-- 
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/068b80c3-2520-4c75-85a1-d25ec3e2390a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


is this a part of JENKINS-17587 bug impacting the pipeline job type?

2016-07-11 Thread niristotle okram
Declaring the node section in the pipeline workflow script as below


node(‘"PHG123" || "PSJ456"’) {

 //some code block

 }


Also like this


node(‘PHG123 && PSJ456’ )

 //some code block

 }

Both failed to respect the logical operator. jenkins log says :


There are no nodes with the label ‘PHG123" || "PSJ456’

There are no nodes with the label ‘PHG123&’







-- 
Regards
nirish okram

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


Re: Access workspace of other project

2016-07-11 Thread jerome
Hi again,
I'm trying that pipeline plugin (did not touched it yet) just to give 
myself an idea of what it look like. I'm facing a weird display problem I 
guess, because the example and walkthrough are talking about Script 
textArea, but I don't see any into my config web page??? See what I see 
below. I checked the page code, the textArea is inside the div 
workflow-editor-wrapper with style display: none; Is that a known bug with 
Jenkins 2.8? Even after save the project pipeline and configure it again 
make this behavior, so I need to go edit the html CSS property manually to 
see the script zone.





-- 
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/94fa6e28-0c7d-4cf6-9884-0a0f2c80b152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTTP ERROR 403 Problem accessing /view/stage/job/testscripts/1541/logtext/testscript.html. Reason: No valid crumb was included in request

2016-07-11 Thread Kaushal Shriyan


On Monday, 11 July 2016 15:37:22 UTC+5:30, Kaushal Shriyan wrote:
>
>
>
> On Tuesday, 5 July 2016 21:03:25 UTC+5:30, Kaushal Shriyan wrote:
>>
>> Hi,
>>
>> I am finding the below details while the build job in the Console Output. 
>> I am running Jenkins version 1.651.3. Please find the below details
>>
>> WARNING: No valid crumb was included in request for 
>> /view/stage/job/testscripts/1541/logtext/testscript.html. Returning 403.
>> Jul 05, 2016 7:56:30 PM hudson.security.csrf.CrumbFilter doFilter
>> WARNING: No valid crumb was included in request for 
>> /view/stage/job/testscripts/1541/logtext/testscript.html. Returning 403.
>> Jul 05, 2016 7:57:12 PM hudson.security.csrf.CrumbFilter doFilter
>> WARNING: No valid crumb was included in request for 
>> /view/stage/job/testscripts/1541/logtext/testscript.html. Returning 403.
>> Jul 05, 2016 7:57:33 PM hudson.security.csrf.CrumbFilter doFilter
>>
>> Any help will be highly appreciable.
>>
>> Regards,
>>
>> Kaushal
>>
>
> Hi,
>
> I will appreciate if somebody can reply to my post to this mailing list. 
> Please let me know if you want me to share jenkins (version 
> 1.651.3) configuration details.
>
> Regards,
>
> Kaushal
>

Hi,

Further to the earlier email, this issue is seen only in *Console Output* 
only, i can see it fine in View as plain text. 
Any help will be highly appreciated.

Regards,

Kaushal


-- 
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/72bd1de0-2d26-4b33-b0e6-009864f34f37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Access workspace of other project

2016-07-11 Thread 'Björn Pedersen' via Jenkins Users
For your use case using a pipeline(workflow) job with it's stages feature 
seems an option.

Am Montag, 11. Juli 2016 17:26:35 UTC+2 schrieb Jérôme Godbout:
>
> Hi Björn Pedersen,
>
> Wouldn't that be a huge waste of disk I/O just to run a small script and 
> output some data. I would rather not copy over 6Go of project data (without 
> the SCM, with SCM this copy will be a huge waste and burn hard drive for 
> nothing).
>
> I do it into another project only to have separated build result for each 
> part:
>
>- compiling 
>- Qml script inspection
>- Doxygen generation
>- UnitTest
>- Smoke test
>- Benchmark tests
>
> They are cumulative for the same workspace but they have their own results 
> (I would like avoid 6 copy for nothing). I allow only starting the 
> Compiling one, the rest of them are launch after. The Compiling is lock 
> down until the rest complete to avoid that volatile problem. I currently 
> only have a single build machine (so master/slave is not an issue yet but 
> will one day I guess.
>
> Maybe I do it wrong, but that give us a good idea of what is wrong and 
> failing the Qml inspection is not as vital as a compilation failure, so a 
> warning into Qml inspection or Doxygen generation is not as bad as warning 
> into compiling.
>
> Jerome
>
>
> On Mon, Jul 11, 2016 at 10:38 AM, 'Björn Pedersen' via Jenkins Users <
> jenkins...@googlegroups.com > wrote:
>
>> Hi,
>>
>> as the workspace is a volatile object in the general case,  you should 
>> consider 
>> https://wiki.jenkins-ci.org/display/JENKINS/Clone+Workspace+SCM+Plugin. 
>>
>> Björn
>>
>>
>> Am Montag, 11. Juli 2016 16:16:55 UTC+2 schrieb jer...@bodycad.com:
>>>
>>> Hi,
>>> I have a project that run some code analysis after the build. I make 
>>> them into another project that is trigger after the other one. I'm looking 
>>> to set the Working diirectory with environment variables.
>>>
>>> Current setup have a custom (under Windows): 
>>> *Workspace Root Directory* = d:/JenkinsWorkspace/${ITEM_FULL_NAME}
>>>
>>> My main project use the default workspace (let's call it AA).
>>> My second project (do the post build analysis under it's own project) 
>>> should use the AA project workspace.
>>>
>>> Is there any environment variable to use the default access Workspace 
>>> Root Directory without the ${ITEM_FULL_NAME} ?
>>> Or even better have a way to use the same workspace as another project?
>>>
>>> Currently I use the full path but this is painfull when moving to other 
>>> machine, you don't only have to change the Jenkins config but also the 
>>> project and this is bad.
>>>
>>> x *Use custom workspace*
>>> *Directory* = d:/JenkinsWorkspace/AA
>>>
>>> I would rather have something like:
>>> *Directory* =  ${DEFAULT_WORKSPACE}/../AA
>>> or even better:
>>> *Directory* = ${ALL_WORKSPACE}["AA"]
>>>
>>> Thanks,
>>> Jerome
>>>
>> -- 
>> 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/QoQE2ULapro/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/392bf44a-0ad7-4459-9f39-d64c5cc7add2%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/c7c8684f-0799-4560-afe3-8656e3ef37fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


configure and flexible publish

2016-07-11 Thread Mark Cariddi
 Hi,
This is my first post to this list, so please bear with me.First of 
all please understand that I am working in a constrained environment when 
it comes to updating plugins and the version of jenkins I am using, so I am 
stuck with what I have.  Anyway here is my problem.   I have a job that 
runs tests and these tests, depending on how they were build, can generate 
Bullseye coverage numbers.  In the job I created, I use clover to 
publish the bullseye numbers, since I was relatively new to jenkins and 
groovy when I started working on the code I used the following configure 
block to setup clover.

publishers {

configure {
def clover = it / 'publishers' / 
'hudson.plugins.clover.CloverPublisher' {
cloverReportDir('\$WORKSPACE/safe/BULLSEYE_HTML')
cloverReportFileName('clover.xml')
}
clover / 'healthyTarget' {
methodCoverage(60)
conditionalCoverage(40)
statementCoverage(-1)
}
clover / 'unhealthyTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
clover / 'failingTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
} // configure
}  // publishers

I want to use flexiblepublish however I found while I can set up a flexible 
publish via the gui, I cannot thru code. Below is the block that I 
wrote to generate the flexible publish block.   This code compiles 
successfully in the DSL playground found at 
(http://job-dsl.herokuapp.com/)   But when I run the DSL on my jenkins 
server that contains this block, the dsl runs, but no jobs get generated.   
If I remove this block and go to the block above the jobs are generated.
Can anyone tell me what I am doing wrong?

publishers {
configure {
def flexpub = it / 'publishers' / 
'org.jenkins__ci.plugins.flexible__publish.FlexiblePublisher'
def condpub =  flexpub / 'publishers' / 
'org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher'
def condcl = condpub / 'condition 
class="org.jenkins_ci.plugins.run_condition.core.StringsMatchCondition"' {
arg1($BUILD_TYPE)
arg2(Bullseye)
ignoreCase(false)
}
def clover = condpub / 'publishersList' / 
'hudson.plugins.clover.CloverPublisher' {

cloverReportDir('\$WORKSPACE/safe/BULLSEYE_HTML')
cloverReportFileName('clover.xml')
}
clover / 'healthyTarget' {
methodCoverage(60)
conditionalCoverage(40)
statementCoverage(-1)
}
clover / 'unhealthyTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
clover / 'failingTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
condpub / 'runner 
class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"'
condpub / 'executionStrategy 
class="org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy"'
}

}  // publishers


--Thanks, 
Mark

-- 
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/00f69d9a-1aa9-49a8-b702-dff12aad9de4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Access workspace of other project

2016-07-11 Thread Jérôme Godbout
Hi Björn Pedersen,

Wouldn't that be a huge waste of disk I/O just to run a small script and
output some data. I would rather not copy over 6Go of project data (without
the SCM, with SCM this copy will be a huge waste and burn hard drive for
nothing).

I do it into another project only to have separated build result for each
part:

   - compiling
   - Qml script inspection
   - Doxygen generation
   - UnitTest
   - Smoke test
   - Benchmark tests

They are cumulative for the same workspace but they have their own results
(I would like avoid 6 copy for nothing). I allow only starting the
Compiling one, the rest of them are launch after. The Compiling is lock
down until the rest complete to avoid that volatile problem. I currently
only have a single build machine (so master/slave is not an issue yet but
will one day I guess.

Maybe I do it wrong, but that give us a good idea of what is wrong and
failing the Qml inspection is not as vital as a compilation failure, so a
warning into Qml inspection or Doxygen generation is not as bad as warning
into compiling.

Jerome


On Mon, Jul 11, 2016 at 10:38 AM, 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
>
> as the workspace is a volatile object in the general case,  you should
> consider
> https://wiki.jenkins-ci.org/display/JENKINS/Clone+Workspace+SCM+Plugin.
>
> Björn
>
>
> Am Montag, 11. Juli 2016 16:16:55 UTC+2 schrieb jer...@bodycad.com:
>>
>> Hi,
>> I have a project that run some code analysis after the build. I make them
>> into another project that is trigger after the other one. I'm looking to
>> set the Working diirectory with environment variables.
>>
>> Current setup have a custom (under Windows):
>> *Workspace Root Directory* = d:/JenkinsWorkspace/${ITEM_FULL_NAME}
>>
>> My main project use the default workspace (let's call it AA).
>> My second project (do the post build analysis under it's own project)
>> should use the AA project workspace.
>>
>> Is there any environment variable to use the default access Workspace
>> Root Directory without the ${ITEM_FULL_NAME} ?
>> Or even better have a way to use the same workspace as another project?
>>
>> Currently I use the full path but this is painfull when moving to other
>> machine, you don't only have to change the Jenkins config but also the
>> project and this is bad.
>>
>> x *Use custom workspace*
>> *Directory* = d:/JenkinsWorkspace/AA
>>
>> I would rather have something like:
>> *Directory* =  ${DEFAULT_WORKSPACE}/../AA
>> or even better:
>> *Directory* = ${ALL_WORKSPACE}["AA"]
>>
>> Thanks,
>> Jerome
>>
> --
> 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/QoQE2ULapro/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/392bf44a-0ad7-4459-9f39-d64c5cc7add2%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/CAKmu%2Be11-oun2gb8G2gXQtRyZAiPAxN-DHwt6G0vXH76fwjSew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Access workspace of other project

2016-07-11 Thread 'Björn Pedersen' via Jenkins Users
Hi,

as the workspace is a volatile object in the general case,  you should 
consider 
https://wiki.jenkins-ci.org/display/JENKINS/Clone+Workspace+SCM+Plugin. 

Björn


Am Montag, 11. Juli 2016 16:16:55 UTC+2 schrieb jer...@bodycad.com:
>
> Hi,
> I have a project that run some code analysis after the build. I make them 
> into another project that is trigger after the other one. I'm looking to 
> set the Working diirectory with environment variables.
>
> Current setup have a custom (under Windows): 
> *Workspace Root Directory* = d:/JenkinsWorkspace/${ITEM_FULL_NAME}
>
> My main project use the default workspace (let's call it AA).
> My second project (do the post build analysis under it's own project) 
> should use the AA project workspace.
>
> Is there any environment variable to use the default access Workspace 
> Root Directory without the ${ITEM_FULL_NAME} ?
> Or even better have a way to use the same workspace as another project?
>
> Currently I use the full path but this is painfull when moving to other 
> machine, you don't only have to change the Jenkins config but also the 
> project and this is bad.
>
> x *Use custom workspace*
> *Directory* = d:/JenkinsWorkspace/AA
>
> I would rather have something like:
> *Directory* =  ${DEFAULT_WORKSPACE}/../AA
> or even better:
> *Directory* = ${ALL_WORKSPACE}["AA"]
>
> Thanks,
> Jerome
>

-- 
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/392bf44a-0ad7-4459-9f39-d64c5cc7add2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Access workspace of other project

2016-07-11 Thread jerome
Hi,
I have a project that run some code analysis after the build. I make them 
into another project that is trigger after the other one. I'm looking to 
set the Working diirectory with environment variables.

Current setup have a custom (under Windows): 
*Workspace Root Directory* = d:/JenkinsWorkspace/${ITEM_FULL_NAME}

My main project use the default workspace (let's call it AA).
My second project (do the post build analysis under it's own project) 
should use the AA project workspace.

Is there any environment variable to use the default access Workspace Root 
Directory without the ${ITEM_FULL_NAME} ?
Or even better have a way to use the same workspace as another project?

Currently I use the full path but this is painfull when moving to other 
machine, you don't only have to change the Jenkins config but also the 
project and this is bad.

x *Use custom workspace*
*Directory* = d:/JenkinsWorkspace/AA

I would rather have something like:
*Directory* =  ${DEFAULT_WORKSPACE}/../AA
or even better:
*Directory* = ${ALL_WORKSPACE}["AA"]

Thanks,
Jerome

-- 
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/78a9cfa9-355d-4f51-9e81-ffbc2bc66306%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best way to set a timestamp variable in Pipeline build

2016-07-11 Thread Greg Smith

Thanks,

That was my fix -- I went to that screen under Manage Jenkins and set those 
calls to be allowed in the sandbox.  

Thanks for the help.

Cheers,
Greg



On Friday, July 8, 2016 at 11:20:27 AM UTC-4, Baptiste Mathus wrote:
>
> Probably you simply want to allow that finding call.
> Open the /scriptApproval screen for that purpose.
>
> Depending on what you're trying to do. Maybe using long start = 
> System.currentTimeMillis() would suit your needs and be already whitelisted 
> (can't check just now).
>
> HTH
> Le 7 juil. 2016 9:51 PM, "Greg Smith"  
> a écrit :
>
>>
>> Hi,
>>
>> I would like to set a timestamp at the beginning of my pipeline build, 
>> put it into the environment, and reuse it throughout my build.  
>>
>> I found some sample code - but it no longer seems to work because of 
>> sandboxing of the groovy pipeline scripts.
>>
>> The code is:
>> env.TIMESTAMP = new 
>> java.text.SimpleDateFormat('MMddHHmmss').format(new Date())
>>
>> But I get this error now:
>>
>> org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: 
>> Scripts not permitted to use new java.text.SimpleDateFormat java.lang.String
>>  at 
>> org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectNew(StaticWhitelist.java:185)
>>
>> How should I be setting a timestamp value that I can reuse over throughout 
>> the rest of my build?
>>
>> Thanks,
>> Greg
>>
>>
>> -- 
>> 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/fae69470-a517-4167-a9fb-655170f92084%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/2a85bd7e-f073-481f-bf2b-aab850d915a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there option to display all recursive jobs of build flow in build monitor view ??

2016-07-11 Thread Harry G.
You might want to use pipeline plugin and its stages for this, e.g.

testsetlist = ["test_A","test_B", 'testbla']

for (int idx = 0; idx < testsetlist.size(); idx++) {
  stage testsetlist[idx]
  execute(testsetlist[idx])

}

On Thursday, 7 July 2016 06:30:37 UTC+2, Ram D wrote:
>
> Hi All,
>
> Jenkins Version 1.642.4
>
> I am currently stuck while display of build results on monitor view
>
> My jenkins configuration goes like this - 
>
> I have many tests to be executed using Jenkins. To achieve that, I created 
> a build flow job (e.g test_flow) which executes one other "Testing" job 
> with test names as parameters. Sample code of build flow is given below -
>
> testsetlist = ["test_A","test_B",  many more]
>
> for (int idx = 0; idx < testsetlist.size(); idx++) {
> execute(testsetlist[idx])
> }
>
> def execute(testsetname)
> {
>   ignore(FAILURE)
>   {
>   b1 = build("Testing", param1: testsetname)
>   }
> }
>
> The idea to use Build Flow here was not to duplicate the same jobs with 
> different parameter, which becomes to heavy to manage it on a longer run.
>
> Functionality wise, everything works fine but I'm not able to display the 
> build status of each and every test (e.g. test_A and test_B) on "Build 
> Monitor View" as they are not defined as specific jobs. Build Monitor View 
> just displays "Build Flow job" and and last execution of "Testing" job. 
> (*Last 
> execution meaning, execution of the last item in the tests list defined in 
> flow*).
>
> *Question:* 
>
> 1. Is there any way to display the build status of all the tests 
> (*"test_A","test_B", 
> . n*) on "Build Monitor View" or any other similar thing without 
> creating individual jobs for each and every tests ?
>
> 2. Is there any other changes I could do in the configuration to achieve 
> the same thing ?
>
> Any sort of solutions much appreciated. 
>
> Cheers,
>
> Ramesh
>

-- 
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/37616748-0c90-4986-ac54-916d64414cc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins plugin to compare and replace files

2016-07-11 Thread Harry G.
This is no Jenkins-specific functionality.
Sounds like you just could use a diff tool of your choice and just call it 
from Jenkins.

On Friday, 8 July 2016 18:11:06 UTC+2, Parth Mody wrote:
>
> I have Java project which has more than 10 WSDL files that are also hosted 
> on a URL and keep changing from time to time. I need a way to configure my 
> Jenkins job to always compare my WSDL files with the one on the 
> URL(different URL for every file) and change the ones in the build if they 
> are found to be different/updated on the URL. Also it would be nice if an 
> email is sent out to some users when an update like that happens.
>

-- 
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/94409792-c0ac-4a55-9341-02f55b3e0458%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is their any way to change Project recipient list using api ?

2016-07-11 Thread Harry G.
Mid-term you could also consider moving to email-ext plugin.
There you can set a default recipient list centrally or even set receivers 
dynamically with a pre-send script in the job.

On Friday, 8 July 2016 09:52:40 UTC+2, Thethorongil wrote:
>
> I have 5 environment of Jenkins with more than 100 build jobs in each of 
> them . I want to change all the email in project recipient list in post 
> build   action . I don't want to do them manually , how can i automate this 
> to replace all the previous users with my current list of users?
> Is this can be done via using API?
>

-- 
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/7597ff08-29cf-4fd3-a0e0-350ae052568e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTTP ERROR 403 Problem accessing /view/stage/job/testscripts/1541/logtext/testscript.html. Reason: No valid crumb was included in request

2016-07-11 Thread Kaushal Shriyan


On Tuesday, 5 July 2016 21:03:25 UTC+5:30, Kaushal Shriyan wrote:
>
> Hi,
>
> I am finding the below details while the build job in the Console Output. 
> I am running Jenkins version 1.651.3. Please find the below details
>
> WARNING: No valid crumb was included in request for 
> /view/stage/job/testscripts/1541/logtext/testscript.html. Returning 403.
> Jul 05, 2016 7:56:30 PM hudson.security.csrf.CrumbFilter doFilter
> WARNING: No valid crumb was included in request for 
> /view/stage/job/testscripts/1541/logtext/testscript.html. Returning 403.
> Jul 05, 2016 7:57:12 PM hudson.security.csrf.CrumbFilter doFilter
> WARNING: No valid crumb was included in request for 
> /view/stage/job/testscripts/1541/logtext/testscript.html. Returning 403.
> Jul 05, 2016 7:57:33 PM hudson.security.csrf.CrumbFilter doFilter
>
> Any help will be highly appreciable.
>
> Regards,
>
> Kaushal
>

Hi,

I will appreciate if somebody can reply to my post to this mailing list. 
Please let me know if you want me to share jenkins (version 
1.651.3) configuration details.

Regards,

Kaushal

-- 
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/4196407e-a716-40a5-9b5f-a1129289bba8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.