Wednesday, November 27, 2019
Tuesday, November 19, 2019
how to skip stage in jenkins pipeline
Skipped Stages in Jenkins Scripted Pipeline
To show all stages at every build even if not executed is a
good practice and brings transparency into pipelines
with conditional steps or stages. Add the when condition
to a stage of your pipeline:
pipeline {
agent any stages { stage ('1 choice') { when { expression { choice == '1'} } steps { echo "Hello, Choice 1!" } } stage ('2 choice') { when { expression { choice == '2'} } steps { echo "Hello, Choice 2!" } } stage ('3 choice') { when { expression { choice == '3'} } steps { echo "Hello, Choice 3!" } } } } |
Thursday, November 7, 2019
Subscribe to:
Posts (Atom)
Top ChatGPT Prompts for DevOps Engineers
As a DevOps engineer, your role involves juggling complex tasks such as automation, infrastructure management, CI/CD pipelines, and troubl...
-
sudo apt update sudo apt install ubuntu-desktop sudo apt install tightvncserver sudo apt install gnome-panel gnome-settings-daemon metac...