kubesphere-devops-system ks-jenkins-77f68c645c-lntmz 1/1 Running 0 4h14m 10.233.111.82 k8s-master <none> <none>
kubesphere-devops-system maven-53w67 ½ Terminating 0 50s 10.233.68.70 k8s-work1 <none> <none>
kubesphere-devops-system maven-vc5fn 2/2 Running 0 10s 10.233.68.71 k8s-work1 <none> <none>
maven pod log:
[root@k8s-master ~]# kubectl logs -f -n kubesphere-devops-system maven-trbgl
error: a container name must be specified for pod maven-trbgl, choose one of: [jnlp maven]
[root@k8s-master ~]# kubectl logs -f -n kubesphere-devops-system maven-trbgl -c jnlp
Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behavior
Warning: SECRET is defined twice in command-line arguments and the environment variable
Warning: AGENT_NAME is defined twice in command-line arguments and the environment variable
Feb 14, 2022 10:23:24 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: maven-trbgl
Feb 14, 2022 10:23:24 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Feb 14, 2022 10:23:24 AM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 3.27
Feb 14, 2022 10:23:24 AM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /home/jenkins/agent/remoting as a remoting work directory
Both error and output logs will be printed to /home/jenkins/agent/remoting
Feb 14, 2022 10:23:24 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://ks-jenkins.kubesphere-devops-system:80/]
Feb 14, 2022 10:23:55 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: Failed to connect to http://ks-jenkins.kubesphere-devops-system:80/tcpSlaveAgentListener/: connect timed out
java.io.IOException: Failed to connect to http://ks-jenkins.kubesphere-devops-system:80/tcpSlaveAgentListener/: connect timed out
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:196)
at hudson.remoting.Engine.innerRun(Engine.java:523)
at hudson.remoting.Engine.run(Engine.java:474)
Caused by: java.net.SocketTimeoutException: connect timed out