Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
504c0978be linux-blackfinn: Add Jenkinsfile
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2019-03-08 10:35:41 +01:00

23
Jenkinsfile vendored
View File

@ -86,21 +86,16 @@ pipeline {
steps { steps {
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 { sh "mv build/tmp/deploy/images/${params.MACHINE}/zImage /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}/zImage || exit 0"
if(params.MACHINE == 'beaglebone-yocto') { sh "mv build/tmp/deploy/images/${params.MACHINE}/Image /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}/Image || exit 0"
sh "mv build/tmp/deploy/images/${params.MACHINE}/zImage /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.wic /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
}
else if(params.MACHINE == 'raspberrypi3-64') {
sh "mv build/tmp/deploy/images/${params.MACHINE}/Image /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
sh "mv build/tmp/deploy/images/${params.MACHINE}/*.dtbo /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.rpi-sdimg /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.tar.bz2 /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}"
}
}
sh "mv build/tmp/deploy/images/${params.MACHINE}/*.dtb /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 "mv build/tmp/deploy/images/${params.MACHINE}/*.dtb /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE} || exit 0"
sh "mv build/tmp/deploy/images/${params.MACHINE}/*.dtbo /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE} || exit 0"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.wic /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}/console-image-${params.MACHINE}.wic || exit 0"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.rpi-sdimg /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}/console-image-${params.MACHINE}.rpi-sdimg || exit 0"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.manifest /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}/console-image-${params.MACHINE}.manifest || exit 0"
sh "mv build/tmp/deploy/images/${params.MACHINE}/console-image-${params.MACHINE}.tar.bz2 /srv/files.blackfinn.de/data/images/${params.BRANCH}/${params.MACHINE}/console-image-${params.MACHINE}.tar.bz2 || exit 0"
} }
} }
} }