jenkins: cleaned submodule with changed distro version
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
76bd35e709
commit
2111fba848
|
|
@ -80,6 +80,11 @@ pipeline {
|
|||
}
|
||||
sh "rm -rf ${WORKSPACE}/tmp"
|
||||
}
|
||||
post {
|
||||
always {
|
||||
cleanup_distro_version()
|
||||
}
|
||||
}
|
||||
}
|
||||
} // stages
|
||||
}
|
||||
|
|
@ -125,6 +130,11 @@ def change_distro_version(versionString){
|
|||
sh(script:"${sedCmd} meta-netmodule-distro/conf/distro/netmodule-linux.conf")
|
||||
}
|
||||
|
||||
def cleanup_distro_version() {
|
||||
println "cleaning submodule holding distro version..."
|
||||
sh 'cd meta-netmodule-distro && git checkout *'
|
||||
}
|
||||
|
||||
|
||||
def build_and_archive() {
|
||||
if (params.IMAGE_TYPE == 'sdk') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue