-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Jenkinsfile to build on MacMini host. For #11
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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="[email protected]" | ||
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 | ||
} | ||
} | ||
} |