Skip to content

Commit

Permalink
[vs] Fix issue of swss debian being overwritten by sairedis (sonic-ne…
Browse files Browse the repository at this point in the history
…t#153)

Signed-off-by: Danny Allen <daall@microsoft.com>
  • Loading branch information
daall committed Aug 19, 2020
1 parent 3de4e07 commit 60b2239
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions jenkins/vs/sonic-swss-build-pr/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pipeline {
userRemoteConfigs: [[url: 'https://github.com/Azure/sonic-swss',
refspec: '+refs/pull/*:refs/remotes/origin/pr/*']]])
}
copyArtifacts(projectName: 'sonic-sairedis-build', filter: '**/*.deb', target: 'sairedis', flatten: true)
copyArtifacts(projectName: 'vs/sonic-sairedis-build', filter: '**/*.deb', target: 'sairedis', flatten: true)
copyArtifacts(projectName: 'common/sonic-swss-common-build', filter: '**/*.deb', target: 'common', flatten: true)
copyArtifacts(projectName: 'common/sonic-utilities-build', filter: '**/*.deb', target: 'utilities', flatten: true)
copyArtifacts(projectName: 'buildimage-vs-all', filter: '**/*.deb,**/docker-sonic-vs.gz', target: 'buildimage', flatten: false)
copyArtifacts(projectName: 'vs/buildimage-vs-all', filter: '**/*.deb,**/docker-sonic-vs.gz', target: 'buildimage', flatten: false)
}
}

Expand Down
4 changes: 2 additions & 2 deletions jenkins/vs/sonic-swss-build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ pipeline {
branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'https://github.com/Azure/sonic-swss']]])
}
copyArtifacts(projectName: 'sonic-sairedis-build', filter: '**/*.deb', target: 'sairedis', flatten: true)
copyArtifacts(projectName: 'vs/sonic-sairedis-build', filter: '**/*.deb', target: 'sairedis', flatten: true)
copyArtifacts(projectName: 'common/sonic-swss-common-build', filter: '**/*.deb', target: 'common', flatten: true)
copyArtifacts(projectName: 'common/sonic-utilities-build', filter: '**/*.deb', target: 'utilities', flatten: true)
copyArtifacts(projectName: 'buildimage-vs-all', filter: '**/*.deb,**/docker-sonic-vs.gz', target: 'buildimage', flatten: false)
copyArtifacts(projectName: 'vs/buildimage-vs-all', filter: '**/*.deb,**/docker-sonic-vs.gz', target: 'buildimage', flatten: false)
}
}

Expand Down
6 changes: 3 additions & 3 deletions scripts/vs/sonic-swss-build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ docker pull sonicdev-microsoft.azurecr.io:443/sonic-slave-buster-johnar:latest
docker run --rm=true --privileged -v $(pwd):/sonic -w /sonic -i sonicdev-microsoft.azurecr.io:443/sonic-slave-buster-johnar:latest ./scripts/vs/sonic-swss-build/build_in_docker.sh

mkdir -p scripts/vs/sonic-swss-build/debs
cp *.deb scripts/vs/sonic-swss-build/debs
cp sairedis/*.deb scripts/vs/sonic-swss-build/debs
cp common/*.deb scripts/vs/sonic-swss-build/debs
cp sairedis/libsai*.deb sairedis/syncd-vs_1.0.0_amd64.deb scripts/vs/sonic-swss-build/debs
cp common/*swsscommon*.deb scripts/vs/sonic-swss-build/debs
cp utilities/*.deb scripts/vs/sonic-swss-build/debs
cp *.deb scripts/vs/sonic-swss-build/debs

docker load < buildimage/target/docker-sonic-vs.gz

Expand Down

0 comments on commit 60b2239

Please sign in to comment.