Talk:Jenkins
From BCCD 3.0
Contents |
Building jobs automatically
jenkins-job-builder
- Will try Jenkins Job Builder. Installs easily from deb package
jenkins-job-builder
- Examples in documentation consist of unusable snippets. Actual full, working examples here
- Can define
defaults
stanzas that job-templates point to by name with adefaults
attribute - While it says it uses password authentication with Jenkins, the documentation says it is actually an API token
- Sample command:
python3-jenkins-jobs update ~/svnroot/bccd-ng/branches/skylar/bccd-3.4.0-build_ng/jenkins/job_builder.yml
Equivalents
- Execute command:
builders
dictionary withshell
- Archive artifact:
archive
dictionary withartifact
keys - Child project:
pipeline
dictionary withprojects
list
Tips
- Escape literal
{
to pass to a shell with{{
Bugs
-
url
setting inini
does not build URLs with directories properly (i.e. http://localhost:8080 works, http://localhost:8080/jenkins does not)