Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
pipeline {
agent any

stages {
stage('Checkout') {
// Fetch the exact revision that triggered this Jenkins run
steps {
checkout scm
}
}

stage('Install Dependencies') {
// Create an isolated virtualenv in the workspace and install
// glassboxml (editable) plus pytest into it, mirroring the
// "Install dependencies" step in .github/workflows/tests.yml
steps {
sh '''
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -e .
.venv/bin/pip install pytest
'''
}
}

stage('Run Tests') {
// Same command CI runs: the full pytest suite
steps {
sh '.venv/bin/pytest'
}
}

stage('Build Docker Image') {
// Validate the Dockerfile at the repo root still builds cleanly,
// same command used locally and in the docker-build CI job
steps {
sh 'docker build -t glassboxml-webapp .'
}
}
}
}
Loading