// Jenkins declarative pipeline — add the stage to a consuming repo's Jenkinsfile.
// borderlint is a zero-dependency CLI; a non-zero exit fails the stage and the build.
pipeline {
  agent any
  stages {
    stage('AI data residency') {
      steps {
        sh '''
          python3 -m venv .blv && . .blv/bin/activate
          pip install --quiet borderlint
          python3 -m borderlint scan . --policy residency.json --classification customer-pii
        '''
      }
    }
  }
}
