Re: Create and push new git branch?

2018-08-07 Thread Jack Brooks
Aha! Thanks so much! I will have to get busy on this. I was looking at it totally wrong. On Tue, Aug 7, 2018, 9:10 PM Mark Waite wrote: > The git plugin has no facility to support creating a branch or pushing a > branch from a Pipeline step. > > However, Pipeline can do it with an "sh" or "bat"

Re: Create and push new git branch?

2018-08-07 Thread Mark Waite
The git plugin has no facility to support creating a branch or pushing a branch from a Pipeline step. However, Pipeline can do it with an "sh" or "bat" step (depending on your platform). If your repository URL is an ssh URL ( g...@example.com:dir/repo.git or ssh: //g...@example.com/dir/repo.git

Create and push new git branch?

2018-08-07 Thread jbrooks
Hi folks, I've googled extensively, but I haven't seen any documentation or answers on how to create a new git branch in Pipeline. I must be missing something obvious, but the Git plugin page doesn't indicate anything other than checking out code with credentials. Has anyone here used Jenkins

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

2018-08-07 Thread Tal Yanai
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?

Klocwork result display with pipeline

2018-08-07 Thread Jean-Luc Pinardon
Dear all, I am creating a pipeline using the declarative pipeline flavour, with clockwork steps enclosed within a klocworkWrapper. Ok, analysis is launched, and I can see the results on the Klocwork server web interface. But I cannot find a way to retrieve resulting diagrams on the Jenkins web

Re: HTML Publisher Plugin

2018-08-07 Thread jojo
404 On Tue, Aug 7, 2018, 17:50 Surjit Bains wrote: > What do you see on your browser? > > > On Tue, 7 Aug 2018 at 14:18, yossibr9876 wrote: > >> Hi , >> >> Unable to work with HTML Publisher Plugin. >> I have created an index.html in shell script - the file was open by chrom >> and it looks

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

2018-08-07 Thread suny nazar
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,

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

2018-08-07 Thread suny nazar
Did n't get you , actually i have tried two options in Global tool configuration. 1 Maven and JDK was given local paths. 2 Maven and JDK were set to be installed by Jenkins. in both cases it did not work , when i am trying locally to run mvn compile , it works. It also works with freestyle

Re: HTML Publisher Plugin

2018-08-07 Thread Surjit Bains
What do you see on your browser? On Tue, 7 Aug 2018 at 14:18, yossibr9876 wrote: > Hi , > > Unable to work with HTML Publisher Plugin. > I have created an index.html in shell script - the file was open by chrom > and it looks fine . > The problem is in plugin , what went wrong ? > Jemkins

Re: Jmeter Test execution - Blank Performance Trend graphs

2018-08-07 Thread Ajith Raman
Hi Jan, I did enable logging for "hudson.plugins.performance" (Logger level set to "ALL"). But the log is blank. Please find below the steps performed (in order to enable logging): 1. Add a New Log Recorder. 2. Provide an appropriate name. 3. Click on "Add" (adjacent to Loggers). 4. Enter

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

2018-08-07 Thread yossibr9876
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. > > >

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

2018-08-07 Thread Slide
Is JAVA_HOME set to that for the user that Jenkins is running as? On Tue, Aug 7, 2018 at 5:48 AM 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]

Unable to run Maven Goals using pipeline as code.

2018-08-07 Thread suny nazar
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:

Re: Can I have a reusable “post” block for my jenkins pipelines?

2018-08-07 Thread Jan Monterrubio
So, I think what you want is: Project 1 Jenkins File: pipeline { stages { Stage(‘’npm i’){} } commonPost() } Project 2 Jenkins file Pipeline{ Script { Echo{ } } commonPost() } Am I getting that correctly? On Fri, Aug 3, 2018 at 08:20 red 888 wrote: > wait there seems to be confusion about

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

2018-08-07 Thread gaurav pant
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

Chinese Localization SIG

2018-08-07 Thread su suren
Hi all, DevOps became more and more popular in recent years. As we see, Jenkins already takes a very important position. And Jenkins has lots of users in all around the world. So, localization became more and more important. In China, many people want to use Jenkins as CI server. and also

Re: Manage Plugins > Check now gives an exception

2018-08-07 Thread David Aldrich
Further information on my problem: *Manage Jenkins > Manage Plugins > Advanced > Update site* was empty. If I set that entry to http://updates.jenkins-ci.org/stable/update-center.json and click *Submit *I get an exception: java.lang.ClassCastException: hudson.node_monitors.ResponseTimeMonitor

Manage Plugins > Check now gives an exception

2018-08-07 Thread David Aldrich
Hi After a system change to our Jenkins master, *Manage Jenkins > Manage Plugins > Check now* gives an exception (see below). What could be causing this? Best regards David Caught exception evaluating: it.shouldDisplay() in /jenkins/log/. Reason: java.lang.ClassCastException:

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

2018-08-07 Thread Vijay Hiremath
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