-
Notifications
You must be signed in to change notification settings - Fork 4
/
nightly-samba-builds.yml
93 lines (86 loc) · 2.7 KB
/
nightly-samba-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
- project:
name: samba_nightly-rpm-builds
os_version:
- 'centos9'
- 'fedora40'
- 'fedora41'
os_arch:
- 'x86_64'
- 'aarch64'
samba_branch:
- 'master'
- 'v4-20-test'
- 'v4-21-test'
jobs:
- 'samba_build-rpms-{os_version}-{samba_branch}-{os_arch}'
- job-template:
name: 'samba_build-rpms-{os_version}-{samba_branch}-{os_arch}'
node: cico-workspace
description: Build Samba RPMs.
project-type: freestyle
concurrent: true
parameters:
- string:
name: CENTOS_VERSION
default: '9s'
description: CentOS version to be installed on host node
- string:
name: OS_VERSION
default: '{os_version}'
description: Platform to build the RPMS
- string:
name: OS_ARCH
default: '{os_arch}'
description: Architecture to build the RPMS
- string:
name: SAMBA_BRANCH
default: '{samba_branch}'
description: Samba release branch to build from
scm:
- git:
url: https://github.com/samba-in-kubernetes/samba-centosci.git
properties:
- github:
url: https://github.com/samba-in-kubernetes/samba-build
- build-discarder:
days-to-keep: 7
artifacts-days-to-keep: 7
triggers:
- timed: "H 0 * * *"
- github-pull-request:
trigger-phrase: '/(re)?test ((all)|(centos-ci/build-rpms/({os_version}/{samba_branch}/{os_arch})?))'
admin-list:
- obnoxxx
- gd
- anoopcs9
- spuiuk
- nixpanic
- phlogistonjohn
cron: H/5 * * * *
status-context: 'centos-ci/build-rpms/{os_version}/{samba_branch}/{os_arch}'
white-list-target-branches:
- main
- pollurl:
cron: 'H/5 * * * *'
urls:
- url: 'https://github.com/samba-in-kubernetes/samba-build/commit/main.patch'
check-content:
- simple: true
builders:
- shell: !include-raw-escape: scripts/common/get-node.sh
- shell: !include-raw-escape: scripts/common/scp.sh
- shell: |
#!/bin/bash
jobs/scripts/common/bootstrap.sh $WORKSPACE/jobs/scripts/nightly-samba-builds/nightly-samba-builds.sh "ghprbPullId=$ghprbPullId ghprbTargetBranch=$ghprbTargetBranch OS_VERSION=$OS_VERSION OS_ARCH=$OS_ARCH SAMBA_BRANCH=$SAMBA_BRANCH"
publishers:
- email-ext:
recipients: [email protected]
reply-to: $DEFAULT_REPLYTO
subject: $DEFAULT_SUBJECT
content-type: text
body: $DEFAULT_CONTENT
- post-tasks:
- matches:
- log-text: Building remotely
script:
!include-raw-escape: scripts/common/return-node.sh