dont use fixed workspace path for building
All checks were successful
gitea-sync/ci-yocto/pipeline/head This commit looks good
All checks were successful
gitea-sync/ci-yocto/pipeline/head This commit looks good
This commit is contained in:
parent
2bd5e258bd
commit
09e3c5d6a7
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user