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 support for Jenkins agent jar file location in the environment variable JENKINS_AGENT_FILE #860

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

zhan9san
Copy link
Contributor

Testing done

Fixes #859

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Currently, the Jenkins agent jar file location is hardcoded in /usr/share/jenkins/agent.jar.

The jar file may be downloaded by the user who does not have write permission to directory, /usr/share/jenkins.

It would be great if the location can be customized in the environment variable.

@zhan9san zhan9san requested a review from a team as a code owner August 16, 2024 07:45
dduportal
dduportal previously approved these changes Aug 16, 2024
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

May I ask you to also update the associated README (https://github.com/jenkinsci/docker-agent/blob/master/README_inbound-agent.md) to document this new feature please? You may do it on this PR, or a subsequent "documentation only" PR: the easier for you!

Other than that the PR looks good to me! I'll take care (as maintainer) to have this merged and released in the next 24 hours

@zhan9san
Copy link
Contributor Author

Great thanks.

The doc is updated as well. PR is rebased from master and the commit is squashed as well

@dduportal dduportal merged commit a4e516f into jenkinsci:master Aug 16, 2024
10 checks passed
@zhan9san zhan9san deleted the feature/jenkins-agent-jar-file branch August 16, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing support for agent.jar location
2 participants