blob: dfc07ed277de36e28d199c0044e3a0f2b2f1bf00 (
plain)
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
|
pipeline {
agent any
triggers {
cron('0 18 * * *') // run daily at 18:00
}
environment {
REPO_URL = credentials('repo-url')
AWS_PROFILE = credentials('aws-profile')
}
stages {
stage('Checkout') {
steps {
script {
git "${REPO_URL}"
}
}
}
stage('Build Packages') {
steps {
script {
docker.build('vyos-apt-builder').inside {
sh 'scripts/build_packages.sh'
}
}
}
}
stage('Update APT Repo') {
steps {
script {
docker.build('vyos-apt-builder').inside {
sh 'scripts/update_repo.sh'
}
}
}
}
stage('Upload to R2') {
steps {
script {
docker.build('vyos-apt-builder').inside {
withCredentials([string(credentialsId: 'aws-profile', variable: 'AWS_PROFILE')]) {
sh 'scripts/upload_repo.sh'
}
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: '**/output/**/*.deb', allowEmptyArchive: true
cleanWs()
}
}
}
|