dont use fixed workspace path for building
All checks were successful
gitea-sync/ci-yocto/pipeline/head This commit looks good

This commit is contained in:
dany 2022-09-26 09:33:00 +02:00
parent 2bd5e258bd
commit 09e3c5d6a7

8
Jenkinsfile vendored
View File

@ -29,9 +29,9 @@ pipeline{
{
stage('Build') {
steps {
sshCommand remote: remote, command: '''
set -e
export WORKSPACE=$(realpath "./jenkins/workspace/ci-yocto")
sh'''
export -p | tee build.source
cat <<"EOF" >>build.source
cd $WORKSPACE
docker buildx build \
--platform amd64 \
@ -39,7 +39,9 @@ pipeline{
.
docker tag xsangle/ci-yocto:focal workstation:5000/xsangle/ci-yocto:focal
docker push workstation:5000/xsangle/ci-yocto:focal
EOF
'''
sshScript remote: remote, script: "build.source"
}
}
}