Skip to content

Commit

Permalink
Revert "[utilities] Remove dependencies on latest swss and sairedis u…
Browse files Browse the repository at this point in the history
…pdates from utilities builds (sonic-net#146)" (sonic-net#154)

This reverts commit 5108023.
  • Loading branch information
daall authored Aug 20, 2020
1 parent fb60c51 commit 95f394f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jenkins/common/sonic-utilities-build-pr/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ pipeline {
userRemoteConfigs: [[url: 'https://github.com/Azure/sonic-utilities',
refspec: '+refs/pull/*:refs/remotes/origin/pr/*']]])
}
copyArtifacts(projectName: 'common/sonic-swss-common-build', filter: '**/*.deb', target: 'swss-common', flatten: true)
copyArtifacts(projectName: 'vs/sonic-swss-build', filter: '**/*.deb', target: 'swss', flatten: true)
copyArtifacts(projectName: 'vs/sonic-sairedis-build', filter: '**/*.deb', target: 'sairedis', flatten: true)
copyArtifacts(projectName: 'vs/buildimage-vs-all', filter: '**/*', target: 'buildimage', flatten: false)
}
}
Expand Down Expand Up @@ -55,7 +58,9 @@ pipeline {
publishCoverage(adapters: [
coberturaAdapter('sonic-utilities/deb_dist/sonic-utilities-1.2/coverage.xml')
])
}

success {
archiveArtifacts(artifacts: 'sonic-utilities/deb_dist/python-sonic-utilities_1.2-1_all.deb,wheels/sonic_config_engine-1.0-py2-none-any.whl,wheels/swsssdk-2.0.1-py2-none-any.whl,wheels/sonic_py_common-1.0-py2-none-any.whl,wheels/sonic_py_common-1.0-py3-none-any.whl, sonic-swss-tests/tests/log/**')
}

Expand Down
5 changes: 5 additions & 0 deletions jenkins/common/sonic-utilities-build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ pipeline {
branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'https://github.com/Azure/sonic-utilities']]])
}
copyArtifacts(projectName: 'common/sonic-swss-common-build', filter: '**/*.deb', target: 'swss-common', flatten: true)
copyArtifacts(projectName: 'vs/sonic-swss-build', filter: '**/*.deb', target: 'swss', flatten: true)
copyArtifacts(projectName: 'vs/sonic-sairedis-build', filter: '**/*.deb', target: 'sairedis', flatten: true)
copyArtifacts(projectName: 'vs/buildimage-vs-all', filter: '**/*', target: 'buildimage', flatten: false)
}
}
Expand Down Expand Up @@ -61,7 +64,9 @@ pipeline {
publishCoverage(adapters: [
coberturaAdapter('sonic-utilities/deb_dist/sonic-utilities-1.2/coverage.xml')
])
}

success {
archiveArtifacts(artifacts: 'sonic-utilities/deb_dist/python-sonic-utilities_1.2-1_all.deb,wheels/sonic_config_engine-1.0-py2-none-any.whl,wheels/swsssdk-2.0.1-py2-none-any.whl,wheels/sonic_py_common-1.0-py2-none-any.whl,wheels/sonic_py_common-1.0-py3-none-any.whl, sonic-swss-tests/tests/log/**')
}

Expand Down
12 changes: 12 additions & 0 deletions scripts/common/sonic-utilities-build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ docker run --rm=true --privileged -v $(pwd):/sonic -w /sonic -i sonicdev-microso

cp sonic-utilities/deb_dist/python-sonic-utilities_*.deb buildimage/target/python-debs/

cd sairedis
cp *.deb ../buildimage/target/debs/buster/
cd ../

cd swss
cp *.deb ../buildimage/target/debs/buster/
cd ../

cd swss-common
cp *.deb ../buildimage/target/debs/buster/
cd ../

on_exit()
{
sudo umount docker-sonic-vs/debs
Expand Down

0 comments on commit 95f394f

Please sign in to comment.