diff --git a/Jenkinsfile b/Jenkinsfile index f7b111987..8d39e4dd6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,12 @@ pipeline { stage('Simple build') { steps { sh ''' + . ~/.zshrc + env + echo $PATH + which cmake + cmake --version + git log --graph --date=short --pretty=tformat:'%ad - %h - %cn -%d %s' -n 20 || true make all ''' @@ -31,6 +37,7 @@ pipeline { stage('Cross-platforms build') { steps { sh ''' + . ~/.zshrc docker images || true make all all-cross ''' @@ -40,6 +47,7 @@ pipeline { steps { sshagent ( ['projects-storage.eclipse.org-bot-ssh']) { sh ''' + . ~/.zshrc HOST="genie.zenoh@projects-storage.eclipse.org" DOWNLOAD_DIR="/home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG}" ssh ${HOST} rm -fr ${DOWNLOAD_DIR} @@ -48,16 +56,16 @@ pipeline { for PLATFORM in `ls build/crossbuilds/`; do echo "Deploy for platform: ${PLATFORM}" ssh ${HOST} mkdir -p ${DOWNLOAD_DIR}/${PLATFORM} - scp build/crossbuilds/${PLATFORM}/libzenohc*.* build/crossbuilds/${PLATFORM}/z_* build/crossbuilds/${PLATFORM}/zn_* ${DOWNLOAD_DIR}/${PLATFORM}/ + scp build/crossbuilds/${PLATFORM}/libzenohc*.* build/crossbuilds/${PLATFORM}/z_* build/crossbuilds/${PLATFORM}/zn_* ${HOST}:${DOWNLOAD_DIR}/${PLATFORM}/ done echo "Deploy for platform: OSX" ssh ${HOST} mkdir -p ${DOWNLOAD_DIR}/OSX - scp build/crossbuilds/${PLATFORM}/libzenohc*.* build/crossbuilds/${PLATFORM}/z_* build/crossbuilds/${PLATFORM}/zn_* ${DOWNLOAD_DIR}/OSX/ + scp build/libzenohc*.* build/z_* build/zn_* ${HOST}:${DOWNLOAD_DIR}/OSX/ echo "Deploy include files" tar czvf zenoh-c-includes.tgz include/ - scp zenoh-c-includes.tgz ${DOWNLOAD_DIR}/ + scp zenoh-c-includes.tgz ${HOST}:${DOWNLOAD_DIR}/ ''' } } @@ -66,7 +74,7 @@ pipeline { post { success { - archiveArtifacts artifacts: 'build/crossbuilds/*/*zenohc.*', fingerprint: true + archiveArtifacts artifacts: 'build/libzenohc*.*, build/crossbuilds/*/libzenohc*.so, build/crossbuilds/*/libzenohc*.rpm, build/crossbuilds/*/libzenohc*.deb', fingerprint: true } } }