@Library('github.com/cloudogu/[email protected]')
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'
)
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
cloudogu/jenkins-deploy-helper-lib
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published