Updated Jenkinsfile and Changelog

pull/13/head
Nicolas Arenas 2025-03-19 13:16:50 +01:00
parent 6e00281343
commit 555f943509
1 changed files with 13 additions and 2 deletions

View File

@ -55,12 +55,23 @@ pipeline {
sh '''
dpkg-buildpackage -us -uc
mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/
ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo && mkdir -p /var/tmp/opengnsys/debian-repo"
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/
ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo/ogboot && mkdir -p /var/tmp/opengnsys/debian-repo/ogboot/"
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ogboot/
'''
}
}
}
stage ('Publish to Debian Repository') {
when {
expression {
return env.TAG_NAME != null
}
}
agent { label 'debian-repo' }
steps {
sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/ogdhcp/*.deb"
}
}
}
post {
always {