From 80d8f71db6410b2818eb3222fbd0dd033a00e193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Or=C3=B3n=20Mart=C3=ADnez?= <hector.oron@collabora.co.uk> Date: Wed, 20 Dec 2017 13:25:56 +0100 Subject: [PATCH] jenkins_jobs: move them in from customizations project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To be able to keep self contained project, move in jenkins jobs from `apertis-image-customizations`. Signed-off-by: Héctor Orón MartÃnez <hector.oron@collabora.co.uk> Reviewed-by: Emanuele Aina <emanuele.aina@collabora.com> Differential Revision: https://phabricator.apertis.org/D7396 --- jenkins_jobs/README | 32 ++++++++++++++++++++++++++++++++ jenkins_jobs/apertis-debos.yaml | 9 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 jenkins_jobs/README create mode 100644 jenkins_jobs/apertis-debos.yaml diff --git a/jenkins_jobs/README b/jenkins_jobs/README new file mode 100644 index 0000000..088ffc2 --- /dev/null +++ b/jenkins_jobs/README @@ -0,0 +1,32 @@ +This directory contains the Jenkins jobs in YAML format to build Apertis +images. + +Some tools are needed to be installed previously to attempt to run the jobs. + + * jenkins-job-builder (=> 2.0.0) with pipeline support + Upstream documentation: + http://docs.openstack.org/infra/jenkins-job-builder/ + https://jenkins.io/doc/book/pipeline/ + + Package is distributed from the Apertis tools repository: + apt-get install jenkins-job-builder + + Once the package is installed, credentials need to be configured. See + manual page: + http://docs.openstack.org/infra/jenkins-job-builder/execution.html + +Usage +===== + +Once jenkins-job-builder gets installed on the host system, one should be able +to test review the jobs: + + mkdir /tmp/jobs ; jenkins-jobs test <jenkins_job.yaml> -o /tmp/jobs + +the jobs in XML format should be in the /tmp/jobs directory for inspection. + +Jobs can be uploaded to the Jenkins master: + + jenkins-jobs update <jenkins_job.yaml> + +Go to jenkins UI and review the jobs. diff --git a/jenkins_jobs/apertis-debos.yaml b/jenkins_jobs/apertis-debos.yaml new file mode 100644 index 0000000..c347dcc --- /dev/null +++ b/jenkins_jobs/apertis-debos.yaml @@ -0,0 +1,9 @@ +- job: + name: 'apertis-18.03/images/debos-image-build' + project-type: pipeline + pipeline-scm: + scm: + - git: + url: https://git.apertis.org/git/apertis-image-recipes.git + branches: + - '*/master' -- GitLab