CI: Don’t rely on /tmp

/tmp is mounted noexec, so can’t be used to run scripts.
munin-plugins
David Prevot 3 months ago
parent 3150d48ba5
commit bdb84e809f
  1. 6
      .Jenkinsfile
  2. 13
      .drone.yml

6
.Jenkinsfile vendored

@ -5,7 +5,7 @@ pipeline {
agent {
docker {
image 'evolix/gbp:bullseye'
args '-u root --privileged -v /tmp:/tmp'
args '-u root --privileged'
}
}
when {
@ -29,8 +29,8 @@ pipeline {
steps {
script {
sh 'echo Dummy line to remove once something actually happens.'
/* No crendentials yet
sh 'rsync -avP /tmp/bkctld/ droneci@pub.evolix.net:/home/droneci/bkctld/'
/* No crendentials yet.
sh 'rsync -avP bkctld* droneci@pub.evolix.net:/home/droneci/bkctld/'
*/
}
}

@ -15,9 +15,6 @@ steps:
- mk-build-deps --install --remove debian/control
- git clean --force
- gbp buildpackage -us -uc
volumes:
- name: tmp
path: /tmp
when:
branch:
- debian
@ -31,16 +28,8 @@ steps:
key:
from_secret: drone_private_key
target: /home/droneci/bkctld/
source: /tmp/bkctld/
source: ../bkctld*
delete: true
volumes:
- name: tmp
path: /tmp
when:
branch:
- debian
volumes:
- name: tmp
host:
path: /tmp

Loading…
Cancel
Save