jenkins不能拉取maven依赖

Started by user admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/springboot-jenkins-1
using credential e4317405-b503-4a43-a46b-dac051025d2c
Cloning the remote Git repository
Cloning repository https://e.coding.net/weili/springboot-jenkins.git

/usr/bin/git init /var/lib/jenkins/workspace/springboot-jenkins-1 # timeout=10
Fetching upstream changes from https://e.coding.net/weili/springboot-jenkins.git
/usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials
/usr/bin/git fetch --tags --progress https://e.coding.net/weili/springboot-jenkins.git +refs/heads/:refs/remotes/origin/ # timeout=10
/usr/bin/git config remote.origin.url https://e.coding.net/weili/springboot-jenkins.git # timeout=10
/usr/bin/git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
/usr/bin/git config remote.origin.url https://e.coding.net/weili/springboot-jenkins.git # timeout=10
Fetching upstream changes from https://e.coding.net/weili/springboot-jenkins.git
using GIT_ASKPASS to set credentials
/usr/bin/git fetch --tags --progress https://e.coding.net/weili/springboot-jenkins.git +refs/heads/:refs/remotes/origin/ # timeout=10
/usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
/usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision b4f798b7637d246ce9cdc5471ec39a531c765032 (refs/remotes/origin/master)
/usr/bin/git config core.sparsecheckout # timeout=10
/usr/bin/git checkout -f b4f798b7637d246ce9cdc5471ec39a531c765032 # timeout=10
Commit message: “修复pom文件”
/usr/bin/git rev-list --no-walk b4f798b7637d246ce9cdc5471ec39a531c765032 # timeout=10
Parsing POMs
Failed to transfer Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.5.RELEASE from/to nexus-alimaven (http://maven.aliyun.com/repository/central/): /data/repository/org/springframework/boot/spring-boot-starter-parent/2.2.5.RELEASE/spring-boot-starter-parent-2.2.5.RELEASE.pom.part.lock (No such file or directory)
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.jb:jenkins:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.5.RELEASE from/to nexus-alimaven (http://maven.aliyun.com/repository/central/): /data/repository/org/springframework/boot/spring-boot-starter-parent/2.2.5.RELEASE/spring-boot-starter-parent-2.2.5.RELEASE.pom.part.lock (No such file or directory) and ‘parent.relativePath’ points at no local POM @ line 17, column 10

at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:383)
at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:370)
at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:340)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1329)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1126)
at hudson.FilePath.act(FilePath.java:1075)
at hudson.FilePath.act(FilePath.java:1058)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:987)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:691)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1880)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)

[springboot-jenkins-1] $ /bin/bash /tmp/jenkins5124300679957106197.sh
查询进程id–>springboot_jenkins
得到进程ID:22001
结束进程
/tmp/jenkins5124300679957106197.sh: line 20: kill: (22001) - No such process
killed 22001
结束进程完成
复制jar包到执行目录:cp /var/jenkins_home/workspace/springboot_jenkins/target/springboot_jenkins-0.0.1-SNAPSHOT.jar /var/jenkins_home/workspace/springboot_jenkins/target
cp: cannot stat ‘/var/jenkins_home/workspace/springboot_jenkins/target/springboot_jenkins-0.0.1-SNAPSHOT.jar’: No such file or directory
复制jar包完成
/tmp/jenkins5124300679957106197.sh: line 29: cd: /var/jenkins_home/workspace/springboot_jenkins/target: No such file or directory
chmod: cannot access ‘springboot_jenkins-0.0.1-SNAPSHOT.jar’: No such file or directory
Error: Unable to access jarfile springboot_jenkins-0.0.1-SNAPSHOT.jar
Finished: FAILURE

原因:包路径没有权限

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值