Commit ff893fa5 authored by Emanuele Aina's avatar Emanuele Aina

Jenkinsfile: Drop the libnss-wrapper hack

With the libnss-unknown package included in the Docker images this hack
can be safely dropped.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent d2c0854e
Pipeline #424 passed with stage
in 3 minutes and 22 seconds
......@@ -23,15 +23,10 @@ pipeline {
}
stage ("Upload site") {
environment {
NSS_WRAPPER_PASSWD = '/tmp/passwd'
NSS_WRAPPER_GROUP = '/dev/null'
}
steps {
script {
sshagent (credentials: [ "collabora-rodoric-docsync", ] ) {
sh 'echo docker:x:$(id -u):$(id -g):docker gecos:/tmp:/bin/false > ${NSS_WRAPPER_PASSWD}'
sh 'LD_PRELOAD=libnss_wrapper.so rsync -e "ssh -oStrictHostKeyChecking=no" -va --no-group --no-owner --chmod=ugo=rwX --delete-after out/usr/share/doc/apertis-designs/apertis-designs/ docsync@designs.apertis.org:/srv/designs.apertis.org/www/${RELEASE}'
sh 'rsync -e "ssh -oStrictHostKeyChecking=no" -va --no-group --no-owner --chmod=ugo=rwX --delete-after out/usr/share/doc/apertis-designs/apertis-designs/ docsync@designs.apertis.org:/srv/designs.apertis.org/www/${RELEASE}'
}
}
}
......@@ -44,15 +39,10 @@ pipeline {
}
stage ("Upload pdfs") {
environment {
NSS_WRAPPER_PASSWD = '/tmp/passwd'
NSS_WRAPPER_GROUP = '/dev/null'
}
steps {
script {
sshagent (credentials: [ "collabora-rodoric-docsync", ] ) {
sh 'echo docker:x:$(id -u):$(id -g):docker gecos:/tmp:/bin/false > ${NSS_WRAPPER_PASSWD}'
sh 'LD_PRELOAD=libnss_wrapper.so rsync -e "ssh -oStrictHostKeyChecking=no" -va --no-group --no-owner --chmod=ugo=rwX --delete-after build/pdf/*.pdf docsync@designs.apertis.org:/srv/designs.apertis.org/www/${RELEASE}'
sh 'rsync -e "ssh -oStrictHostKeyChecking=no" -va --no-group --no-owner --chmod=ugo=rwX --delete-after build/pdf/*.pdf docsync@designs.apertis.org:/srv/designs.apertis.org/www/${RELEASE}'
}
}
}
......@@ -64,15 +54,10 @@ pipeline {
env.GIT_BRANCH == 'origin/master'
}
}
environment {
NSS_WRAPPER_PASSWD = '/tmp/passwd'
NSS_WRAPPER_GROUP = '/dev/null'
}
steps {
script {
sshagent (credentials: [ "collabora-rodoric-docsync", ] ) {
sh 'echo docker:x:$(id -u):$(id -g):docker gecos:/tmp:/bin/false > ${NSS_WRAPPER_PASSWD}'
sh 'LD_PRELOAD=libnss_wrapper.so ssh -oStrictHostKeyChecking=no docsync@designs.apertis.org ln -sf --no-dereference ${RELEASE} /srv/designs.apertis.org/www/latest'
sh 'ssh -oStrictHostKeyChecking=no docsync@designs.apertis.org ln -sf --no-dereference ${RELEASE} /srv/designs.apertis.org/www/latest'
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment