Update Jenkinsfile

This commit is contained in:
2025-05-22 12:27:11 +03:00
parent 90f312e1b3
commit 2e51140f7b

11
Jenkinsfile vendored
View File

@@ -41,6 +41,8 @@ spec:
workingDir: /home/jenkins/agent
command: ["/bin/sh", "-c"]
args: ["sleep 9999999"]
securityContext:
privileged: true
- name: docker
image: docker:dind
@@ -129,15 +131,20 @@ spec:
}
}
}
stage('Helm check') {
steps {
container('helm') {
sh 'helm repo list'
}
}
}
stage('Setup Helm Repo') {
agent { node { label 'default' } }
steps {
sh 'helm repo add my-helm-repo http://nexus-repo-nexus-repository-manager:8081/repository/my-helm-repo/'
sh 'helm repo update'
}
}
stage('Deploy Helm Chart') {
agent { node { label 'default' } }
steps {
sh 'helm install example-app my-helm-repo/example-app --set port=8090'
}