Skip to content

Commit

Permalink
move build job to build worker and kvm test to kvmtest workers (sonic…
Browse files Browse the repository at this point in the history
…-net#113)

there will be three roles of workers
- jenkins-build-workers
- jenkins-vstest-workers
- jenkins-kvmtest-workers

The build workers are mainly for build the image.
The vstest workers are mainly for swss/sonic-utilities vs tests
The kvmtest workers are manly for sonic-mgmt kvm tests

The vstest and kvmtest can share the same physical servers. However, to help debug, we introduce two roles so that they can be separated to avoid their jobs affecting each other.
  • Loading branch information
lguohan authored Jun 17, 2020
1 parent d37b9ee commit b85681d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions jenkins/mgmt/sonic-mgmt-canary/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pipeline {
agent {
node { label 'jenkins-vstest-workers' }
agent {
node { label 'jenkins-kvmtest-workers' }
}

options {
Expand Down Expand Up @@ -41,7 +41,7 @@ pipeline {
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/results/**/*.xml')
archiveArtifacts(artifacts: 'sonic-mgmt/tests/results/**, sonic-mgmt/tests/logs/**')
}
}
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions jenkins/mgmt/sonic-mgmt-pr/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pipeline {
agent {
node { label 'jenkins-vstest-workers' }
agent {
node { label 'jenkins-kvmtest-workers' }
}

options {
Expand Down Expand Up @@ -38,7 +38,7 @@ pipeline {
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/results/**/*.xml')
archiveArtifacts(artifacts: 'sonic-mgmt/tests/results/**, sonic-mgmt/tests/logs/**')
}
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion jenkins/vs/buildimage-vs-all/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { node { label 'jenkins-kvmtest-workers' } }
agent { node { label 'jenkins-build-workers' } }

options {
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30'))
Expand Down
2 changes: 1 addition & 1 deletion jenkins/vs/buildimage-vs-image-201911-test/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { node { label 'jenkins-vstest-workers' } }
agent { node { label 'jenkins-kvmtest-workers' } }

parameters {
string(name: 'PROJECT', defaultValue: 'vs/buildimage-vs-image-201911', description: 'which project to test')
Expand Down
2 changes: 1 addition & 1 deletion jenkins/vs/buildimage-vs-image-buster/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { node { label 'jenkins-kvmtest-workers' } }
agent { node { label 'jenkins-build-workers' } }

options {
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30'))
Expand Down
4 changes: 2 additions & 2 deletions jenkins/vs/buildimage-vs-image-pr/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { node { label 'jenkins-kvmtest-workers' } }
agent { node { label 'jenkins-build-workers' } }

options {
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '60'))
Expand Down Expand Up @@ -49,7 +49,7 @@ sudo cp ../target/sonic-vs.bin /nfs/jenkins/sonic-vs-${JOB_NAME##*/}.${BUILD_NUM
}

stage('Test') {
agent { node { label 'jenkins-vstest-workers' } }
agent { node { label 'jenkins-kvmtest-workers' } }

steps {
dir('sonic-mgmt') {
Expand Down
2 changes: 1 addition & 1 deletion jenkins/vs/buildimage-vs-image-test/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { node { label 'jenkins-vstest-workers' } }
agent { node { label 'jenkins-kvmtest-workers' } }

parameters {
string(name: 'PROJECT', defaultValue: 'vs/buildimage-vs-image', description: 'which project to test')
Expand Down
4 changes: 2 additions & 2 deletions jenkins/vs/buildimage-vs-image/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent { node { label 'jenkins-kvmtest-workers' } }
agent { node { label 'jenkins-build-workers' } }

options {
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30'))
Expand Down Expand Up @@ -61,7 +61,7 @@ sudo cp ../target/sonic-vs-dbg.bin /nfs/jenkins/sonic-vs-dbg-${JOB_NAME##*/}.${B
}

stage('Test') {
agent { node { label 'jenkins-vstest-workers' } }
agent { node { label 'jenkins-kvmtest-workers' } }

steps {
dir('sonic-mgmt') {
Expand Down

0 comments on commit b85681d

Please sign in to comment.