Skip to content

Commit 5775114

Browse files
authored
[kernel]: add pr build for buster kernel (sonic-net#96)
Signed-off-by: Guohan Lu <[email protected]>
1 parent e85c6d6 commit 5775114

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

jenkins/common/linux-kernel-build/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pipeline {
2-
agent { node { label 'sonic-slave-stretch' } }
2+
agent { node { label 'sonic-slave-buster' } }
33

44
options {
55
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10'))
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pipeline {
2+
agent { node { label 'sonic-slave-buster' } }
3+
4+
stages {
5+
stage('Prepare') {
6+
steps {
7+
checkout([$class: 'GitSCM',
8+
branches: [[name: '${sha1}']],
9+
userRemoteConfigs: [[url: 'http://github.com/Azure/sonic-linux-kernel',
10+
refspec: '+refs/pull/*:refs/remotes/origin/pr/*']]])
11+
}
12+
}
13+
14+
stage('Build') {
15+
steps {
16+
sh '''
17+
#!/bin/bash -ex
18+
19+
export kernel_procure_method=build
20+
make
21+
'''
22+
}
23+
}
24+
}
25+
post {
26+
success {
27+
archiveArtifacts(artifacts: '*.deb')
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)