pipeline { agent any stages { stage('credits'){ when { changeset "./credits.txt"} steps { sh "/home/adam/iHateThis.sh" } } } }