Jenkins P4 plugin problem

461 views
Skip to first unread message

Kenneth Nielsen

unread,
Jan 20, 2016, 4:06:59 AM1/20/16
to Jenkins Users
Hi gurus

I am trying to introduce Jenkins at my workplace. We use Perforce as version control.
I have installed the p4 plugin.

My job currently only tries to get the files, and it fails: It appears that I cannot login to the version control.
I cannot find where to put the server name for the plugin, that could be the problem.
Does anyone have a setup for that Works with the p4 plugin.
And do you have any tips?
thanks


log from build:
8x----------------8x----------------8x----------------8x----------------8x----------------8x----------------
Started by user anonymous
Building in workspace C:\Projects\jenkins
FATAL: null
java.lang.NullPointerException at org.jenkinsci.plugins.p4.client.ConnectionConfig.<init>(ConnectionConfig.java:18)
at org.jenkinsci.plugins.p4.client.ConnectionHelper.<init>(ConnectionHelper.java:71)
at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:67)
at org.jenkinsci.plugins.p4.tasks.AbstractTask.getConnection(AbstractTask.java:166)
at org.jenkinsci.plugins.p4.tasks.AbstractTask.setWorkspace(AbstractTask.java:66)
at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:262)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

Ginga, Dick

unread,
Jan 20, 2016, 7:23:13 AM1/20/16
to jenkins...@googlegroups.com

Hi Kenneth, we use Jenkins and Perforce. there are actually 2 plugins for Perforce. we use this one:

 

https://wiki.jenkins-ci.org/display/JENKINS/Perforce+Plugin

 

version 1.3.25

 

with this plugin, you specify the p4port in each job when you select Perforce as the SCM

 

--
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/31f242dc-9ca2-456a-acad-02bdef77bc27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages