Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Job is failing - any idea on this error #121

Closed
knadendla opened this issue Dec 7, 2015 · 2 comments
Closed

Create Job is failing - any idea on this error #121

knadendla opened this issue Dec 7, 2015 · 2 comments

Comments

@knadendla
Copy link

<project>
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <scm class="hudson.scm.NullSCM"/>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers/>
  <concurrentBuild>false</concurrentBuild>
  <builders/>
  <publishers/>
  <buildWrappers/>
</project>

Kishore{testjob=com.offbytwo.jenkins.model.Job@6a2105a4}
Kishoretrue
org.apache.http.client.HttpResponseException: Not Found
at com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse(HttpResponseValidator.java:11)
at com.offbytwo.jenkins.client.JenkinsHttpClient.get(JenkinsHttpClient.java:139)
at com.offbytwo.jenkins.client.JenkinsHttpClient.post_xml(JenkinsHttpClient.java:249)
at com.offbytwo.jenkins.client.JenkinsHttpClient.post_xml(JenkinsHttpClient.java:243)
at com.offbytwo.jenkins.JenkinsServer.createJob(JenkinsServer.java:199)

@heemin32
Copy link
Contributor

Try to call createJob(jobName, jobXml, false)
I do not know what crumbFlag is for but in my case setting crumbFlag as false works without error.

@khmarbaise
Copy link
Member

Can you give a little bit more details like which version of Jenkins you have used? Which version of the jenkins-client API you have used ? And is this the full stack trace?

@khmarbaise khmarbaise added this to the Release 0.3.4 milestone May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants