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

Add JobApi#getJob(String) #1236

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add JobApi#getJob(String) #1236

wants to merge 1 commit into from

Conversation

jmini
Copy link
Collaborator

@jmini jmini commented Mar 10, 2025

Follow up of #1233 to add the the getJob() method where the ci-token can be passed as query parameter.

@tkruse
Copy link

tkruse commented Mar 10, 2025

LGTM

Response response = get(Response.Status.OK, null, "job");
return (response.readEntity(Job.class));
}

/**
* Retrieve the job corresponding to the <code>$CI_JOB_TOKEN</code> environment variable.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works only without any authentication, maybe this information would be needed in the javadoc

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

Successfully merging this pull request may close these issues.

2 participants