X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Flttng-www.yaml;h=be0c7bc7a01c2fa8ce7c6d632f3d3dff2f23abc2;hb=7588e01393026c587202898117b7597e143ed8ba;hp=051b94d01e5b83abf076b37eba53f886762bfbc8;hpb=4c61f7a476ff94b2302439fdc463b6113a7fa14e;p=lttng-ci.git diff --git a/jobs/lttng-www.yaml b/jobs/lttng-www.yaml index 051b94d..be0c7bc 100644 --- a/jobs/lttng-www.yaml +++ b/jobs/lttng-www.yaml @@ -1,7 +1,6 @@ -- job: +- defaults: name: lttng-www project-type: freestyle - defaults: global node: amd64-rootnode description: | @@ -9,29 +8,106 @@
Job is managed by Jenkins Job Builder.
+ scm: + - git: + url: git@git.efficios.com:lttng-www.git + credentials-id: 63a5abb5-9056-47e2-b419-f5946c1b8f08 + basedir: ./ + branches: + - master + skip-tag: true + wrappers: - ansicolor - timestamps - credentials-binding: + - file: + credential-id: d023f830-9ab0-409f-b977-8cd0e1944dd5 + variable: HOST_PUBLIC_KEYS - ssh-user-private-key: credential-id: 63a5abb5-9056-47e2-b419-f5946c1b8f08 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:prod + + properties: + - build-discarder: + num-to-keep: 5 - triggers: - - timed: '@daily' builders: - shell: !include-raw: scripts/lttng-www/deploy.sh +- job: + name: dev_review_lttng-www + defaults: lttng-www + scm: - - lttng-www + - git: + url: ssh://jenkins@review.lttng.org:29418/lttng-www.git + credentials-id: f3c907b6-7485-49e1-afe1-4df24fac4ca1 + basedir: ./ + branches: + - '$GERRIT_REFSPEC' + refspec: 'refs/changes/*:refs/changes/*' + skip-tag: true + + properties: + - build-discarder: + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit-build' + + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'lttng-www' + branches: + - branch-compare-type: 'PLAIN' + branch-pattern: 'master' + + wrappers: + - ansicolor + - timestamps + - credentials-binding: + - file: + credential-id: d023f830-9ab0-409f-b977-8cd0e1944dd5 + variable: HOST_PUBLIC_KEYS + - ssh-user-private-key: + credential-id: 63a5abb5-9056-47e2-b419-f5946c1b8f08 + key-file-variable: KEY_FILE_VARIABLE + username-variable: USER_NAME_VARIABLE + passphrase-variable: PASSPHRASE_VARIABLE + - inject: + properties-content: | + DEPLOY_TARGET=deploy:preprod + +- job: + name: lttng-www + defaults: lttng-www + + triggers: + - timed: '@daily' publishers: + - archive: + artifacts: 'site/**,prod/**' + follow-symlinks: true + allow-empty: false + - ircbot: + strategy: statechange-only + message-type: summary + matrix-notifier: only-parent - email-ext: recipients: 'ci-notification@lists.lttng.org' reply-to: ci-notification@lists.lttng.org @@ -54,15 +130,3 @@ matrix-trigger: only-parent send-to: - recipients - -- scm: - name: lttng-www - scm: - - git: - url: git@git.efficios.com:lttng-www.git - credentials-id: 63a5abb5-9056-47e2-b419-f5946c1b8f08 - basedir: ./ - skip-tag: true - branches: - - master -