Started by user root Building in workspace /root/.jenkins/jobs/project____android-data-trade-sample/workspace Checkout:workspace / /root/.jenkins/jobs/project____android-data-trade-sample/workspace - hudson.remoting.LocalChannel@3ca2d904 Using strategy: Default Fetching changes from 1 remote Git repository Fetching upstream changes from git://github.com/kakakikikeke/android-data-trade-sample.git Seen branch in repository origin/HEAD Seen branch in repository origin/master Commencing build of Revision fc5c1e5930cff29f44d5b04f0b8efd98f3c03442 (origin/HEAD, origin/master) Checking out Revision fc5c1e5930cff29f44d5b04f0b8efd98f3c03442 (origin/HEAD, origin/master) FATAL: Could not apply tag jenkins-project____android-data-trade-sample-2 hudson.plugins.git.GitException: Could not apply tag jenkins-project____android-data-trade-sample-2 at hudson.plugins.git.GitAPI.tag(GitAPI.java:737) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1320) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1268) at hudson.FilePath.act(FilePath.java:851) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1268) at hudson.model.AbstractProject.checkout(AbstractProject.java:1308) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:679) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Command "git tag -a -f -m Jenkins Build #2 jenkins-project____android-data-trade-sample-2" returned status code 128: stdout: stderr: *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'root@yoshi3.(none)') at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:786) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:748) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:758) at hudson.plugins.git.GitAPI.tag(GitAPI.java:735) ... 13 more
なんやこれ!なんやこれ・・・
って結構悩んだ
で、結局原因は
glassfish上で動かしていたため
実はちょっと前にアプリサーバをtomcatからglassfishに切り替えてそのときにJenkinsのコンテナもそちらに移動した
確かにそのときは起動したところまでくらいしか確認してなかったからな・・・
まさかそんなところに原因があったとは・・・
ちなみに
Jenkinsでcapistranoを連携しているジョブでも以下のようなログが大量に吐かれてました
Started by user root Building in workspace /root/.jenkins/jobs/deploy_____shorten-the-url/workspace [workspace] $ /bin/sh -xe /tmp/hudson4760269984174449186.sh + cd /usr/local/cap + cap deploy:update_code /tmp/hudson4760269984174449186.sh: line 3: cap: command not found Build step 'Execute shell' marked build as failure Finished: FAILURE
上記もtomcatに戻したらエラー吐かなくなりやした
ってことを考えると環境変数的なやつがglassfish上だと受け継がれてないような気がします
まぁ自分はglassfishあきらめてtomcatにしましたけどね!!w
0 件のコメント:
コメントを投稿