// Declarative // pipeline { agent any stages { stage('Non-Parallel Stage') { steps { echo 'This stage will be executed first.' } } stage('Parallel Stage') { when { branch 'master' } failFast true parallel { stage('Branch A') { agent { label "for-branch-a" } steps { echo "On Branch A" } } stage('Branch B') { agent { label "for-branch-b" } steps { echo "On Branch B" } } } } } } // Script // 

## Steps 

Declarative Pipelines may use all the available steps documented in the Pipeline Steps reference, which contains a comprehensive list of steps, with the addition of the steps listed below which are only supported  in Declarative Pipeline. 

## script 

The script  step takes a block of [scripted-pipeline] and executes that in the Declarative Pipeline. For most use-cases, the script  step should be unnecessary in Declarative Pipelines, but it can provide a 

