Explicando passo a passo um arquivo Jenkinsfile

Scripted vs Declarative

Desmembrando o Pipeline

pipeline {
/* insert Declarative Pipeline here */
}

Sections

Agent

pipeline {
agent any
}

Post

Stages

Steps

Directives

environment

environment { 
PATH="/home/bitnami/miniconda3/bin:$PATH"
}
stages {
stage('Load Parameters') {
environment {
PATH="/home/bitnami/miniconda3/bin:$PATH")
}
}
}

options

parameters

triggers

stage

input

when

stage('Example Deploy') {
when {
expression { BRANCH_NAME ==~ /(production|staging)/ }
anyOf {
environment name: 'DEPLOY_TO', value: 'production'
environment name: 'DEPLOY_TO', value: 'staging'
}
}

Parallel

Data scientist and devops enthusiast.

Data scientist and devops enthusiast.