This repository was archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
45 lines (42 loc) · 1.35 KB
/
Jenkinsfile
File metadata and controls
45 lines (42 loc) · 1.35 KB
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
pipeline {
agent {
dockerfile { filename 'Dockerfile' }
}
environment {
HOME = pwd()
GH_TOKEN = credentials('GH_TOKEN')
GPG_PRIVATE_KEY = credentials('GPG_PRIVATE_KEY')
DEBFULLNAME = "Stefan Siegl (Automatic Signing Key)"
DEBEMAIL = "stesie+buildbot@brokenpipe.de"
USER = "stesie"
}
stages {
stage('Prepare') {
steps {
sh 'echo $GPG_PRIVATE_KEY | base64 -d | gpg --import || true'
sh 'echo "E5B2C7C056E926CD28F71FCE8B0CD97010C3F747:6:" | gpg --import-ownertrust'
sh 'gpg -k'
}
}
stage('Auto Update') {
steps {
sh 'cd packaging/libv8 && ./autoupdate'
}
}
stage('Build') {
steps {
sh 'cd packaging/libv8 && make dput'
}
}
stage('Persist') {
steps {
sh 'git status'
sh 'git config --global user.name "Jenkins Buildbot"'
sh 'git config --global user.email "stesie+buildbot@brokenpipe.de"'
sh 'git add packaging/libv8'
sh 'git commit -m "Build and deploy libv8 source package"'
sh 'git push "https://$GH_TOKEN@github.com/phpv8/ppa-packaging.git" HEAD:master'
}
}
}
}