Jenkins - 发送邮件:ERROR: Could not send email as a part of the post-build publishers.
解决方案:
配置一个凭证username and password 类型的凭证:
username: 发送邮件的邮箱账户
pwd: 该邮箱的授权码
在:Extended E-mail Notification 中添加
解决方案链接:https://blog.csdn.net/qq_35078688/article/details/126893344
创建slave node的时候执行下面命令,在运行第二条命令后:
curl -sO http://127.0.0.1:8080/jnlpJars/agent.jar
java -jar agent.jar -url http://127.0.0.1:8080/ -secret 6b1f6481fb8bd30bd61a168098d65d2aa10ee38e8f9594c18bc501dcfe7a5b2b -name sky -workDir "/Users/zhangjiangying/Downloads/jenkins_node_sky"
报错:
3月 24, 2024 11:22:19 上午 hudson.remoting.Launcher$CuiListener status
信息: Locating server among [http://localhost:8080/]
3月 24, 2024 11:22:19 上午 hudson.remoting.Launcher$CuiListener status
信息: Could not locate server among [http://localhost:8080/]; waiting 10 seconds before retry
java.io.IOException: http://localhost:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:222)
at hudson.remoting.Engine.innerRun(Engine.java:809)
at hudson.remoting.Engine.run(Engine.java:563)
解法:
1、进入此页面:http://127.0.0.1:8080/manage/configureSecurity/
2、把【禁用】改成【随机】
3、保存后再执行刚才的命令,slave node机器部署成功
zhangjiangying:jenkins_node_sky zhangjiangying$ java -jar agent.jar -url http://127.0.0.1:8080/ -secret 6b1f6481fb8bd30bd61a168098d65d2aa10ee38e8f9594c18bc501dcfe7a5b2b -name sky -workDir "/Users/zhangjiangying/Downloads/jenkins_node_sky"
3月 24, 2024 11:32:59 上午 org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
信息: Using /Users/zhangjiangying/Downloads/jenkins_node_sky/remoting as a remoting work directory
3月 24, 2024 11:32:59 上午 org.jenkinsci.remoting.engine.WorkDirManager setupLogging
信息: Both error and output logs will be printed to /Users/zhangjiangying/Downloads/jenkins_node_sky/remoting
3月 24, 2024 11:32:59 上午 hudson.remoting.Launcher createEngine
信息: Setting up agent: sky
3月 24, 2024 11:32:59 上午 hudson.remoting.Engine startEngine
信息: Using Remoting version: 3206.vb_15dcf73f6a_9
3月 24, 2024 11:32:59 上午 org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
信息: Using /Users/zhangjiangying/Downloads/jenkins_node_sky/remoting as a remoting work directory
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Locating server among [http://127.0.0.1:8080/]
3月 24, 2024 11:33:00 上午 org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
信息: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Agent discovery successful
Agent address: 127.0.0.1
Agent port: 56825
Identity: 7e:9b:3f:96:c4:ac:62:8a:e5:dd:24:56:19:89:7a:46
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Handshaking
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Connecting to 127.0.0.1:56825
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Server reports protocol JNLP4-connect-proxy not supported, skipping
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Trying protocol: JNLP4-connect
3月 24, 2024 11:33:00 上午 org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
信息: Waiting for ProtocolStack to start.
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Remote identity confirmed: 7e:9b:3f:96:c4:ac:62:8a:e5:dd:24:56:19:89:7a:46
3月 24, 2024 11:33:00 上午 hudson.remoting.Launcher$CuiListener status
信息: Connected