diff --git a/Jenkinsfile b/Jenkinsfile index 47ebfde..bbdd4b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,17 +29,19 @@ pipeline{ { stage('Build') { steps { - sshCommand remote: remote, command: ''' - set -e - export WORKSPACE=$(realpath "./jenkins/workspace/ci-yocto") - cd $WORKSPACE - docker buildx build \ + sh''' + export -p | tee build.source +cat <<"EOF" >>build.source + cd $WORKSPACE + docker buildx build \ --platform amd64 \ --output "type=docker,push=false,name=xsangle/ci-yocto:focal" \ . 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" } } }