jenkinsci / jenkinsci/java-client-api
status code: 403, reason phrase: Forbidden
- Lenguaje dominante
- Java
- Estrellas
- 913
- Forks
- 466
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
`JenkinsServer jenkins = new JenkinsServer(new URI("url"), JENKINS_USERNAME, JENKINS_PASSWORD);
`
`if (jenkins.isRunning()) {
jenkins.getJob(JENKINS_JOB).build();
System.out.println(jenkins.getJob(JENKINS_JOB).getLastBuild().details().getResult());
}`
i set the correct username and password. but still status code: 403, reason phrase: Forbidden
the jenkins user is super admin
Guía de contribución
Línea de trabajo
Start by reproducing the reported Java snippet with JenkinsServer, isRunning(), and getJob().build(), then inspect how the client sends credentials for the job request. Confirm whether the same credentials can access and trigger JENKINS_JOB in Jenkins; done means identifying the cause of the 403 or documenting the required authentication behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100