diff --git a/README.md b/README.md new file mode 100644 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Jenkins jobs configuration + +This repository manages the jenkins jobs configuration. + +A [jenkins jobs] applies the configuration on jenkins when a commit is done in this repository + +[jenkins jobs]: https://jenkins.softwareheritage.org/job/jenkins-tools/job/swh-jenkins-job-builder + + +# Testing + +To test locally the configuration , simply run ``tox``: + +``` +tox +``` + +The output displays the jenkins configuration files as they will be applied on the server. diff --git a/jobs/swh-docker-dev.yaml b/jobs/swh-docker-dev.yaml new file mode 100644 --- /dev/null +++ b/jobs/swh-docker-dev.yaml @@ -0,0 +1,30 @@ +- job: + name: swh-docker-dev + description: Build the swh/stack:latest image + node: master + + scm: + - git: + url: https://forge.softwareheritage.org/source/swh-environment.git + branches: + - "*/master" + + triggers: + - timed: "@midnight" + + wrappers: + - timeout: + timeout: 30 + abort: true + - timestamps + + builders: + - shell: | + #!/bin/bash + cd docker + docker build --pull --build-arg=CASS_DRIVER_NO_CYTHON=1 --no-cache -t swh/stack . + tox + + publishers: + - archive: + artifacts: 'docker/**/*.logs'