-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjjb-jobs.yaml
101 lines (96 loc) · 2.55 KB
/
jjb-jobs.yaml
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
94
95
96
97
98
99
100
101
- job-template:
name: aur-package-{package}
defaults: aur
properties:
- copyartifact:
projects: 'aur-repo-add'
node: paveway
wrappers:
- workspace-cleanup
scm:
- git:
url: 'https://aur.archlinux.org/{package}.git'
branches:
- '*/master'
skip-tag: true
triggers:
- pollscm:
cron: "@hourly"
- timed: '@daily'
builders:
- shell: |
#!/bin/bash -ex
sudo pacman -Syu --noconfirm
makepkg --nosign --syncdeps --noconfirm
publishers:
- archive:
artifacts: '*.pkg.tar.xz'
allow-empty: 'false'
only-if-success: true
- trigger-parameterized-builds:
- project: 'aur-repo-add'
current-parameters: true
condition: 'SUCCESS'
fail-on-missing: true
predefined-parameters: 'package_job=${{JOB_NAME}}'
- job:
name: 'aur-repo-add'
defaults: aur
properties:
- copyartifact:
projects: 'aur-publish'
node: paveway
parameters:
- string:
name: package_job
description: |
Package to add to the repo
builders:
- copyartifact:
project: '${package_job}'
filter: '*.pkg.tar.xz'
target: $WORKSPACE
which-build: last-successful
stable: true
- shell: |
#!/bin/bash -ex
repo-add -d -R "$WORKSPACE"/aur.db.tar.xz "$WORKSPACE"/*.pkg.tar.xz
publishers:
- archive:
artifacts: 'aur.db, aur.db.tar.xz, *.pkg.tar.xz'
allow-empty: 'false'
only-if-success: true
- trigger-parameterized-builds:
- project: 'aur-publish'
condition: 'SUCCESS'
trigger-with-no-params: true
- job:
name: 'aur-publish'
defaults: aur
node: master
builders:
- copyartifact:
project: 'aur-repo-add'
target: $WORKSPACE
which-build: last-successful
stable: true
- shell: |
#!/bin/bash -ex
cp aur.db aur.db.tar.xz *.pkg.tar.xz /var/www/html/aur
echo 'to use this repo, add the following to /etc/pacman.conf:'
# [aur]
# Server = http://webhost.tld/aur/
# SigLevel = Never'
- defaults:
name: aur
description: |
Managed by Jenkins Job Builder. Do not edit via web.
logrotate:
daysToKeep: -1
numToKeep: 10
- project:
name: aur
package:
!include: packages.yaml.inc
jobs:
- 'aur-package-{package}'