Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: copyartifact
Created: 24/Jul/14 7:49 PM
Description:

Steps to repro:

  • add manual promotion process to a dummy job
  • add copy artifacts from another project to promotion process
    • project name = $PROMOTED_JOB_FULL_NAME
    • which build = "specified by a build parameter"
    • parameter name = $PROMOTED_NUMBER
FATAL:  : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) 
com.thoughtworks.xstream.io.StreamException:  : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) 
	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
	at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
	at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
	at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
	at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:916)
	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:907)
	at hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:80)
	at hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52)
	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:263)
	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:281)
	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:223)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
	at hudson.model.Run.execute(Run.java:1665)
	at hudson.model.Run.run(Run.java:1612)
	at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:173)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:246)
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) 
	at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
	... 19 more


This is a user error, I should have picked "specific build" in order to use $PROMOTED_NUMBER. Validation during the job configuration would have helped
in this case make things more fool-proof.

Environment: centos 6.4, jenkins LTS 1.532.3, copyartifact 1.30
Project: Jenkins
Priority: Major Major
Reporter: Damien Nozay
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to