-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[FIXED JENKINS-52259] Add yamlFile option for Declarative agent #355
Conversation
If given, it'll read from the specified file via `readTrusted` and use that for the yaml to pass on.
this is the error I'm getting trying to build
|
@carlossg - works in my test env - looks like https://jenkins.gke.csanchez.org/blue/organizations/jenkins/jenkinsci%2Fkubernetes-plugin/detail/PR-355/4/pipeline#step-30-log-251 may be the relevant bit? git not installed on the "master" image? |
Well, slightly more accurately, the test still fails for me due to the agent not being able to talk to the Jenkins master, but I'm fairly sure that's just a botched setup of mine, and the |
…n't access the localhost disk for the git repo
Got past that, hit another gotcha in that the auto-checkout of the SCM in the actual Jenkinsfile didn't work because the repo's URL is...a path on the host we're running Maven on, which the container obviously can't get at it. Easy fix - just added |
ok, now the example runs with hpi:run |
JENKINS-52259
If given, it'll read from the specified file via
readTrusted
and usethat for the yaml to pass on.
I don't have a local k8s env on my laptop so I haven't actually tested this yet. =)