Skip to content

cloudogu/jenkins-deploy-helper-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-docker-image-updater

Use Example

@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'
        )
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages