3 ms·
We do this inside a Jenkinsfile, slightly annoying if your actual pipeline is broken and needs editing as you also need to do a fake edit to the application, bu
by nickspicer 8y ago
We do this inside a Jenkinsfile, slightly annoying if your actual pipeline is broken and needs editing as you also need to do a fake edit to the application, but works 95% of the time for us.
def databaseChanges = sh returnStdout: true, script:"git diff --name-only HEAD^ HEAD database"
def etlChanges = sh returnStdout: true, script:"git diff --name-only HEAD^ HEAD etl"
def apiChanges = sh returnStdout: true, script:"git diff --name-only HEAD^ HEAD api"