-
Bug
-
Resolution: Unresolved
-
Major
-
None
I created a simple freestyle job that uses this plugin. config.xml is as follows:
<?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <url>https://github.com/kohsuke/docker-jenkins-demo-base.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name>*/master</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> <submoduleCfg class="list"/> <extensions/> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers> <com.cloudbees.jenkins.GitHubPushTrigger plugin="github@1.11.3"> <spec></spec> </com.cloudbees.jenkins.GitHubPushTrigger> <hudson.triggers.SCMTrigger> <spec>* * * * *</spec> <ignorePostCommitHooks>false</ignorePostCommitHooks> </hudson.triggers.SCMTrigger> </triggers> <concurrentBuild>false</concurrentBuild> <builders> <com.cloudbees.dockerpublish.DockerBuilder plugin="docker-build-publish@1.0"> <server plugin="docker-commons@1.0"/> <registry plugin="docker-commons@1.0"> <credentialsId>85f4ce5a-acb4-420d-9375-4d3b51e35959</credentialsId> </registry> <repoName>kohsuke/acmecorp-base</repoName> <noCache>false</noCache> <forcePull>true</forcePull> <dockerfilePath></dockerfilePath> <skipBuild>false</skipBuild> <skipDecorate>false</skipDecorate> <repoTag>latest</repoTag> <skipPush>false</skipPush> <createFingerprint>true</createFingerprint> <skipTagLatest>false</skipTagLatest> </com.cloudbees.dockerpublish.DockerBuilder> </builders> <publishers/> <buildWrappers/> </project>
Whenever I build this, the result build gets a strange build name. build.xml as follows:
<?xml version='1.0' encoding='UTF-8'?> <build> <actions> <hudson.model.CauseAction> <causes> <hudson.model.Cause_-UserIdCause> <userId>kohsuke</userId> </hudson.model.Cause_-UserIdCause> </causes> </hudson.model.CauseAction> <jenkins.metrics.impl.TimeInQueueAction plugin="metrics@3.0.11"> <queuingDurationMillis>4</queuingDurationMillis> </jenkins.metrics.impl.TimeInQueueAction> <hudson.plugins.git.util.BuildData plugin="git@2.3.5"> <buildsByBranchName> <entry> <string>refs/remotes/origin/master</string> <hudson.plugins.git.util.Build> <marked plugin="git-client@1.17.1"> <sha1>3f84be3d7c770f42ce3c1d9b0d1c42f69fded25e</sha1> <branches class="list"> <hudson.plugins.git.Branch> <sha1 reference="../../../sha1"/> <name>refs/remotes/origin/master</name> </hudson.plugins.git.Branch> </branches> </marked> <revision reference="../marked"/> <hudsonBuildNumber>7</hudsonBuildNumber> </hudson.plugins.git.util.Build> </entry> </buildsByBranchName> <lastBuild reference="../buildsByBranchName/entry/hudson.plugins.git.util.Build"/> <remoteUrls> <string>https://github.com/kohsuke/docker-jenkins-demo-base.git</string> </remoteUrls> </hudson.plugins.git.util.BuildData> <hudson.plugins.git.GitTagAction plugin="git@2.3.5"> <tags class="hudson.util.CopyOnWriteMap$Tree"> <entry> <string>refs/remotes/origin/master</string> <list/> </entry> </tags> <ws>/home/kohsuke/ws/cloudbees/demo/docker/jenkins_home/jobs/Base Image Build/workspace</ws> </hudson.plugins.git.GitTagAction> <hudson.scm.SCMRevisionState_-None/> <org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintAction plugin="docker-commons@1.0"> <imageIDs> <string>1617643ddf9749fc21f7476254641a0ef4aa29fe97e09ebd84b8aa82f2b43379</string> <string>c7d1affe632ce563453899c6498a363a942a28060385bbe363f332781adbe282</string> </imageIDs> </org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintAction> </actions> <queueId>25</queueId> <timestamp>1434504734984</timestamp> <startTime>1434504734984</startTime> <result>SUCCESS</result> <displayName>#7 kohsuke/acmecorp-base:latest kohsuke/acmecorp-base:latest</displayName> <duration>56348</duration> <charset>UTF-8</charset> <keepLog>false</keepLog> <builtOn></builtOn> <workspace>/home/kohsuke/ws/cloudbees/demo/docker/jenkins_home/jobs/Base Image Build/workspace</workspace> <hudsonVersion>1.609.1.1 (CloudBees Jenkins Enterprise 15.05)</hudsonVersion> <scm class="hudson.plugins.git.GitChangeLogParser" plugin="git@2.3.5"> <authorOrCommitter>false</authorOrCommitter> </scm> <culprits class="com.google.common.collect.EmptyImmutableSortedSet"/> </build>