fetch develop before checking

This commit is contained in:
Andrea Maria Piana 2023-06-28 09:49:24 +01:00
parent bada9fee11
commit 5f55a7bcc8
2 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ pipeline {
stage('Migration') {
steps { script {
nix.shell('make migration-check')
nix.shell('make migration-check', pure: false)
} }
}

View File

@ -19,6 +19,7 @@ check_migration_order() {
done
}
git fetch origin develop
committed_files=$(git ls-tree -r --name-only HEAD protocol/migrations/sqlite/*.sql | sort)
staged_files=$(git diff --name-only origin/develop protocol/migrations/sqlite/*.sql | sort)