jenkins: cleaned submodule with changed distro version

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2020-11-11 10:59:34 +01:00
parent 76bd35e709
commit 2111fba848
1 changed files with 10 additions and 0 deletions

10
Jenkinsfile vendored
View File

@ -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') {