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

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

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

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

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

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

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

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

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. --

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

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' : '' )]), ])

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

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:

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.

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

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 >

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

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

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 >

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

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

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

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

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

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

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

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