git 构建报错

钉钉插件]当前任务未配置机器人,已跳过

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

WorkflowScript: 4: Tool type "maven" does not have an install of "maven-3.8.8" configured - did you mean "Maven-3.8.8"? @ line 4, column 15.

maven 'maven-3.8.8'

^

1 error

复制代码
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:635)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:581)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)

钉钉插件\]当前任务未配置机器人,已跳过 \[withMaven\] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: popeline-job-002 #20 did not yet start \[withMaven\] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: popeline-job-002 #20 did not yet start Finished: FAILURE 解决 流程线里面的要和jenkins系统管理里面的名字要保存一致 ![在这里插入图片描述](https://file.jishuzhan.net/article/1726543440965013505/685ecab5d577e660ac2d93e2a14f3460.webp) ![在这里插入图片描述](https://file.jishuzhan.net/article/1726543440965013505/f7928a9bf97e6aa0521feba5c2ccf0af.webp) 如果提示glone 认证失败 生成ssh没有,添加公钥到gitlab中 这个是Git仓库URL不正确:请确保在Jenkins任务配置的Git源码管理器部分准确设置了Git仓库的URL。检查URL是否存在任何拼写错误或语法错误(例如,是否存在附加的.git扩展名) \[Pipeline\] withEnv \[Pipeline\] { \[Pipeline\] git The recommended git tool is: NONE using credential gitlab-root-credential Fetching changes from the remote Git repository ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://192.168.1.50/root/spring-boot-helloWorld.gitt at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.jav 构建和上传镜像找不到docker.sock,添加 -H tcp://127.0.0.1:2376 stage('Build Docker Image') { steps { sh 'docker -H tcp://127.0.0.1:2376 build . -t "${imageUrl}:${imageTag}"' } } ```bash + docker build . -t harbor.luohw.net/ikubernetes/spring-boot-helloworld:latest ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied ``` 后来排查是在代理节点运行了,断开即可 ![在这里插入图片描述](https://file.jishuzhan.net/article/1726543440965013505/fb1e889dff1380311c08f4531b8370f4.webp)

相关推荐
即使再小的船也能远航5 小时前
【Git】实用Git操作指南:从入门到高效协作
git
<但凡.16 小时前
Git 完全手册:从入门到团队协作实战(4)
git·bash
SugarPPig16 小时前
Git 创建一个完全没有提交历史的 master 分支
git
lb29172 天前
git的使用,推送仓库github
git·github
躲在云朵里`2 天前
Git的使用
大数据·git·elasticsearch
悟能不能悟2 天前
在 IntelliJ IDEA 中打开这个用于设置 Git 用户名(Name)和邮箱(Email)的特定弹窗
java·git·intellij-idea
威威猫的栗子3 天前
Git 使用全指南:从配置到免密登录
大数据·git·vscode
Casia_Dominic3 天前
【tmux无法使用鼠标滚轮滚动页面的问题】解决方案
linux·git·github·tmux
Justice link3 天前
Nginx和Apache的区别
git
物联网软硬件开发-轨物科技3 天前
【轨物方案】分布式光伏电站运维升级智能化系列:老电站的数智化重生
运维·人工智能·分布式·git