Skip to content

Instantly share code, notes, and snippets.

@harsha89
Created June 27, 2020 14:17
Show Gist options
  • Save harsha89/1a8ab09c19bfbb65b430d357d7a12b68 to your computer and use it in GitHub Desktop.
Save harsha89/1a8ab09c19bfbb65b430d357d7a12b68 to your computer and use it in GitHub Desktop.
pipeline {
agent any
stages {
stage('Deploy Web app to Azure'){
when { changeset "*/component_a/**"} //Will execute your steps if any file change inside the component_a directory
steps {
//Your steps
}
}
stage('Deploy API service to Azure portal'){
when { changeset "*/component_b/**"} //Will execute your steps if any file change inside the component_b directory
steps {
//Your steps
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment