Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires Java 17 Agent #465

Closed
sslyc opened this issue Feb 11, 2022 · 4 comments
Closed

Requires Java 17 Agent #465

sslyc opened this issue Feb 11, 2022 · 4 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@sslyc
Copy link

sslyc commented Feb 11, 2022

What is version of KubeSphere DevOps has the issue?

v3.2.1

How did you install the Kubernetes? Or what is the Kubernetes distribution?

KubeKey

Describe this feature

The devops-system does not support Java 17 so far. It is necessary to add this feature in the next version.

Additional information

No response

@sslyc sslyc added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 11, 2022
@JohnNiang
Copy link
Member

Feel free to try this workaround:

pipeline {
  agent {
    kubernetes {
      inheritFrom 'maven base'
      containerTemplate {
        name 'maven'
        image 'maven:3.8.4-openjdk-17'
      }
    }
  }
  stages {
    stage('Print JDK version') {
      steps {
        container('maven') {
          sh 'java -version'
        }
        container('base') {
          sh 'git --version'
        }
      }
    }
  }
}

@sslyc
Copy link
Author

sslyc commented Feb 14, 2022

Feel free to try this workaround:

pipeline {
  agent {
    kubernetes {
      inheritFrom 'maven base'
      containerTemplate {
        name 'maven'
        image 'maven:3.8.4-openjdk-17'
      }
    }
  }
  stages {
    stage('Print JDK version') {
      steps {
        container('maven') {
          sh 'java -version'
        }
        container('base') {
          sh 'git --version'
        }
      }
    }
  }
}

Thx for replying. I've built a java-agent image locally, that already solved the problem. I'll try the way you mentioned as another realization. In my opinion, Java 17 as a LTS version, the official image may be supplied.

Thanks a lot.

@JohnNiang
Copy link
Member

@sslyc
Copy link
Author

sslyc commented Feb 22, 2022

Hi @sslyc , please refer to

That's quite a nice idea. Hopes it coming true soon. I'll follow that issue. And this one shall be closed.

@sslyc sslyc closed this as completed Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants