jenkins - ant svn任务无限期陷入困境

时间:2015-09-04 14:17:04

标签: java svn ant jenkins

作为构建自动化的一部分,我们使用jenkins运行各种ant任务。当构建脚本遇到任何ant svn任务时,我们正在观察未知行为,其中构建过程无限期地被卡住,直到我们使用ant svn任务的“已启动”消息中止该行为。例如,对于ant svn mkdir任务,下面是jenkins中显示的输出,

    Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/Create Release
[scripts] $ /opt/apps/common/ABE/ant/bin/ant -file build.xml ******** -Dsvn.user=anab -Dpackage.todeploy=TestPackage -Dsvn.release.source.revison=HEAD -Denv=vm01 -Drelease.name=R2.2.1 create-release-vcs
Buildfile: /opt/apps/build-automation/src/com/india/buildtools/scripts/build.xml

-check:

create-release-vcs:

-check:

-check-svn-properties:

-create-svn-release-tag:
     [echo] **************************************
     [echo] Create relase tag for project [${build.project.id}]
     [echo] 
     [echo] BUILD-ID: ${build.id}
     [echo] BRANCH: ${build.branch.name}
     [echo] VERSION: 9.5
     [echo] **************************************
     [echo] Tagging Release ${svn.release.name}...
     [echo] **************************************
      [svn] <Mkdir> started ...

修改

构建脚本

<antcontrib:trycatch>
            <try>
                <svn username="${svn.user}" password="${svn.password}" javahl="true"
                    failonerror="true">
                    <mkdir url="${svn.packages.release.destination}/${release.name}"
                        message="Creating release tag directory ${release.name}" />
                </svn>
            </try>
            <catch>
                <fail
                    message="Invalid Tag name or release tag directory [${svn.packages.release.destination}/${release.name}] already exists." />
            </catch>
</antcontrib:trycatch>

编辑2

我已经推出了一些工作并让它们继续运行。最后,对于复制任务,它失败了以下日志,

    [svn] <Copy> started ...
      [svn] svn: connection refused by the server
      [svn] svn: OPTIONS request failed on '/svn/Project/Codebase/ui-modules/TestUI-portlet'
      [svn] svn: connection refused by the server
      [svn] svn: OPTIONS request failed on '/svn/Project/Codebase/ui-modules/TestUI-portlet'
      [svn] Connection timed out
      [svn] <Copy> failed !

BUILD FAILED
/opt/apps/ui-build-automation/liferay-plugins-sdk-6.2.0/SVNSCripts/build.xml:26: The following error occurred while executing this line:
/opt/apps/ui-build-automation/liferay-plugins-sdk-6.2.0/SVNSCripts/build-base.xml:58: The following error occurred while executing this line:
/opt/apps/ui-build-automation/liferay-plugins-sdk-6.2.0/SVNSCripts/build-base.xml:45: Can't copy

Total time: 876 minutes 49 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE

任何有助于确定问题的帮助都将受到赞赏。

0 个答案:

没有答案