_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Jenkins Pipeline

05. 10. 2025 1 min read intermediate

DevOps Intermediate

Jenkins Pipeline

JenkinsPipelineCI/CD 3 min read

Jenkins Declarative Pipeline. Stages, agents, post actions.

Jenkinsfile

pipeline {
    agent any
    stages {
        stage('Test') { steps { sh 'npm ci && npm test' } }
        stage('Build') { steps { sh 'docker build -t myapp:${BUILD_NUMBER} .' } }
        stage('Deploy') {
            when { branch 'main' }
            steps { sh 'kubectl set image deploy/app app=myapp:${BUILD_NUMBER}' }
        }
    }
    post { failure { slackSend channel: '#ci', message: 'Build failed!' } }
}

Shrnuti

Jenkins je flexibilni ale vyzaduje udrzbu. Pro nove projekty zvazte GitHub Actions nebo GitLab CI.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.