diff --git a/Jenkinsfile b/Jenkinsfile index e536d7a..7709deb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {