The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc-ci/pull/55
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) ===
From b782516bfa5cf727f661b2d0160dbc049d15b5d7 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <[email protected]> Date: Fri, 9 Aug 2019 10:12:55 +0200 Subject: [PATCH 1/3] jenkins/jobs: Add remaining lxc-build-* Signed-off-by: Thomas Hipp <[email protected]> --- jenkins/jobs/lxc-build-android.yaml | 30 +++++++++++ jenkins/jobs/lxc-build-tarballs.yaml | 30 +++++++++++ jenkins/jobs/lxc-build-ubuntu-source.yaml | 65 +++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 jenkins/jobs/lxc-build-android.yaml create mode 100644 jenkins/jobs/lxc-build-tarballs.yaml create mode 100644 jenkins/jobs/lxc-build-ubuntu-source.yaml diff --git a/jenkins/jobs/lxc-build-android.yaml b/jenkins/jobs/lxc-build-android.yaml new file mode 100644 index 0000000..505b2c0 --- /dev/null +++ b/jenkins/jobs/lxc-build-android.yaml @@ -0,0 +1,30 @@ +- job: + name: lxc-build-android + concurrent: true + description: Builds an android tarball from the provided source. + node: lxc-priv && amd64 + project-type: freestyle + + properties: + - build-discarder: + num-to-keep: 15 + + parameters: + - string: + name: sha1 + description: Hash of the commit to build + + - string: + name: branch + description: Source git branch + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/build-android amd64 https://github.com/lxc/lxc master ${sha1} ${WORKSPACE}/ + + publishers: + - archive: + artifacts: lxc-android.tar.gz + + - workspace-cleanup \ No newline at end of file diff --git a/jenkins/jobs/lxc-build-tarballs.yaml b/jenkins/jobs/lxc-build-tarballs.yaml new file mode 100644 index 0000000..d497661 --- /dev/null +++ b/jenkins/jobs/lxc-build-tarballs.yaml @@ -0,0 +1,30 @@ +- job: + name: lxc-build-tarballs + concurrent: true + description: Builds the source and manpage tarballs from the provided source. + node: lxc-priv && amd64 + project-type: freestyle + + properties: + - build-discarder: + num-to-keep: 15 + + parameters: + - string: + name: sha1 + description: Hash of the commit to build + + - string: + name: branch + description: Source git branch + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/build-tarballs amd64 https://github.com/lxc/lxc master ${sha1} ${WORKSPACE} + + publishers: + - archive: + artifacts: "*.tar.gz" + + - workspace-cleanup \ No newline at end of file diff --git a/jenkins/jobs/lxc-build-ubuntu-source.yaml b/jenkins/jobs/lxc-build-ubuntu-source.yaml new file mode 100644 index 0000000..3fd21dd --- /dev/null +++ b/jenkins/jobs/lxc-build-ubuntu-source.yaml @@ -0,0 +1,65 @@ +- job: + name: lxc-build-ubuntu-source + concurrent: true + description: Build ubuntu source packages for all distribution and versions we care about. + node: master + project-type: matrix + + properties: + - build-discarder: + num-to-keep: 15 + + parameters: + - string: + name: sha1 + description: Hash of the commit to build. + + - string: + name: pkg_version + description: The beginning of the packaging version, ~[DATE]-0[DIST]1~[RELEASE] is then appended to it. + + - string: + name: pkg_branch + description: Name of the packaging branch to use for the build. + + - string: + name: upload_target + description: What PPA to upload to + + - string: + name: branch + description: Source git branch + + triggers: + - reverse: + jobs: + - lxc-github-commit + - lxc-github-commit-stable-1.0 + - lxc-github-commit-stable-2.0 + - lxc-github-commit-stable-3.0 + + axes: + - axis: + name: release + type: user-defined + values: + - xenial + - bionic + - disco + - eoan + + - axis: + name: restrict + type: slave + values: + - amd64 + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/build-deb-source amd64 https://github.com/lxc/lxc master ${sha1} https://github.com/lxc/lxc-pkg-ubuntu ${pkg_branch} HEAD ubuntu ${release} ${pkg_version} ${WORKSPACE} + + publishers: + - archive: + artifacts: "lxc_*" + - workspace-cleanup \ No newline at end of file From 87ac0a05f1ef5004a356db6cfe05c03b41420ec9 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <[email protected]> Date: Fri, 9 Aug 2019 10:14:13 +0200 Subject: [PATCH 2/3] jenkins/jobs: Add remaining lxc-github-commit-* Signed-off-by: Thomas Hipp <[email protected]> --- .../jobs/lxc-github-commit-stable-2.0.yaml | 90 +++++++++++++++++++ .../jobs/lxc-github-commit-stable-3.0.yaml | 89 ++++++++++++++++++ jenkins/jobs/lxc-github-commit.yaml | 89 ++++++++++++++++++ 3 files changed, 268 insertions(+) create mode 100644 jenkins/jobs/lxc-github-commit-stable-2.0.yaml create mode 100644 jenkins/jobs/lxc-github-commit-stable-3.0.yaml create mode 100644 jenkins/jobs/lxc-github-commit.yaml diff --git a/jenkins/jobs/lxc-github-commit-stable-2.0.yaml b/jenkins/jobs/lxc-github-commit-stable-2.0.yaml new file mode 100644 index 0000000..e6099d1 --- /dev/null +++ b/jenkins/jobs/lxc-github-commit-stable-2.0.yaml @@ -0,0 +1,90 @@ +- job: + name: lxc-github-commit-stable-2.0 + concurrent: false + description: Triggered by new Github pull requests. + node: master + project-type: matrix + + properties: + - build-discarder: + days-to-keep: 7 + + - github: + url: https://github.com/lxc/lxc/ + + - raw: + !include: ../includes/webhook.yaml.inc + + scm: + - git: + url: https://github.com/lxc/lxc + branches: + - stable-2.0 + refspec: "+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*" + + triggers: + - github + + axes: + - axis: + name: compiler + type: user-defined + values: + - gcc + - clang + + - axis: + name: arch + type: slave + values: + - amd64 + - i386 + + - axis: + name: restrict + type: slave + values: + - lxc-priv + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/testbuild-${compiler} https://github.com/lxc/lxc stable-2.0 ${GIT_COMMIT} --use-daily + + - trigger-builds: + - project: + - lxc-build-android + - lxc-build-coverity + - lxc-build-tarballs + predefined-parameters: |- + sha1=${GIT_COMMIT} + branch=stable-2.0 + + - project: + - lxc-build-ubuntu-source + predefined-parameters: |- + sha1=${GIT_COMMIT} + pkg_version=2.0.11+stable + pkg_branch=ppa-stable-2.0 + upload_target=lxc-git-stable-2.0 + branch=stable-2.0 + + + publishers: + - archive: + artifacts: "*.tar.gz" + foo: .* + allow-empty: true + fingerprint: true + + - aggregate-tests: + include-failed-builds: true + + - naginator: + rerun-unstable-builds: true + rerun-matrix-part: true + progressive-delay-increment: 300 + progressive-delay-maximum: 10800 + max-failed-builds: 3 + + - workspace-cleanup \ No newline at end of file diff --git a/jenkins/jobs/lxc-github-commit-stable-3.0.yaml b/jenkins/jobs/lxc-github-commit-stable-3.0.yaml new file mode 100644 index 0000000..3d96d13 --- /dev/null +++ b/jenkins/jobs/lxc-github-commit-stable-3.0.yaml @@ -0,0 +1,89 @@ +- job: + name: lxc-github-commit-stable-3.0 + concurrent: false + description: Triggered by new Github pull requests. + node: master + project-type: matrix + + properties: + - build-discarder: + days-to-keep: 7 + + - github: + url: https://github.com/lxc/lxc/ + + - raw: + !include: ../includes/webhook.yaml.inc + + scm: + - git: + url: https://github.com/lxc/lxc + branches: + - stable-3.0 + refspec: "+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*" + + triggers: + - github + + axes: + - axis: + name: compiler + type: user-defined + values: + - gcc + - clang + + - axis: + name: arch + type: slave + values: + - amd64 + - i386 + + - axis: + name: restrict + type: slave + values: + - lxc-priv + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/testbuild-${compiler} https://github.com/lxc/lxc stable-3.0 ${GIT_COMMIT} --use-daily + + - trigger-builds: + - project: + - lxc-build-android + - lxc-build-coverity + - lxc-build-tarballs + predefined-parameters: |- + sha1=${GIT_COMMIT} + branch=stable-3.0 + + - project: + - lxc-build-ubuntu-source + predefined-parameters: |- + sha1=${GIT_COMMIT} + pkg_version=3.0.4+stable + pkg_branch=ppa-daily + upload_target=lxc-git-stable-3.0 + branch=stable-3.0 + + + publishers: + - archive: + artifacts: "*.tar.gz" + allow-empty: true + fingerprint: true + + - aggregate-tests: + include-failed-builds: true + + - naginator: + rerun-unstable-builds: true + rerun-matrix-part: true + progressive-delay-increment: 300 + progressive-delay-maximum: 10800 + max-failed-builds: 3 + + - workspace-cleanup \ No newline at end of file diff --git a/jenkins/jobs/lxc-github-commit.yaml b/jenkins/jobs/lxc-github-commit.yaml new file mode 100644 index 0000000..7d5709e --- /dev/null +++ b/jenkins/jobs/lxc-github-commit.yaml @@ -0,0 +1,89 @@ +- job: + name: lxc-github-commit + concurrent: false + description: Triggered by new Github pull requests. + node: master + project-type: matrix + + properties: + - build-discarder: + days-to-keep: 7 + + - github: + url: https://github.com/lxc/lxc/ + + - raw: + !include: ../includes/webhook.yaml.inc + + scm: + - git: + url: https://github.com/lxc/lxc + branches: + - master + refspec: "+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*" + + triggers: + - github + + axes: + - axis: + name: compiler + type: user-defined + values: + - gcc + - clang + + - axis: + name: arch + type: slave + values: + - amd64 + - i386 + + - axis: + name: restrict + type: slave + values: + - lxc-priv + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/testbuild-${compiler} https://github.com/lxc/lxc master ${GIT_COMMIT} --use-daily + + - trigger-builds: + - project: + - lxc-build-android + - lxc-build-coverity + - lxc-build-tarballs + predefined-parameters: |- + sha1=${GIT_COMMIT} + branch=master + + - project: + - lxc-build-ubuntu-source + predefined-parameters: |- + sha1=${GIT_COMMIT} + pkg_version=3.2.1+master + pkg_branch=ppa-daily + upload_target=lxc-git-master + branch=master + + + publishers: + - archive: + artifacts: "*.tar.gz" + allow-empty: true + fingerprint: true + + - aggregate-tests: + include-failed-builds: true + + - naginator: + rerun-unstable-builds: true + rerun-matrix-part: true + progressive-delay-increment: 300 + progressive-delay-maximum: 10800 + max-failed-builds: 3 + + - workspace-cleanup \ No newline at end of file From 4016cb120786db336485c9663ea214b92658aca3 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <[email protected]> Date: Fri, 9 Aug 2019 10:15:27 +0200 Subject: [PATCH 3/3] jenkins/jobs: Add lx{c,d}-github-pull-test Signed-off-by: Thomas Hipp <[email protected]> --- .gitignore | 1 + jenkins/jobs/lxc-github-pull-test.yaml | 86 +++++++++++++++++++++ jenkins/jobs/lxd-github-pull-test.yaml | 100 +++++++++++++++++++++++++ 3 files changed, 187 insertions(+) create mode 100644 jenkins/jobs/lxc-github-pull-test.yaml create mode 100644 jenkins/jobs/lxd-github-pull-test.yaml diff --git a/.gitignore b/.gitignore index 4b46aaf..ed24021 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ etc/hosts build/* jenkins/jenkins_jobs.ini jenkins/includes/trigger-token.inc +jenkins/includes/github-auth-id.inc diff --git a/jenkins/jobs/lxc-github-pull-test.yaml b/jenkins/jobs/lxc-github-pull-test.yaml new file mode 100644 index 0000000..07885a2 --- /dev/null +++ b/jenkins/jobs/lxc-github-pull-test.yaml @@ -0,0 +1,86 @@ +- job: + name: lxc-github-pull-test + concurrent: true + description: Triggered by new Github pull requests. + node: master + project-type: matrix + + properties: + - build-discarder: + days-to-keep: 7 + + - github: + url: https://github.com/lxc/lxc/ + + - raw: + !include: ../includes/webhook.yaml.inc + + parameters: + - string: + name: sha1 + + scm: + - git: + url: https://github.com/lxc/lxc + branches: + - ${sha1} + refspec: "+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*" + + triggers: + - github-pull-request: + admin-list: !include: ../includes/admins/lxc.yaml.inc + github-hooks: true + org-list: + - lxc + cron: "H/5 * * * *" + skip-build-phrase: '.*jenkins:\W+\[skip\W+ci\].*' + auth-id: !include: ../includes/github-auth-id.inc + status-context: Testsuite + triggered-status: Test pending + started-status: "Test started" + success-comment: Testsuite passed + error-comment: Test runner failure + failure-commit: Testsuite failed + + axes: + - axis: + name: compiler + type: user-defined + values: + - gcc + - clang + + - axis: + name: arch + type: slave + values: + - amd64 + - i386 + + - axis: + name: restrict + type: slave + values: + - lxc-priv + + builders: + - shell: |- + cd /lxc + exec sudo /lxc/bin/testbuild-${compiler} https://github.com/lxc/lxc master ${GIT_COMMIT} --use-daily + + - trigger-builds: + - project: + - lxc-build-android + predefined-parameters: |- + sha1=${sha1} + + publishers: + - archive: + artifacts: "*.tar.gz" + allow-empty: true + fingerprint: true + + - aggregate-tests: + include-failed-builds: true + + - workspace-cleanup \ No newline at end of file diff --git a/jenkins/jobs/lxd-github-pull-test.yaml b/jenkins/jobs/lxd-github-pull-test.yaml new file mode 100644 index 0000000..4dceab5 --- /dev/null +++ b/jenkins/jobs/lxd-github-pull-test.yaml @@ -0,0 +1,100 @@ +- job: + name: lxc-github-pull-test + concurrent: true + description: Triggered by new Github pull requests. + node: master + project-type: matrix + + properties: + - build-discarder: + days-to-keep: 7 + + - github: + url: https://github.com/lxc/lxd/ + + - raw: + !include: ../includes/webhook.yaml.inc + + - throttle: + option: project + max-total: 2 + + parameters: + - string: + name: sha1 + + scm: + - git: + url: https://github.com/lxc/lxd + branches: + - ${sha1} + refspec: "+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*" + + triggers: + - github-pull-request: + admin-list: !include: ../includes/admins/lxd.yaml.inc + github-hooks: true + org-list: + - lxc + cron: "H/5 * * * *" + skip-build-phrase: '.*jenkins:\W+\[skip\W+ci\].*' + auth-id: !include: ../includes/github-api-key.inc + status-context: Testsuite + triggered-status: Test pending + started-status: "Test started" + success-comment: Testsuite passed + error-comment: Test runner failure + failure-commit: Testsuite failed + + axes: + - axis: + name: compiler + type: user-defined + values: + - golang-1.10 + - golang-1.12 + - golang-tip + + - axis: + name: backend + type: user-defined + values: + - dir + - zfs + - btrfs + - lvm + - ceph + - random + + - axis: + name: arch + type: slave + values: + - amd64 + - i386 + + - axis: + name: restrict + type: slave + values: + - lxd-priv + + execution-strategy: + combination-filter: '!(arch=="i386" && backend!="dir") && !(arch=="i386" && compiler!="golang-1.12") && !(backend!="dir" && compiler!="golang-1.12")' + + wrappers: + - ansicolor: + colormap: css + + builders: + - shell: |- + exec /usr/bin/script /dev/null -e -q -c "/lxd/bin/build-lxd ${compiler} https://github.com/lxc/lxd ${GIT_COMMIT} ${backend}" + + + publishers: + - archive: + artifacts: logs.tar.gz + allow-empty: true + fingerprint: true + + - workspace-cleanup \ No newline at end of file
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
