Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
2cbe3f49aa linux-blackfinn: Add Jenkinsfile
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2019-03-09 23:14:07 +01:00

5
Jenkinsfile vendored
View File

@ -73,12 +73,10 @@ pipeline {
label 'deploy' label 'deploy'
} }
steps { steps {
sh "rm -rf *"
unstash "deploy_ipk" unstash "deploy_ipk"
sh "mkdir -p /srv/files.blackfinn.de/data/ipk/${params.BRANCH}" sh "mkdir -p /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
sh "rsync -avz build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/ipk/${params.BRANCH} || exit 0" sh "rsync -avz build/tmp/deploy/ipk/ /srv/files.blackfinn.de/data/ipk/${params.BRANCH} || exit 0"
sh "ipkindex /srv/files.blackfinn.de/data/ipk/${params.BRANCH}" sh "ipkindex /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
sh "rm -rf *"
} }
} }
stage('Deploy images') { stage('Deploy images') {
@ -86,7 +84,6 @@ pipeline {
label 'deploy' label 'deploy'
} }
steps { steps {
sh "rm -rf *"
unstash "deploy_images" unstash "deploy_images"
sh "mkdir -p /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}" sh "mkdir -p /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
script { script {
@ -105,7 +102,7 @@ pipeline {
} }
} }
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.manifest /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}" sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.manifest /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
sh "rm -rf *"
} }
} }
} }