jenkins_upload_packages (#13)

Reviewed-on: #13

refers #1313
changes-directories^2
Nicolas Arenas 2025-03-19 13:17:29 +01:00
parent 55ef5fe061
commit 8b4feb1e46
2 changed files with 17 additions and 2 deletions

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.6.2] - 2025-03-19
### Changed
- Jenkinsfile to upload debian packages
## [0.6.1] - 2025-02-25
### Fixed

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 {