https://github.com/cloudogu/jenkins-deploy-helper-lib
https://github.com/cloudogu/jenkins-deploy-helper-lib
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudogu/jenkins-deploy-helper-lib
- Owner: cloudogu
- Created: 2024-09-13T08:24:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-20T10:16:42.000Z (10 months ago)
- Last Synced: 2025-08-20T12:22:41.202Z (10 months ago)
- Language: Groovy
- Size: 177 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jenkins-docker-image-updater
### Use Example
```groovy
@Library('github.com/cloudogu/gitops-build-lib@0.6.0')
import com.cloudogu.gitops.gitopsbuildlib.*
@Library('github.com/cloudogu/jenkins-deploy-helper-lib@main') _
node('docker') {
properties([
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds(),
pipelineTriggers([cron('H H(2-4) * * *')]) // randomly between 2 and 4 AM for load balancing
])
// Load credentials for the webhook URL from Jenkins credentials store
withCredentials([string(credentialsId: 'jenkins-pipeline-notifier-webhookurl', variable: 'WEBHOOK')]) {
// Execute the common pipeline function from the shared library
createTagAndDeploy(
classname: 'esti-mate', // Define the classname for your specific application
webhook: "${WEBHOOK}", // Use the loaded webhook URL for notifications
repositoryUrl: 'sos/gitops', // Set the GitOps repository URL
filename: 'deployment.yaml', // Specify the filename used in the deployment step
buildArgs: '',
team: 'sos'
)
}
}