Better HN
topnewbestaskshowjobs
Log inSign up

nickspicer

2 karma · joined Mar 5, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

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"