Skip to content

Continuous deployment #21

@AshLucifier

Description

@AshLucifier

First deployment is successful but after that if i want to make second deployment i need to update the image tag manually then run the pipeline so that it can fetch it or if i use the latest tag it is not picking up as there is no change in deployment file.
can you please help in either changing the tag from deployment file or adding kubectl apply command as i tried using below but it says kubectl not found.
stage('List pods') {
steps{
withKubeConfig([credentialsId: 'mykubeconfig']) {
sh './kubectl apply -f k8s-deployment.yaml'
}
}
}
jenkins file working code.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions