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

原因:包路径没有权限

你可能感兴趣的:(报错记录)