mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Jenkinsfile: split some shell steps
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9f0e10fe24
commit
b04c769d65
1 changed files with 15 additions and 5 deletions
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
|
@ -67,7 +67,9 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
echo 'Ensuring container killed.'
|
echo 'Ensuring container killed.'
|
||||||
docker rm -vf docker-pr$BUILD_NUMBER || true
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
||||||
|
'''
|
||||||
|
|
||||||
|
sh '''
|
||||||
echo 'Chowning /workspace to jenkins user'
|
echo 'Chowning /workspace to jenkins user'
|
||||||
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
||||||
'''
|
'''
|
||||||
|
@ -137,7 +139,9 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
echo "Ensuring container killed."
|
echo "Ensuring container killed."
|
||||||
docker rm -vf docker-pr$BUILD_NUMBER || true
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
||||||
|
'''
|
||||||
|
|
||||||
|
sh '''
|
||||||
echo "Chowning /workspace to jenkins user"
|
echo "Chowning /workspace to jenkins user"
|
||||||
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
||||||
'''
|
'''
|
||||||
|
@ -193,7 +197,9 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
echo "Ensuring container killed."
|
echo "Ensuring container killed."
|
||||||
docker rm -vf docker-pr-exp$BUILD_NUMBER || true
|
docker rm -vf docker-pr-exp$BUILD_NUMBER || true
|
||||||
|
'''
|
||||||
|
|
||||||
|
sh '''
|
||||||
echo "Chowning /workspace to jenkins user"
|
echo "Chowning /workspace to jenkins user"
|
||||||
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
||||||
'''
|
'''
|
||||||
|
@ -249,7 +255,9 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
echo "Ensuring container killed."
|
echo "Ensuring container killed."
|
||||||
docker rm -vf docker-pr-$BUILD_NUMBER || true
|
docker rm -vf docker-pr-$BUILD_NUMBER || true
|
||||||
|
'''
|
||||||
|
|
||||||
|
sh '''
|
||||||
echo "Chowning /workspace to jenkins user"
|
echo "Chowning /workspace to jenkins user"
|
||||||
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
||||||
'''
|
'''
|
||||||
|
@ -305,7 +313,9 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
echo "Ensuring container killed."
|
echo "Ensuring container killed."
|
||||||
docker rm -vf docker-pr$BUILD_NUMBER || true
|
docker rm -vf docker-pr$BUILD_NUMBER || true
|
||||||
|
'''
|
||||||
|
|
||||||
|
sh '''
|
||||||
echo "Chowning /workspace to jenkins user"
|
echo "Chowning /workspace to jenkins user"
|
||||||
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
docker run --rm -v "$WORKSPACE:/workspace" busybox chown -R "$(id -u):$(id -g)" /workspace
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue