Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
2b2c11d8a4 linux-blackfinn: Add Jenkinsfile
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2019-03-10 06:40:06 +01:00

5
Jenkinsfile vendored
View File

@ -73,10 +73,12 @@ pipeline {
label 'deploy'
}
steps {
sh "rm -rf *"
unstash "deploy_ipk"
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 "ipkindex /srv/files.blackfinn.de/data/ipk/${params.BRANCH}"
sh "rm -rf *"
}
}
stage('Deploy images') {
@ -84,6 +86,7 @@ pipeline {
label 'deploy'
}
steps {
sh "rm -rf *"
unstash "deploy_images"
sh "mkdir -p /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
script {
@ -102,7 +105,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 "rm -rf *"
}
}
}