Skip to content

Commit 78c07ab

Browse files
committed
jobs: Add basic job configuration for building containers
1 parent 6e652b8 commit 78c07ab

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

jobs/nightly-samba-containers.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
- project:
2+
name: samba_nightly-containers
3+
os_name:
4+
- 'fedora'
5+
os_arch:
6+
- 'aarch64'
7+
kind:
8+
- 'server'
9+
package_source:
10+
- 'default'
11+
- 'nightly'
12+
jobs:
13+
- 'samba_build-containers-{kind}-{package_source}-{os_name}-{os_arch}'
14+
15+
- job-template:
16+
name: 'samba_build-containers-{kind}-{package_source}-{os_name}-{os_arch}'
17+
node: cico-workspace
18+
description: Build Samba containers.
19+
project-type: freestyle
20+
concurrent: true
21+
22+
parameters:
23+
- string:
24+
name: CENTOS_VERSION
25+
default: '9s'
26+
description: CentOS version to be installed on host node
27+
- string:
28+
name: OS_NAME
29+
default: '{os_name}'
30+
description: Platform to build the containers
31+
- string:
32+
name: OS_ARCH
33+
default: '{os_arch}'
34+
description: Architecture to build the containers
35+
- string:
36+
name: KIND
37+
default: '{kind}'
38+
description: Type of samba server
39+
- string:
40+
name: PACKAGE_SOURCE
41+
default: '{package_source}'
42+
description: Repository with required packages
43+
44+
wrappers:
45+
- credentials-binding:
46+
- username-password-separated:
47+
credential-id: samba_dot_org-container-registry-auth
48+
username: SAMBA_ORG_QUAY_USER
49+
password: SAMBA_ORG_QUAY_PASSWORD
50+
51+
scm:
52+
- git:
53+
url: https://github.com/samba-in-kubernetes/samba-centosci.git
54+
55+
properties:
56+
- github:
57+
url: https://github.com/samba-in-kubernetes/samba-container
58+
- build-discarder:
59+
days-to-keep: 7
60+
artifacts-days-to-keep: 7
61+
62+
triggers:
63+
- timed: "H 3 * * *"
64+
- pollurl:
65+
cron: 'H/5 * * * *'
66+
urls:
67+
- url: 'https://github.com/samba-in-kubernetes/samba-container/commit/main.patch'
68+
check-content:
69+
- simple: true
70+
71+
builders:
72+
- shell: !include-raw-escape: scripts/common/get-node.sh
73+
- shell: !include-raw-escape: scripts/common/scp.sh
74+
- shell: |
75+
#!/bin/bash
76+
jobs/scripts/common/bootstrap.sh $WORKSPACE/jobs/scripts/nightly-samba-containers/nightly-samba-containers.sh "OS_NAME=$OS_NAME OS_ARCH=$OS_ARCH KIND=$KIND PACKAGE_SOURCE=$PACKAGE_SOURCE SAMBA_ORG_QUAY_USER=$SAMBA_ORG_QUAY_USER SAMBA_ORG_QUAY_PASSWORD=$SAMBA_ORG_QUAY_PASSWORD"
77+
78+
publishers:
79+
- email-ext:
80+
recipients: [email protected]
81+
reply-to: $DEFAULT_REPLYTO
82+
subject: $DEFAULT_SUBJECT
83+
content-type: text
84+
body: $DEFAULT_CONTENT
85+
- post-tasks:
86+
- matches:
87+
- log-text: Building remotely
88+
script:
89+
!include-raw-escape: scripts/common/return-node.sh

0 commit comments

Comments
 (0)