X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Fefficios-www.yaml;h=607a95549512fb8d64fb64a265f340833cd2c6cc;hb=7588e01393026c587202898117b7597e143ed8ba;hp=19cd30a1d5b2dbd0375549c51e193dd528aa1c9c;hpb=5b461c35e28ee2444813500e5b4ef9f47c4e3da0;p=lttng-ci.git diff --git a/jobs/efficios-www.yaml b/jobs/efficios-www.yaml index 19cd30a..607a955 100644 --- a/jobs/efficios-www.yaml +++ b/jobs/efficios-www.yaml @@ -1,14 +1,29 @@ -- job: +- defaults: name: efficios-www project-type: freestyle - defaults: global - node: amd64-rootnode-jammy + node: amd64-rootnode + + builders: + - shell: + !include-raw: scripts/efficios-www/deploy.sh description: | This job is responsible for updating the efficios website.
Job is managed by Jenkins Job Builder.
+ properties: + - build-discarder: + num-to-keep: 5 + scm: + - git: + url: git@git.efficios.com:efficios-www.git + credentials-id: 63a5abb5-9056-47e2-b419-f5946c1b8f08 + basedir: ./ + skip-tag: true + branches: + - master + wrappers: - ansicolor - timestamps @@ -21,21 +36,74 @@ - file: credential-id: d023f830-9ab0-409f-b977-8cd0e1944dd5 variable: HOST_PUBLIC_KEYS + - inject: + properties-content: | + DEPLOY_TARGET=deploy:prod + +- job: + name: dev_review_efficios-www + defaults: efficios-www + properties: - build-discarder: - num-to-keep: 5 + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit-build' + + scm: + - git: + url: ssh://jenkins@review.lttng.org:29418/efficios-www.git + credentials-id: f3c907b6-7485-49e1-afe1-4df24fac4ca1 + basedir: ./ + branches: + - '$GERRIT_REFSPEC' + refspec: 'refs/changes/*:refs/changes/*' + skip-tag: true + + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'efficios-www' + branches: + - branch-compare-type: 'PLAIN' + branch-pattern: 'master' + + wrappers: + - ansicolor + - timestamps + - credentials-binding: + - ssh-user-private-key: + credential-id: f3c907b6-7485-49e1-afe1-4df24fac4ca1 + key-file-variable: KEY_FILE_VARIABLE + username-variable: USER_NAME_VARIABLE + passphrase-variable: PASSPHRASE_VARIABLE + - file: + credential-id: d023f830-9ab0-409f-b977-8cd0e1944dd5 + variable: HOST_PUBLIC_KEYS + - inject: + properties-content: | + DEPLOY_TARGET=deploy:pre + +- job: + name: efficios-www + defaults: efficios-www triggers: - pollscm: cron: "@hourly" - builders: - - shell: - !include-raw: scripts/efficios-www/deploy.sh - - scm: - - efficios-www publishers: + - archive: + artifacts: 'site/**,prod/**' + follow-symlinks: true + allow-empty: false - ircbot: strategy: statechange-only message-type: summary @@ -62,14 +130,3 @@ matrix-trigger: only-parent send-to: - recipients - -- scm: - name: efficios-www - scm: - - git: - url: git@git.internal.efficios.com:efficios/efficios-www.git - credentials-id: f3c907b6-7485-49e1-afe1-4df24fac4ca1 - basedir: ./ - skip-tag: true - branches: - - master