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

Is there Rest API to change image in Docker agent templates? #123

Open
danyang-intel opened this issue Jun 8, 2023 · 2 comments
Open

Is there Rest API to change image in Docker agent templates? #123

danyang-intel opened this issue Jun 8, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@danyang-intel
Copy link

danyang-intel commented Jun 8, 2023

What feature do you want to see added?

Hello team,
I'd like to query if there is REST API to change image in Swarm plugin's Docker agent templates?
In our use case, there are several docker agent templates and images might be changed frequently, so we'd like to just update the image value by REST API in some automation process.
Is it possible? Or any suggestion?
dockerSwarm

PS, another question, Is it supported to define docker agent by yaml in pipeline, like what k8s plugin does? We go though the doc but don't see it mentioned. I guess the answer is no, but want to get confirmation.
Thank you for the help.

Upstream changes

No response

@danyang-intel danyang-intel added the enhancement New feature or request label Jun 8, 2023
@optica-phoffmann
Copy link

We use Jenkins Configuration as Code (JCAC) to define swarm images in the yaml config file and update the Docker Agent Templates dynamically on demand.

@danyang-intel
Copy link
Author

Thank you for the sharing, @optica-phoffmann .
https://github.com/jenkinsci/configuration-as-code-plugin, right?
We'll have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants