Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66166

Jenkins 2.289.2 版本的jenkins-slava 主动请求master主节点连接超时, 构建失败

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: kubernetes-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.289.2版本
      centos7 环境
    • Similar Issues:

      Description

      一些配置在jenkins2.278版本上使用没问题。

      //Dockerfile
      FROM nipsuli/docker-jnlp-slave-kubectl
      MAINTAINER DUKANG <@163.COM>
      ENV MAVEN_VERSION=3.6.3
      USER root
      COPY apache-maven-3.6.3-bin.tar.gz .
      RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
      rm -f apache-maven-3.6.3-bin.tar.gz && \
      ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
      ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
      mkdir -p /usr/local/apache-maven/repo
      COPY settings.xml /usr/local/apache-maven/conf/settings.xml
      RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
      COPY jdk-8u291-linux-x64.tar.gz .
      RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
      rm -f jdk-8u291-linux-x64.tar.gz
      # 设置JAVA环境变量
      ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
      ENV JRE_HOME ${JAVA_HOME}/jre
      ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
      ENV PATH ${JAVA_HOME}/bin:$PATH
      # 设置MAVEN环境变量
      ENV MAVEN_HOME /usr/local/apache-maven
      ENV PATH ${MAVEN_HOME}/bin:$PATH符
      

       

       

       

      Jenkins 2.289.2版本上 报错 如下

      kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkins

      我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

       

       

       

        Attachments

        1. image-2021-07-18-19-41-22-962.png
          152 kB
          jenkins2021
        2. image-2021-07-18-19-43-28-890.png
          160 kB
          jenkins2021
        3. image-2021-07-18-19-46-08-216.png
          273 kB
          jenkins2021
        4. image-2021-07-18-19-46-08-300.png
          216 kB
          jenkins2021
        5. image-2021-07-18-19-49-20-202.png
          157 kB
          jenkins2021
        6. image-2021-07-18-19-49-20-295.png
          94 kB
          jenkins2021
        7. image-2021-07-18-20-20-48-489.png
          137 kB
          jenkins2021
        8. image-2021-07-18-20-20-48-540.png
          77 kB
          jenkins2021
        9. image-2021-07-18-20-21-32-235.png
          48 kB
          jenkins2021
        10. image-2021-07-18-20-21-32-278.png
          28 kB
          jenkins2021
        11. image-2021-07-18-20-23-00-934.png
          122 kB
          jenkins2021
        12. image-2021-07-18-20-23-00-998.png
          79 kB
          jenkins2021
        13. image-2021-07-18-20-23-50-454.png
          116 kB
          jenkins2021
        14. image-2021-07-18-20-23-50-510.png
          77 kB
          jenkins2021

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jenkins2021 jenkins2021
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: