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

Jenkins could not obtain system attributes. The obtained property:jenkinsVersion=-1 #240

Open
revertXC opened this issue May 26, 2022 · 0 comments

Comments

@revertXC
Copy link

Current Behavior

SystemInfo{errors=[Error{context=null, message=Null server, exceptionName=java.lang.NullPointerException}], hudsonVersion=-1, jenkinsVersion=-1, jenkinsSession=-1, instanceIdentity=-1, sshEndpoint=-1, server=-1}

Steps to Reproduce (for bugs)

public static void main(String[] args) throws Exception {
JenkinsClient client = JenkinsClient.builder()
.endPoint("http://127.0.0.1:19999/jenkins")
.credentials("root:root")
.build();
SystemInfo systemInfo = client.api().systemApi().systemInfo();
System.out.println(systemInfo);
}

Your Environment

<dependency> <groupId>io.github.cdancy</groupId> <artifactId>jenkins-rest</artifactId> <version>1.0.1</version> </dependency>

Jenkins 2.332.3

@revertXC revertXC changed the title Jenkins could not obtain system attributes Jenkins could not obtain system attributes. May 26, 2022
@revertXC revertXC changed the title Jenkins could not obtain system attributes. Jenkins could not obtain system attributes. The obtained property:jenkinsVersion=-1 May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant