[Builder] Build failed in Jenkins: carbon-device-mgt #2881

Charitha Goonetilleke charithag at wso2.com
Thu Jan 25 11:15:16 PST 2018


Hi Maheshika,

I have tried to perform a manual release since I was able to preform normal
build without any issue. However with release build I'm getting following
error.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare
(default-cli) on project carbon-devicemgt: Unable to tag SCM[ERROR]
Provider message:[ERROR] The git-push command failed.[ERROR] Command
output:[ERROR] To
https://charithag:xxxxxxx@github.com/wso2/carbon-device-mgt.git
<https://charithag:xxxxxxxx@github.com/wso2/carbon-device-mgt.git>[ERROR]
! [rejected]        v3.0.213 -> v3.0.213 (already exists)[ERROR]
error: failed to push some refs to
'https://charithag:xxxxxxx@github.com/wso2/carbon-device-mgt.git
<https://charithag:xxxxxxxxxx@github.com/wso2/carbon-device-mgt.git>'[ERROR]
hint: Updates were rejected because the tag already exists in the
remote.[ERROR] -> [Help 1][ERROR] [ERROR] To see the full stack trace
of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven
using the -X switch to enable full debug logging.[ERROR] [ERROR] For
more information about the errors and possible solutions, please read
the following articles:[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


I have checked the current tags in the repo[1]. But there is no any
tag created with v3.0.213.


[1] https://github.com/wso2/carbon-device-mgt/tags


Thanks & regards,

/charithag


On Thu, Jan 25, 2018 at 5:34 PM, Charitha Goonetilleke <charithag at wso2.com>
wrote:

> Hi Maheshika,
>
> We are experiencing build failure[1] in jenkins and failed last two
> builds. As per the jenkins log, release build is success and issue appears
> when trying to create the release tag by merging changes.
>
> I have also had a look at the repo and I've noticed that release branch[2]
> is already created in the git repo. Could you please have a look?
>
>
>
> [WSO2 Maven Release] [WSO2 Maven Release] Build Result: SUCCESS
> [WSO2 Maven Release] Checking out a temp local branch named f4ebd9cb-e8f7-4b35-9b56-f9196099a002 at revision null
>  > git config core.sparsecheckout # timeout=10
>  > git checkout -f
>  > git branch -a -v --no-abbrev # timeout=10
>  > git checkout -b f4ebd9cb-e8f7-4b35-9b56-f9196099a002
> ------------------------------------------------------------------------
>
> [WSO2 Maven Release] Fetching latest changes with refspec: null:refs/remotes/origin/f4ebd9cb-e8f7-4b35-9b56-f9196099a002 before merging the release commits into f4ebd9cb-e8f7-4b35-9b56-f9196099a002
> Fetching upstream changes from https://github.com/wso2/carbon-device-mgt.git
>  > git --version # timeout=10
> using GIT_ASKPASS to set credentials github user for maven release plugin (CD)
>  > git fetch --tags --progress https://github.com/wso2/carbon-device-mgt.git null:refs/remotes/origin/f4ebd9cb-e8f7-4b35-9b56-f9196099a002[ERROR] [WSO2 Maven Release] merging the changes. Command "git fetch --tags --progress https://github.com/wso2/carbon-device-mgt.git null:refs/remotes/origin/f4ebd9cb-e8f7-4b35-9b56-f9196099a002" returned status code 128:
> stdout:
> stderr: fatal: Couldn't find remote ref null
> Unexpected end of command stream
>
> hudson.plugins.git.GitException: Command "git fetch --tags --progress https://github.com/wso2/carbon-device-mgt.git null:refs/remotes/origin/f4ebd9cb-e8f7-4b35-9b56-f9196099a002" returned status code 128:
> stdout:
> stderr: fatal: Couldn't find remote ref null
> Unexpected end of command stream
>
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1643)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:352)
> 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
> 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
> 	at hudson.remoting.Request$2.run(Request.java:336)
> 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
> 	at hudson.remoting.Engine$1$1.run(Engine.java:94)
> 	at java.lang.Thread.run(Thread.java:748)
> 	at ......remote call to JNLP4-connect connection from ip-172-19-1-29.ap-southeast-1.compute.internal/172.19.1.29:55720(Native Method)
> 	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
> 	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
> 	at hudson.remoting.Channel.call(Channel.java:830)
> 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
> 	at sun.reflect.GeneratedMethodAccessor652.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
> 	at com.sun.proxy.$Proxy123.execute(Unknown Source)
> 	at org.jvnet.hudson.plugins.m2release.ReleaseEnvironment.finalizeSCMRepo(ReleaseEnvironment.java:259)
> 	at org.jvnet.hudson.plugins.m2release.ReleaseEnvironment.tearDown(ReleaseEnvironment.java:104)
> 	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:902)
> 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
> 	at hudson.model.Run.execute(Run.java:1728)
> 	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
> 	at hudson.model.ResourceController.execute(ResourceController.java:98)
> 	at hudson.model.Executor.run(Executor.java:405)
>  > git config core.sparsecheckout # timeout=10
>  > git checkout -f
>  > git branch -a -v --no-abbrev # timeout=10
>  > git branch -D f4ebd9cb-e8f7-4b35-9b56-f9196099a002 # timeout=10
> ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users at googlegroups.com
> hudson.plugins.git.GitException: Could not checkout f4ebd9cb-e8f7-4b35-9b56-f9196099a002 with start point null
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2235)
> 	at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.checkoutBranch(AbstractGitAPIImpl.java:81)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkoutBranch(CliGitAPIImpl.java:71)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:895)
> 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:870)
> 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:829)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
> 	at hudson.remoting.Request$2.run(Request.java:336)
> 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
> 	at hudson.remoting.Engine$1$1.run(Engine.java:94)
> 	at java.lang.Thread.run(Thread.java:748)
> 	at ......remote call to JNLP4-connect connection from ip-172-19-1-29.ap-southeast-1.compute.internal/172.19.1.29:55720(Native Method)
> 	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
> 	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
> 	at hudson.remoting.Channel.call(Channel.java:830)
> 	at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:257)
> 	at com.sun.proxy.$Proxy121.checkoutBranch(Unknown Source)
> 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl.checkoutBranch(RemoteGitImpl.java:324)
> 	at org.jvnet.hudson.plugins.m2release.ReleaseEnvironment.finalizeSCMRepo(ReleaseEnvironment.java:273)
> 	at org.jvnet.hudson.plugins.m2release.ReleaseEnvironment.tearDown(ReleaseEnvironment.java:104)
> 	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:902)
> 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
> 	at hudson.model.Run.execute(Run.java:1728)
> 	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
> 	at hudson.model.ResourceController.execute(ResourceController.java:98)
> 	at hudson.model.Executor.run(Executor.java:405)
> Caused by: hudson.plugins.git.GitException: Could not delete branch f4ebd9cb-e8f7-4b35-9b56-f9196099a002
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.deleteBranch(CliGitAPIImpl.java:2319)
> 	at hudson.plugins.git.GitAPI.deleteBranch(GitAPI.java:222)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2201)
> 	at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.checkoutBranch(AbstractGitAPIImpl.java:81)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkoutBranch(CliGitAPIImpl.java:71)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:895)
> 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:870)
> 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:829)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
> 	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
> 	at hudson.remoting.Request$2.run(Request.java:336)
> 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
> 	at hudson.remoting.Engine$1$1.run(Engine.java:94)
> 	at java.lang.Thread.run(Thread.java:748)
> Caused by: hudson.plugins.git.GitException: Command "git branch -D f4ebd9cb-e8f7-4b35-9b56-f9196099a002" returned status code 1:
> stdout:
> stderr: error: Cannot delete the branch 'f4ebd9cb-e8f7-4b35-9b56-f9196099a002' which you are currently on.
>
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1892)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1888)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1533)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1545)
> 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.deleteBranch(CliGitAPIImpl.java:2317)
> 	... 20 more
>
>
> [1] https://wso2.org/jenkins/job/platform-builds/job/
> carbon-device-mgt/2881/
> [2] https://github.com/wso2/carbon-device-mgt/tree/release-3.0.213-q588
>
> P.S. We haven't received any build failure mail to builder at wso2.org
> regarding this failure.
>
> Thanks & regards,
> /charithag
> --
> *Charitha Goonetilleke*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 751 3669 <%2B94777513669>
> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
> <https://www.facebook.com/charithag>, linkedin: charithag
> <http://www.linkedin.com/in/charithag>
>
> <http://wso2.com/signature>
>



-- 
*Charitha Goonetilleke*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 751 3669 <%2B94777513669>
Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
<https://www.facebook.com/charithag>, linkedin: charithag
<http://www.linkedin.com/in/charithag>

<http://wso2.com/signature>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://wso2.org/pipermail/builder/attachments/20180126/f015b4eb/attachment-0001.html>


More information about the Builder mailing list