jenkins_upload_packages (#6)
testing/og-dhcp-API/pipeline/head There was a failure building this commit Details
ogdhcp/pipeline/tag This commit looks good Details

Publicar paquetes en aptly repo

Reviewed-on: #6

refers #1313
new_files_placement 0.6.1
Nicolas Arenas 2025-03-19 13:05:25 +01:00
parent 5389eba18c
commit eb2c46fb46
2 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## [0.6.1] - 2025-03-19
### Changed
- Modified Jenkinsfile to publish packages
## [0.6.0] - 2025-03-03
### Added
- Nuevos parámetros a la subred: `dns` y `subnetname`, añadiéndolos a la configuración de Kea.

View File

@ -55,10 +55,21 @@ 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/ogdhcp && mkdir -p /var/tmp/opengnsys/debian-repo/ogdhcp"
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ogdhcp
'''
}
}
}
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"
}
}
}