hydra-sql/Jenkinsfile

26 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-05-19 09:51:04 +02:00
// Intégration de la librairie Cadoles (voir https://forge.cadoles.com/Cadoles/Jenkins)
@Library("cadoles") _
// Utilisation du pipeline partagé pour les applications Symfony de Cadoles
// Le nom de l'image Docker passée en paramètre vous permet de préciser l'environnement de test
// de votre application Symfony
2023-06-16 13:46:17 +02:00
symfonyAppPipeline('ubuntu:22.04', [
'hooks': [
// Run docker image build, verification and publication stages
'postSymfonyAppPipeline': {
stage('Build and publish hydra-dispatcher image') {
// Retrieve current tag
String currentTag = sh(script: 'git tag --points-at HEAD | head -n 1', returnStdout: true).trim()
// Retrieve default tag
String defaultTag = sh(returnStdout: true, script: 'git describe --always').trim()
container.buildAndPublishImage([
2023-06-16 14:00:19 +02:00
'imageName': 'reg.cadoles.com/cadoles/hydra-sql',
2023-06-16 13:46:17 +02:00
// Use current tag or default tag if not defined
'imageTag': defaultTag,
2023-06-16 14:00:19 +02:00
'dockerfile': './misc/images/hydra-sql-standalone/Dockerfile',
2023-06-16 13:46:17 +02:00
'dryRun': false
])
}
}
]
])