-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
73 lines (68 loc) · 1.87 KB
/
Jenkinsfile
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
properties(
[
githubProjectProperty(
displayName: 'docker-syncovery',
projectUrlStr: 'https://github.com/MyUncleSam/docker-syncovery/'
),
disableConcurrentBuilds()
]
)
pipeline {
agent {
label 'docker'
}
environment {
IMAGE_FULLNAME = 'stefanruepp/syncoverycl'
}
triggers {
URLTrigger(
cronTabSpec: 'H/30 * * * *',
entries: [
URLTriggerEntry(
url: 'https://www.syncovery.com/linver_x86_64-Web.tar.gz.txt',
contentTypes: [
MD5Sum()
]
),
URLTriggerEntry(
url: 'https://www.syncovery.com/linver_aarch64.tar.gz.txt',
contentTypes: [
MD5Sum()
]
),
URLTriggerEntry(
url: 'https://hub.docker.com/v2/namespaces/library/repositories/ubuntu/tags/24.04',
contentTypes: [
JsonContent(
[
JsonContentEntry(jsonPath: '$.last_updated')
]
)
]
)
]
)
}
stages {
stage('Checkout') {
steps {
git branch: env.BRANCH_NAME, url: env.GIT_URL
}
}
stage('Build') {
steps {
sh 'chmod +x scripts/*.sh'
sh './scripts/start.sh'
}
}
}
post {
always {
discordSend result: currentBuild.currentResult,
description: env.GIT_URL,
link: env.BUILD_URL,
title: JOB_NAME,
webhookURL: DISCORD_WEBHOOK
}
}
}