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

[cid:[email protected]]

From: [email protected] 
[mailto:[email protected]] On Behalf Of Kenneth Nielsen
Sent: Wednesday, January 20, 2016 4:07 AM
To: Jenkins Users
Subject: Jenkins P4 plugin problem

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<http://localhost:8080/user/null>
Building in workspace C:\Projects\jenkins
FATAL: null
java.lang.NullPointerException 
<http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException> 
at 
org.jenkinsci.plugins.p4.client.ConnectionConfig.<init>(ConnectionConfig.java:18)<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.p4.client.ConnectionConfig.%3cinit%3e&entity=method>
at 
org.jenkinsci.plugins.p4.client.ConnectionHelper.<init>(ConnectionHelper.java:71)<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.p4.client.ConnectionHelper.%3cinit%3e&entity=method>
at 
org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:67)<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.p4.client.ClientHelper.%3cinit%3e&entity=method>
at 
org.jenkinsci.plugins.p4.tasks.AbstractTask.getConnection(AbstractTask.java:166)<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.p4.tasks.AbstractTask.getConnection&entity=method>
at 
org.jenkinsci.plugins.p4.tasks.AbstractTask.setWorkspace(AbstractTask.java:66)<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.p4.tasks.AbstractTask.setWorkspace&entity=method>
at 
org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:262)<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.p4.PerforceScm.checkout&entity=method>
at 
hudson.scm.SCM.checkout(SCM.java:485)<http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method>
at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1276)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)<http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
at 
hudson.model.Run.execute(Run.java:1738)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
at 
hudson.model.ResourceController.execute(ResourceController.java:98)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
at 
hudson.model.Executor.run(Executor.java:410)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Finished: FAILURE
--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/31f242dc-9ca2-456a-acad-02bdef77bc27%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/31f242dc-9ca2-456a-acad-02bdef77bc27%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E2D86B3818%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

Reply via email to