diff --git a/jobs/swh-apps.yaml b/jobs/swh-apps.yaml index c3c44a9..91e91e6 100644 --- a/jobs/swh-apps.yaml +++ b/jobs/swh-apps.yaml @@ -1,20 +1,70 @@ # incoming-tag -> pypi-upload # |-> tests on tag -> ... -> publish # | -> create debian tag -> build debian package # | +(-> launch pip-ci pipeline pipeline) # 1. update dep, test and push tag # Pseudo code -# swh-apps/update-dependencies +# swh-apps/update-dependencies: # project: swh-core # clone swh-apps # apps = grep -r swh[.]core apps/*/requirements-frozen.txt # pour chaque : # scripts/generate-frozen-requirements # git add / commit # [build docker image if any] / tests # git tag -YYYYmmdd. # git push # docker push + +- job: + name: 'swh-apps' + display-name: 'swh-apps' + project-type: folder + raw: + xml: | + + + false + + + +- job: + name: swh-apps/update-dependencies + description: Build parametric swh-apps dependencies + node: built-in + project-type: pipeline + + scm: + - git: + url: https://forge.softwareheritage.org/source/swh-apps.git + branches: + - "*/master" + + triggers: + - timed: "@midnight" + + wrappers: + - timeout: + timeout: 10 + abort: true + - timestamps + + # dsl: + # !include-jinja2: templates/swh-apps-update-dependencies.groovy.j2 + + dsl: | + pipeline { + agent { + docker { image 'python:3.9' } + } + stages { + stage('Test') { + steps { + sh 'python --version' + } + } + } + } diff --git a/jobs/templates/swh-apps-update-dependencies.groovy.j2 b/jobs/templates/swh-apps-update-dependencies.groovy.j2 new file mode 100644 index 0000000..0cea7ab --- /dev/null +++ b/jobs/templates/swh-apps-update-dependencies.groovy.j2 @@ -0,0 +1,14 @@ +# -*- groovy -*- + +pipeline { + agent { + docker { image 'python:3.9' } + } + stages { + stage('Test') { + steps { + sh 'python --version' + } + } + } +}