Modified Jnenkinsfiles
testing/og-dhcp-API/pipeline/head There was a failure building this commit Details
ogdhcp/pipeline/head There was a failure building this commit Details

jenkins_upload_packages
Nicolas Arenas 2025-03-19 12:58:50 +01:00
parent 5389eba18c
commit fd3eb0133f
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,11 +55,22 @@ 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"
}
}
}
}
post {