Re: How to change file content

2018-08-14 Thread arch
You can use pipeline dsl to do this. ref link
https://jenkins.io/doc/pipeline/steps/phoenix-autotest/#-writeproperties-%20writepropertiesstep

read from properties file link:
https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#-readproperties-%20read%20properties%20from%20files%20in%20the%20workspace%20or%20text.

On Tue, Aug 14, 2018 at 5:44 PM Egor Kozlov  wrote:

> I've created a new project in Jenkins. But now I want to change some
> information in my .properties file
>
> How can I do that? (I've already read about Environment Injector, but I
> don't think, that it's what I need)
>
>
> So, and one more questions - will this changes commit in file? (I don't
> want to do that)
>
> Thank you!
>
> --
> 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/97b8b439-51e2-4cd1-959b-7d3639a1fc98%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/CAMM7nTFLgYGFUGmWyvA4mUp8UonMG0G%3D73XCc8oAh-MoKOOqFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: JWT authentication via -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true causing blue ocean UI to hang

2018-08-14 Thread Vivek Pandey
BLUEOCEAN_FEATURE_JWT_AUTHENTICATION feature flag is experimental and not
ready for prime use yet. Having said that, it shouldn't cause hang. Please
open a JIRA ticket.


On Fri, Aug 10, 2018 at 2:07 PM  wrote:

> Hi folks,
>
> I'm running the jenkinsci/blueocean docker container on docker for mac.
> Out of the box I'm able to create pipelines and run them, but I tried to
> turn on JWT security and after doing that the blue ocean UI won't load.  I
> get the blue progress bar going about 9/10ths of the way done but it just
> stays there and never completes.
>
> I tried to use this docker run command to turn on JWT security:
>
> docker run -u root --rm  --name jenkins-blueocean -d  -p 8080:8080 -p
> 5:5 -v jenkins-data:/var/jenkins_home -v
> /var/run/docker.sock:/var/run/docker.sock --env
> JAVA_OPTS=-DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true jenkinsci/blueocean
>
> If I stop the container (docker container stop jenkins-blueocean) and run
> the docker image without the -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true
> flag, then my server comes up and behaves normally.
>
> If I flip back to the -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true flag as
> shown in the docker run command above I get this situation every time, and
> I'm unable to access the UI.
>
> The command I'm using to launch the container without JWT security is
> almost identical to the above, it simply lacks the construct to pass the -D
> flag like this:
>
> docker run -u root --rm  --name jenkins-blueocean -d  -p 8080:8080 -p
> 5:5 -v jenkins-data:/var/jenkins_home -v
> /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean
>
> When launched like this without the -D flag for JWT all's well.  Am I
> doing something wrong?
>
> Should I enter a jira ticket for this?
>
> --
> 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/0ed7a7c9-71f4-40a6-8bca-393026de4ed7%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/CAKT4V18HCmLBL9_87i6oXM2gnhpku%2Bi7-m14Ex9u_6R-xNFpaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins incremental job worspace backup

2018-08-14 Thread Neha Saini
Hello,
I am zipping Jenkins workspace and using that for deployment.But i want to 
take only incremental workspace backup.
i am clearing workspace before every build and in execute shell i am giving 
the command-
zip . $JOB_NAME.zip
it is zipping my job workspace.
But in next build i want only incremental workspace should be zipped, as it 
is taking time. 
Is it possible?

Kindly suggest .

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/13110fc9-115d-4d24-b60f-d82b08b4ee90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SAML logout in Jenkins

2018-08-14 Thread Ivan Fernandez Calvo
SAML Plugin does not support SLO, it only support to redirect you to an URL an 
desltroy the Jenkins session, I have plans for support it but not time soon

-- 
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/53aa7c58-580c-443f-bd3f-6316bf63985f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scripted pipeline: Is a job triggered by pipelineTrigger?

2018-08-14 Thread Stuart Rowe
You can check the Run instance for a TimerTriggerCause. See: 
https://javadoc.jenkins-ci.org/hudson/model/Run.html#getCause-java.lang.Class-

Since this is in pipeline, you would need to access the Run within a 
@NonCPS method. Also, you would need to whitelist the RunWrapper#getRawBuild 

 method.

import hudson.triggers.TimerTrigger.TimerTriggerCause
import org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper

@NonCPS
boolean wasTriggeredByTimer(RunWrapper runWrapper) {
  return null != runWrapper.getRawBuild().getCause(TimerTriggerCause.class)
}

// used within a pipeline script
if (wasTriggeredByTimer(currentBuild)) {
echo("This build was triggered by a timer.")
}


Hope that helps!


On Tuesday, 14 August 2018 02:07:43 UTC-7, Markus "Shorty" Uckelmann wrote:
>
> Hi all, 
>
> I use the following code to trigger a job on a daily basis: 
>
> properties([[$class: 'BuildDiscarderProperty', 
>  strategy: [$class: 'LogRotator', numToKeepStr: '10']], 
>  pipelineTriggers([cron( env.BRANCH_NAME == 'master' ? 
> '@hourly' : '' )]), 
>  ]) 
>
> Now I'd like to know, if the job was triggered by the cron trigger. Does 
> anybody know how this can be done? 
>
> I already tried this peace: 
>
> if (manager.logContains("Started by timer")){ 
>echo "This build was triggered by a timer." 
> } 
>
> But it gave me the error: groovy.lang.MissingPropertyException: No such 
> property: manager for class: groovy.lang.Binding 
>
>
> Cheers, Shorty 
>
>

-- 
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/70a6f039-b21b-4d5f-a6b9-6b67fca05ea0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: withMaven Artifacts URL

2018-08-14 Thread Baptiste Mathus
I think you should file a jira and articulate your use case. I know for
sure the developers would be interested to cover other use cases if they
can be interesting to most people.

Cheers

Le mar. 14 août 2018 à 04:03, Bernardo Vale 
a écrit :

> Hey guys.
>
> I'm looking for a way to programmatically determine the URL of an artifact
> generated by withMaven (Maven Pipeline Plugin).
>
> When I deploy an artifact using withMaven, it generates the URL of each
> artifact inside: $JENKINS_SERVER/path/to/job/8/maven
>
> I'd like to programmatically consume this information.
>
> --
> 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/CABxwwGJxcSgFyKtQvDit4U7R_ixTjf330euab9g4XzsKCna3ow%40mail.gmail.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/CANWgJS7FV3wRgk0uE%2BrxNHrp_MexzpitanRNRG47QUeHUmaLjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How much heap memory i need to give for tomcat server for running 5-6 parallel jobs on jenkins ?

2018-08-14 Thread Baptiste Mathus
Between 1GB and 14.5GB, roughly.

...

Kidding, but basically you need to provide much more details about the kind
of workload so we can help you.

Le jeu. 9 août 2018 à 18:55, rajendraprasad reddy <
rajendra.penuma...@gmail.com> a écrit :

> How much heap memory i need to give for tomcat server for running 5-6
> parallel jobs on jenkins ?
>
> --
> 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/7eafd94a-2f0c-44f2-a05a-b6b8ed9ff7ab%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/CANWgJS7SR9%2B4OzBPQmzX8rB5HLgM1tNefmZi4tfr80yT4zC5ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Aggregating jobs and config from many servers into one

2018-08-14 Thread Baptiste Mathus
I would /simply/ move everything under a different folder locally. Then
copy everything to a central new instance using rsync or something like
this, then everything looks fine.

If it does, you'll then be able to use the folders plugin to move things
where you want them.

My 2 cents

Le ven. 10 août 2018 à 19:30, Kevin White  a
écrit :

> My team has several different Jenkins servers that we have decided to
> aggregate into just one.  I'm somewhat familiar with the process of
> migrating one old Jenkins instance to a new one, where the new one is
> essentially a clone of the old.  What I haven't seen is instructions for
> combining jobs/configs/plugins from multiple instances into one.
>
> I have installed the Job Import plugin, but for some reason, it doesn't
> list the jobs on most of the remote machines so they can't be imported.  No
> errors, just no jobs listing.  I suspect it may have something to do with
> the fact that the remote machines all use SSL.  I have provided working
> credentials in the plugin configuration for each of the remote instances,
> so that's not the issue.
>
> I have looked at thinBackup plugin, but it appears that it will restore
> only from one source, not many.
>
> If I copy the jobs folder over from the remotes, I won't get all the
> necessary plugins and other configuration files.
>
> I am currently trying to rsync from each of the remotes to the new one,
> but I have a feeling that will result in some incompatibilities.
>
> Any suggestions on how best to accomplish this?
>
> --
> 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/d88f55f3-4712-4e47-9f50-930a1f7dc207%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/CANWgJS4hRYNXJz5gBXQ-DV2xGJbG5OCmL0JGEeHrw03jgviHOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin install issue in Jenkins

2018-08-14 Thread Baptiste Mathus
Seems like a transient mirror issue with/while downloading, I think you
should retry.

Le jeu. 9 août 2018 à 19:41, Rahul Sahotay  a
écrit :

> Hello there:
>
> I have installed latest Jenkins on my Amazon Linux machine by using
> following commands:-
>
> sudo wget -O /etc/yum.repos.d/jenkins.repo http://
> pkg.jenkins.io/redhat/jenkins.repo
> sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
> sudo yum install jenkins -y
>
> Jenkins came up successfully with v 2.136  , I
> clicked on install suggested plug-in and no plugin got installed :(
>
> While installing it again from manage Jenkins, I am seeing the following
> errors:-
>
> java.io.IOException: Server returned HTTP response code: 503 for URL: 
> http://ftp-chi.osuosl.org/pub/jenkins/plugins/jenkins-design-language/1.7.2/jenkins-design-language.hpi
>  at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
>  at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
>  at 
> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3000)
>  at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629) at 
> java.net.URLConnection.getContentLengthLong(URLConnection.java:501) at 
> java.net.URLConnection.getContentLength(URLConnection.java:485) at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1130)
>  Caused: java.io.IOException: Server returned HTTP response code: 503 for 
> URL: 
> http://ftp-chi.osuosl.org/pub/jenkins/plugins/jenkins-design-language/1.7.2/jenkins-design-language.hpi
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944)
>  at 
> sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939)
>  at java.security.AccessController.doPrivileged(Native Method) at 
> sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938)
>  at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
>  at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
>  at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146)
>  Caused: java.io.IOException: Failed to load 
> http://updates.jenkins-ci.org/download/plugins/jenkins-design-language/1.7.2/jenkins-design-language.hpi
>  to /var/lib/jenkins/plugins/jenkins-design-language.jpi.tmp at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1153)
>  Caused: java.io.IOException: Failed to download from 
> http://updates.jenkins-ci.org/download/plugins/jenkins-design-language/1.7.2/jenkins-design-language.hpi
>  (redirected to: 
> http://ftp-chi.osuosl.org/pub/jenkins/plugins/jenkins-design-language/1.7.2/jenkins-design-language.hpi)
>  at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1187)
>  at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1724) at 
> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1987) at 
> hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1698) at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at 
> java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
>  at java.lang.Thread.run(Thread.java:748)
>
>
> Here is my Java version and i can see this version /systemInfo
>
>
> java version "1.8.0_181" Java(TM) SE Runtime Environment (build 
> 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed 
> mode)
>
> Any suggestions please ?
>
>
> --
> 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/2ccecd2e-78db-4864-94a2-7ff4a67e7ae1%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 

Re: Configuration-as-Code 1.0-RC1 released

2018-08-14 Thread Baptiste Mathus
Woot!

Le ven. 10 août 2018 à 19:37, nicolas de loof  a
écrit :

> Hi,
>
> The Configuration-as-Code team is proud to announce we published our first
> release candidate.
> We published a dozen alpha release before, and already got feedback and
> contribution from early adopters, so that we are now pretty confident with
> current design. We expect to release few more RC so we can get 1.0
> production-ready release published in Septembre (just in time for Jenkins
> World yeah!)
>
> We welcome any feedbacks to ensure we don't miss any important use case or
> compatibility issue before we get 1.0-final. Feel free to join our Gitter
> chat  or report
> issues 
> .
>
> --
> Nicolas De Loof
>
> --
> 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/CANMVJzmekUORUHbwSudWS7JPxQTXVxMPRfA2%2BRfB0i4qnj0OiQ%40mail.gmail.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/CANWgJS6iZRMGX_3Jcb7jdsgLrZZj7VG8Wu24OuGjva-4Wkc%2B5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Checkout code using jenkins pipeline in jenkins at a particular and perform build any available nodes/agents

2018-08-14 Thread Baptiste Mathus
Le mar. 7 août 2018 à 14:52, gaurav pant  a écrit :

>  am trying to checkout the code at a particular location (ex. *C:\scm\*)
> on windows using jenkins pipeline (jenkinsfile) and want to execute the
> build from the checkout location (*C:\scm\*) in any available
> nodes/agents at that particular time.
>
> Can you please provide any leads? (Was able to do on linux machine)
>
> Something like below:-
>
> node ('win1')
>
> {
>
> stage ('checkout')
>
> ..
>
> }
>
>
> node ('win2')
>
> {
>
> stage ('build')
>
> 
>
> }
>
> My requirement is I should checkout my code at particular location (master
> jenkins) whenever my job is triggered and able to build it on any available
> node at that particular time rather than building it on the master jenkins
> only (require this to not overload the jenkins master)
>

Something seems wrong with your requirements: IIUC you want to checkout the
sources on the master, and build elsewhere. Is this really what you mean?

If so, then maybe you should start by thinking how you would do this
outside of Jenkins context, then get back to doing it with Jenkins. That
should hopefully help you better figure what you need.

To somehow spoil the outcome, to me something seems fishy. The only
'solution' for me for what you're asking for would result in some kind of
FrankensteinBuild :). (Like using shared FS between nodes etc. Note: do not
do that).

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/0a967f20-e16f-4cb1-a627-b42053eda381%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/CANWgJS4VcNdgEoXR-%3Dvd40G%2B67_aWFPOd1VpD7C1qoynhQGSGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Finding the master workspace from within a Java plugin (pipeline)

2018-08-14 Thread Baptiste Mathus
Better ask that kind of question on the -dev mailing list IMO.

Cheers

Le mar. 7 août 2018 à 22:07, Tal Yanai  a écrit :

> Hi,
>
> As the perform section is running from within the Master, while the
> workspace retrieved by envVars.get("WORKSPACE") is from the slave host, I'm
> having hard time persisting some data into the workspace at the master
> location.
>
> Is there a way to find out what is the workspace of the master?
>
> Thanks,
>
> Tal.
>
> --
> 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/a21ecdbf-6681-49f9-8a39-591f00078c18%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/CANWgJS6E4kjApsTY1MG0s_r5bp6erzMcobmMqzSHOyfe1A040A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to run Maven Goals using pipeline as code.

2018-08-14 Thread Baptiste Mathus
By the way, you might be interested to learn about and use the 'Pipeline
Maven Plugin'.

Cheers

Le mar. 7 août 2018 à 17:50, suny nazar  a écrit :

> Issue is fixed , by providing tools configuration in Jenkins file.
>
> tools {
> maven 'JenkinsMaven'
> jdk 'JenkinsJDK'
> }
>
> On Tuesday, 7 August 2018 18:54:11 UTC+5:30, yossibr9876 wrote:
>>
>> Hi,
>> make sure u have a jdk !!! (I think you have jre ) .
>>
>> On Tuesday, August 7, 2018 at 3:48:36 PM UTC+3, suny nazar wrote:
>>>
>>>
>>> i am getting below error when i am running maven goals via Jenkinsfile. I 
>>> am not getting this issue when i am running freestyle project with maven 
>>> goals.
>>>
>>>
>>> [ERROR] Failed to execute goal 
>>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
>>> (default-compile) on project server: Compilation failure
>>> [ERROR] Unable to locate the Javac Compiler in:
>>> [ERROR]   C:\Program Files\Java\jre1.8.0_181\..\lib\tools.jar
>>> [ERROR] Please ensure you are using JDK 1.4 or above and
>>> [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
>>> [ERROR] In most cases you can change the location of your Java
>>> [ERROR] installation by setting the JAVA_HOME environment variable.
>>>
>>>
>>> below code has been put in Jenkinsfile.
>>>
>>>
>>> does anyone how to fix this , FYI - JAVA_HOME is set to C:\Program 
>>> Files\Java\jdk1.8.0_181
>>>
>>>
>>> pipeline {
>>> agent any
>>> stages{
>>> stage('Build'){
>>> steps {
>>> bat 'mvn clean package'
>>> }
>>> post {
>>> success {
>>> echo 'Now Archiving...'
>>> archiveArtifacts artifacts: '**/target/*.war'
>>> }
>>> }
>>> }
>>> }
>>> }
>>>
>>> --
> 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/9f1c0bd3-5cb6-4b7b-b704-f8c3052a641d%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/CANWgJS4J2FpkmWjKR3RjftzveARaEGqoYTT5kUot6S%3D5b_FEjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread gary . l . mills
thank you Devin! greatly appreciate it. 

On Friday, August 10, 2018 at 12:07:57 PM UTC-5, gary.l...@ge.com wrote:
>
> Hello, 
>
>  
>
> I was on Jenkins 1.6.x I’ve upgraded and fresh install of Jenkins 2.136. 
>
>  
>
> Since the upgrade I continuously get these warnings. I’m not sure what 
> this is saying.  Any help would be greatly appreciated. Thanks!
>
>  
>
> I looked at the doc, but, don’t know what to do with it. 
>
>  
>
> *[WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenArtifactArchiver$2; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> *
>
> *[WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenFingerprinter$1; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> *
>
>  
>
>  
>
> 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/417a159a-8f5a-48fb-9ec5-24037f43c88c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


terraform templates used in jenkins

2018-08-14 Thread siddareddy . moolam
hello 
i want use terraform templates in jenkins please 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/632d6ab1-6f53-42e5-b46c-0c4847c0a39b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins: How to run test on multiple hosts in parallel?

2018-08-14 Thread Vijay Hiremath
Hi Jim,

Test hosts are not slave nodes, they are dummy Linux machines.

Regards
Vijay

On Fri, Aug 10, 2018 at 5:38 AM, Spriggs, Jim  wrote:

> Hi,
>
>
>
> Are your test hosts actual Slave Nodes in the Jenkins sense?
>
> If they are, you might want to consider using a Multi-Configuration
> (“Matrix”) Job.
>
> Then you could use the Node Names/Labels of your 5 hosts as an axis in the
> Configuration Matrix.
>
> The configurations will be run in parallel by default, and the status
> consoles and results will all be independently available.
>
>
>
> Works for me.
>
>
>
> Good Luck!
>
> --
>
> jim
>
>
>
>
>
> *Von:* jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@
> googlegroups.com] *Im Auftrag von *Vijay Hiremath
> *Gesendet:* Dienstag, 7. August 2018 08:43
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* Re: Jenkins: How to run test on multiple hosts in parallel?
>
>
>
> Thank you for the response.
>
>
>
> Unfortunately build is parameterized and each slave connected to Jenkins
> host have different parameters.
>
> Hence, cannot use pssh
>
>
>
> On Mon, Aug 6, 2018 at 10:20 PM,  wrote:
>
> If your nodes are on linux, try installing pssh on the server
>
>
>
> 1. Install pssh
>  yum install python-pip
>  pip install pssh
>
> 2. create a host file 'pssh-host' with the number of hosts along with IP
> address and port number
>  that you need to connect to remote systems using pssh.
>
> 3. Execute command using pssh from Jenkins Build > Execute shell:
> e.g pssh -h pssh-hosts -l root -A echo "Test"
>
>
>
> On Friday, August 3, 2018 at 5:49:24 PM UTC+5:30, Vijay Hiremath wrote:
>
> Hi All,
>
> How to run test on multiple hosts in parallel? Below is the requirement.
>
> 1.  I have a Jenkins job A.
>
> 2.  5 hosts are connected to A.
>
> 3.  Test X need to be run on all 5 hosts. Also need to see the status
> of test on an independent console.
>
> 4.  Result form the hosts need to be independently published
>
> 5.  Currently test X is run on only one host and rest 4 hosts tests
> are in Queue.
>
> I used *"Execute concurrent builds if necessary"* but, it just divides
> same test on 5 hosts so it does not do what I intended. What is the
> workaround here?
>
> Regards
>
> Vijay
>
> --
> 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/d82a438f-68d4-4f8e-a30c-baf6cd103673%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/CAL6S71G1kDF4YYCFz9LRndL1VfCr%
> 2BJtYRZtg-j%3DS%3D%3D0s0NoxRA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
>
> RAYLASE GmbH
> Argelsrieder Feld 2+4
> 82234 Wessling
> Germany
> Tel.: +49-(0)8153/88 98-0
> Fax: +49-(0)8153/88 98-10
> http://www.raylase.de
>
> District Court Munich, HRB 234738
>
> Management: Dr. Philipp Schön (CEO), Berthold Dambacher (CTO)
>
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> --
> 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/25599d86938447c7b0117fbabc212fb2%40raylase.de
> 
> .
> For more options, visit 

Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread Devin Nusbaum
A PR is a Pull Request on GitHub 
. Here is the offending 
plugin’s source code: https://github.com/jenkinsci/maven-plugin 
. You could instead open an issue on 
Jira if you are not comfortable with Java development, but I don’t know how 
much time the Maven Plugin maintainers have to work on the plugin so it may be 
a while before anyone fixes it.

> On Aug 14, 2018, at 10:07, gary.l.mi...@ge.com wrote:
> 
> Thank you Devin!!!  I'm sorry what is a PR ? a Problem Report? Jenkins Jira. 
> 
> On Friday, August 10, 2018 at 12:07:57 PM UTC-5, gary.l...@ge.com 
>  wrote:
> Hello, 
> 
>  
> I was on Jenkins 1.6.x I’ve upgraded and fresh install of Jenkins 2.136. 
> 
>  
> Since the upgrade I continuously get these warnings. I’m not sure what this 
> is saying.  Any help would be greatly appreciated. Thanks!
> 
>  
> I looked at the doc, but, don’t know what to do with it. 
> 
>  
> [WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenArtifactArchiver$2; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> 
> [WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenFingerprinter$1; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> 
>  
>  
> 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/4148464d-5dd8-46ce-bca1-2583afa60835%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/3089AF7D-F499-4819-86D0-A2E2C2285488%40cloudbees.com.
For more options, visit https://groups.google.com/d/optout.


Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread gary . l . mills
Thank you Devin!!!  I'm sorry what is a PR ? a Problem Report? Jenkins 
Jira. 

On Friday, August 10, 2018 at 12:07:57 PM UTC-5, gary.l...@ge.com wrote:
>
> Hello, 
>
>  
>
> I was on Jenkins 1.6.x I’ve upgraded and fresh install of Jenkins 2.136. 
>
>  
>
> Since the upgrade I continuously get these warnings. I’m not sure what 
> this is saying.  Any help would be greatly appreciated. Thanks!
>
>  
>
> I looked at the doc, but, don’t know what to do with it. 
>
>  
>
> *[WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenArtifactArchiver$2; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> *
>
> *[WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenFingerprinter$1; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> *
>
>  
>
>  
>
> 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/4148464d-5dd8-46ce-bca1-2583afa60835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread Devin Nusbaum
Hi Gary,

As the linked page explains, anonymous classes can cause various problems when 
serializing objects in Jenkins, so these messages are printed as a warning so 
we can identify potential issues. I think these are the anonymous classes in 
question: MavenArtifactArchiver$2 
,
 MavenFingerprinter$1 
.
 It looks like they are only used for remoting, so a PR to convert them to 
named classes would be welcome.

> On Aug 13, 2018, at 21:26, gary.l.mi...@ge.com wrote:
> 
> ?IS this a Bug?  I don't know. I guess noone really watches this support 
> forum. I will enter a bug ticket to get some response. thank you. 
> 
> On Friday, August 10, 2018 at 12:07:57 PM UTC-5, gary.l...@ge.com wrote:
> Hello,
> 
>  
> I was on Jenkins 1.6.x I’ve upgraded and fresh install of Jenkins 2.136.
> 
>  
> Since the upgrade I continuously get these warnings. I’m not sure what this 
> is saying.  Any help would be greatly appreciated. Thanks!
> 
>  
> I looked at the doc, but, don’t know what to do with it.
> 
>  
> [WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenArtifactArchiver$2; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> 
> [WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenFingerprinter$1; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> 
>  
>  
> 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/d562606f-3246-4e2c-944a-fdde4cdb06a1%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/BA8AE3A5-A5D6-4FD3-8937-2D75D3984FC3%40cloudbees.com.
For more options, visit https://groups.google.com/d/optout.


Download file from webserver

2018-08-14 Thread abhay srivastava
Hello all,

How to download file from webserver using job builder in jenkins.

I used http request  and file downloaded successfully but

Saving response body to
/opt/abhay/project/centos_7_4/images/CentOS-7-x86_64-GenericCloud-1711.qcow2

 continue running we are seeing in console output.

-- 
Regards,
Abhay Srivastava
---
Mob-9160512000

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


How to change file content

2018-08-14 Thread Egor Kozlov


I've created a new project in Jenkins. But now I want to change some 
information in my .properties file 

How can I do that? (I've already read about Environment Injector, but I 
don't think, that it's what I need)


So, and one more questions - will this changes commit in file? (I don't 
want to do that)

Thank you!

-- 
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/97b8b439-51e2-4cd1-959b-7d3639a1fc98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


subscriptio id is not valid while creating service principal in jenkins

2018-08-14 Thread siddareddy . moolam
hii Team,

Currently I am trying to configure Azure Agents on Jenkins

I am trying to add Microsoft Azure Service Principle  to Jenkins 
Credentials but failing even through have provided correct Subscription id

Error message while testing

The subscription id is not valid. (Verify Service Principle ) 

-- 
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/f7f1832e-2675-4cf9-b65c-8ee61902173c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jmeter Test execution - Blank Performance Trend graphs

2018-08-14 Thread Surjit Bains
in the script console >

System.clearProperty("hudson.model.DirectoryBrowserSupport.CSP");

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox
allow-scripts; default-src 'self'; script-src * 'unsafe-eval'; img-src *;
style-src * 'unsafe-inline'; font-src *");
 which will temporarily disable the Content Security Policy which may be
blocking your page rendering.

S

On Mon, 13 Aug 2018 at 16:07, Ajith Raman  wrote:

> Hi Surjit,
>
>
> Developer tools show the same stuff (whether graphs are displayed, or
> blank). Please find the screenshots attached.
>
> Thanks for the response.
>
>
> Regards,
> Ajith
>
> On Friday, 10 August 2018 22:00:49 UTC+5:30, Surjit Bains wrote:
>>
>> If you view the blank page using the developer tools in your browser what
>> do you see?
>>
>>
>> On Fri, 3 Aug 2018 at 21:06, Ajith Raman  wrote:
>>
>>> Hello,
>>> I run a Jmeter test via Jenkins. Please find below the commands used:
>>> Execute Windows Batch command (Build): cd
>>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin jmeter
>>> -Jjmeter.save.saveservice.output_format=csv -n -t Sample_Framework.jmx -l
>>> TestResults_%BUILD_NUMBER%.jtl -e -o
>>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\HTML_%BUILD_NUMBER%
>>> Publish Performance Test result report (Post-Build Actions):
>>> C:\Users\C51539A\Downloads\apache-jmeter-4.0\bin\TestResults_${BUILD_NUMBER}.jtl
>>> Now the execution completes successfully. But the Performance Trend Graphs
>>> are blank. Could you please help me on this? Note: All works fine, when
>>> _${BUILD_NUMBER} is removed from the filename. Issue exists, only when
>>> _${BUILD_NUMBER} is appended to the filename. Am performing this, in order
>>> to make the output files unique.
>>> Thanks in Advance!!
>>>
>>> --
>>> 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/f87297df-97b4-4fe1-a857-c802dfcd225e%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Surjit Bains
>> e: surjit...@gmail.com
>> m: 07966 161 302
>>
> --
> 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/78c592b1-1854-4d3c-8ad0-151a1d020016%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Surjit Bains
e: surjit.ba...@gmail.com
m: 07966 161 302

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


SAML logout in Jenkins

2018-08-14 Thread Ayush Mahawar
My normal Logout operation is working, but I want to configure SLO so that 
my IdP will also have its session destroy when I click Logout button in 
Jenkins. 

I pasted IdP SLO URL in Jenkins, but Jenkins is not sending Logout Request 
to IdP.

I don’t know the SLO URL of Jenkins, as I need that URL to paste it in my 
IdP so that IdP knows from which URL Logout request will come.

I think we have to append something in IdP SLO URL to destroy the session.

Please help me in configuring Single  Logout. Your help will be 
appreciated. 

Thanks in advance.

-- 
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/c01e6074-86f4-413a-8954-64f7417c3c3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver and hudson.maven.reporters.MavenFingerprinter

2018-08-14 Thread gary . l . mills
?IS this a Bug?  I don't know. I guess noone really watches this support 
forum. I will enter a bug ticket to get some response. thank you. 

On Friday, August 10, 2018 at 12:07:57 PM UTC-5, gary.l...@ge.com wrote:
>
> Hello, 
>
>  
>
> I was on Jenkins 1.6.x I’ve upgraded and fresh install of Jenkins 2.136. 
>
>  
>
> Since the upgrade I continuously get these warnings. I’m not sure what 
> this is saying.  Any help would be greatly appreciated. Thanks!
>
>  
>
> I looked at the doc, but, don’t know what to do with it. 
>
>  
>
> *[WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenArtifactArchiver$2; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> *
>
> *[WARNING] Attempt to (de-)serialize anonymous class 
> hudson.maven.reporters.MavenFingerprinter$1; see: 
> https://jenkins.io/redirect/serialization-of-anonymous-classes/ 
> *
>
>  
>
>  
>
> 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/d562606f-3246-4e2c-944a-fdde4cdb06a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to pass parameter from upstream job to downstream pipeline jobs which i dont want to parametrize

2018-08-14 Thread mcdhanu1988
I have 5 pipeline jobs and three nodes, say A,B and C which are connected 
to master jenkins. my intention is by default all jobs should run on node 
A, and when i trigger these 5 jobs through a parametrized job by selecting 
node B or node C as parameter manually, then all 5 pipeline jobs should run 
on the selected node as parameter.

I used Nodelabel parameter plugin.

I created job--->this project is parametrized-->Add parameter--->selected 
node>selected node A as default>selected node B and Node C as 
possible nodes>in post build actions selected Trigger parametrized 
build on other projects--->added all 5 pipeline jobs in projects to build 
field>selected Build on the same node

but when i select parameter as node B and build, only upstream job builded 
on node B all downstream jobs builded on default node. In build history of 
downstream job it will show it is builded on node B but if i see console 
output it is actually building on default node A not on node B. 

Please suggest me solutions for this problem.

Thanks,
Dhanushree 

-- 
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/362ceb7a-0d56-498d-b4c3-062e997891e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Scripted pipeline: Is a job triggered by pipelineTrigger?

2018-08-14 Thread Markus "Shorty" Uckelmann

Hi all,

I use the following code to trigger a job on a daily basis:

properties([[$class: 'BuildDiscarderProperty',
strategy: [$class: 'LogRotator', numToKeepStr: '10']],
pipelineTriggers([cron( env.BRANCH_NAME == 'master' ? 
'@hourly' : '' )]),

])

Now I'd like to know, if the job was triggered by the cron trigger. Does 
anybody know how this can be done?


I already tried this peace:

if (manager.logContains("Started by timer")){
  echo "This build was triggered by a timer."
}

But it gave me the error: groovy.lang.MissingPropertyException: No such 
property: manager for class: groovy.lang.Binding



Cheers, Shorty

--
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/f821fe5f-a601-2d8f-453e-4ab22e29bded%40koeln.de.
For more options, visit https://groups.google.com/d/optout.