我在脚本模式下使用Jenkins Artifactory插件。直到2.16版本,一切都很好。在版本3中,它在调用run时挂起。试过Jenkins LTS和每周。
Jenkinsfile:
节点(标签:“linux”) {defkserver = Artifactory.server“konsecartifactory”defrtgradle = Artifactory.newGradleBuild() def buildInfo def uploadSpec = """{“文件”: [{“模式”:“构建/ libs / * -fat.jar”,“目标”:“libs-snapshot-local / com/konsec/xxxx”}]}"""结帐SCM阶段(“Artifactory配置”) {// Jenkins配置中的工具名rtGradle。usesPlugin =真正的rtGradle。useWrapper =真正的//设置工件存储库为依赖项解析和工件部署。rtGradle。解析器服务器:kserver, repo:“libs-release”rtGradle.deployer server: kserver, repo:“libs-release-local”}阶段(“Gradle构建”) {buildInfo = rtGradle.run tasks:“清洁artifactoryPublish”}}
输出:
由用户安德里亚斯·麦克开始重播#185在耐久性级别运行:MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /data/jenkinshome/workspace/xxxx [Pipeline] {[Pipeline] getArtifactoryServer [Pipeline] newGradleBuild [Pipeline] checkout using credential 887228a7-6226-4e3b-9ba2-de269a6a3e98 > /opt/rh/rh-git29/root/usr/libexec/git-core/git revv -parse——is-in -work-tree # timeout=10从远程git存储库获取更改> /opt/rh/rh-git29/root/usr/libexec/git-core/git config remote.origin.urlssh: / / jenkins@xxxx / xxxx / xxx。git # timeout=10从ssh://jenkins@xxxx/xxxx/xxx获取上游更改。git > /opt/rh/rh-git29/root/usr/libexec/git-core/git——version # timeout=10 using GIT_SSH设置凭据> /opt/rh/rh-git29/root/usr/libexec/git-core/git fetch——tags——progress ssh://jenkins@xxxxxx/xxxx/xxx。git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10检查版本43b71fbfdc268989a69490cb369826b50a65e1fe (refs/remotes/origin/master) > /opt/rh/rh-git29/root/usr/libexec/git-core/git config core。/opt/rh/rh-git29/root/usr/libexec/git-core/git checkout -f 43b71fbfdc268989a69490cb369826b50a65e1fe # timeout=10提交消息:> /opt/rh/rh-git29/root/usr/libexec/git-core/git rev-list——no-walk 43b71fbfdc268989a69490cb369826b50a65e1fe # timeout=10 [Pipeline] stage [Pipeline]{(人工配置)[Pipeline]} [Pipeline] // stage [Pipeline] stage [Pipeline] {(Gradle构建)[Pipeline] newBuildInfo [Pipeline] ArtifactoryGradleBuild
- 与…有关
-
hap - 1144使用最新的Git版本进行构建
- Resolved
A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
- Resolved