1. - builder:
  2. name: bootstrap-container
  3. builders:
  4. - shell: |
  5. env > $WORKSPACE/vars
  6. export DOCKER_HOST=127.0.0.1:4243
  7. docker run \
  8. --rm=true \
  9. --name=$BUILD_TAG \
  10. --env-file=$WORKSPACE/vars \
  11. -e "SSH_AUTH_SOCK=/tmp/ssh_sock/$(basename $SSH_AUTH_SOCK)" \
  12. -e "JOB_NAME={job_name}" \
  13. -u jenkins \
  14. -v "$WORKSPACE:$WORKSPACE:rw" \
  15. -v "$(dirname $SSH_AUTH_SOCK):/tmp/ssh_sock" \
  16. -w $WORKSPACE \
  17. 127.0.0.1:5000/slave/{distro} \
  18. $WORKSPACE/bootstrap --conf-dir={dir}
  19. - job-template:
  20. name: 'Merge-{proj}-Ply'
  21. description: >
  22. Merge changes from upstream using ply
  23. <br><br>
  24. This job is managed by jenkins-job-builder. Changes made through
  25. the web interface will be lost!
  26. node: 'big-slave'
  27. parameters:
  28. - bool:
  29. name: 'pull_disabled'
  30. default: false
  31. description: "If true, upstream will not be pulled"
  32. - bool:
  33. name: 'tests_disabled'
  34. default: false
  35. description: "If true, tests will not be executed"
  36. scm:
  37. - git:
  38. url: 'repo.git'
  39. name: ''
  40. refspec: ''
  41. wipe-workspace: false
  42. clean: true
  43. branches:
  44. - 'master'
  45. builders:
  46. - bootstrap-container:
  47. dir: {dir}
  48. job_name: 'Merge-{proj}-Ply'
  49. distro: 'debian6'
  50. wrappers:
  51. - ssh-agent-credentials:
  52. user: 'xxxxxx'
  53. - timestamps
  54. - inject-passwords:
  55. global: True
  56. - project:
  57. name: Merge-project-Ply
  58. proj:
  59. - 'neutron'
  60. jobs:
  61. - 'Merge-{proj}-Ply':
  62. dir: 'etc/neutron'