-
Notifications
You must be signed in to change notification settings - Fork 30
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
Question: What is the best way to include plugins in images #33
Comments
I would also like a simple solution to this. |
My fragile and hacky solution to this issue, is to run the agent in the build, until I see a particular log line that seems to indicate the update is finished. #!/bin/bash
echo "Running agent update"
export SERVER_URL="https://example.com"
output=$(mktemp -u)
mkfifo "$output"
# Run agent to fetch updates. Until update is finished
cat "$output"& /run-services.sh | tee "$output" | (grep -q -m 1 -F "Updating agent parameters on the server"; /opt/buildagent/bin/agent.sh stop)
echo "Deleting generated config"
rm -Rf /data/teamcity_agent/conf/* |
Let me add few cents here, I'm downloading plugins based on the list available on EDIT: looks like only the external plugins get redownloaded, so now just to find a reason why and how to fix that EDIT: so I was able to fix this:
Then the agent is started without any downloading of plugins and ready to use 😃 |
When starting a cloud agent via the TeamCity Kubernetes plugin, there is a warning:
What is the best way to get the latest plugins for building a custom image?
Is the only way to copy the plugins dir from an existing updated agent?
Or is there a way to download the buildAgent.zip with plugins from the server?
I was planning on doing something like:
But buildAgent.zip from the server does not include any plugins.
The text was updated successfully, but these errors were encountered: