Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
6240a778
Commit
6240a778
authored
Aug 27, 2015
by
Mattia Rizzolo
Browse files
jenkins/etc/init.d: clean up reproducible db from "ongoing" builds before starting jenkins
parent
a50f8f3f
Changes
1
Show whitespace changes
Inline
Side-by-side
hosts/jenkins/etc/init.d/jenkins
View file @
6240a778
...
@@ -92,6 +92,9 @@ check_tcp_port() {
...
@@ -92,6 +92,9 @@ check_tcp_port() {
#
#
do_start
()
do_start
()
{
{
# Clean up the Reproducible Builds database from running builds
sqlite3 /var/lib/jenkins/reproducible.db
"UPDATE schedule SET date_build_started = '' WHERE date_build_started != '';"
||
true
# the default location is /var/run/jenkins/jenkins.pid but the parent directory needs to be created
# the default location is /var/run/jenkins/jenkins.pid but the parent directory needs to be created
mkdir
`
dirname
$PIDFILE
`
>
/dev/null 2>&1
||
true
mkdir
`
dirname
$PIDFILE
`
>
/dev/null 2>&1
||
true
chown
$JENKINS_USER
`
dirname
$PIDFILE
`
chown
$JENKINS_USER
`
dirname
$PIDFILE
`
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment