2 Commits

Author SHA1 Message Date
kholmes fa22a0d512 Merge pull request 'Added Jenkinsfile for build automation' (#15) from kholmes-patch-2 into main
Scrap-Web/pipeline/head There was a failure building this commit
Reviewed-on: #15
2026-10-24 01:19:22 +00:00
kholmes b779817f2c Added Jenkinsfile for build automation
Scrap-Web/pipeline/pr-main There was a failure building this commit
Scrap-Web/pipeline/head There was a failure building this commit
2026-10-24 01:18:17 +00:00
2 changed files with 27 additions and 13 deletions
Vendored
+27
View File
@@ -0,0 +1,27 @@
pipeline {
agent any
options {
skipDefaultCheckout()
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Syntax check') {
steps {
sh 'python3 -m py_compile pricing.py'
}
}
stage('Test') {
steps {
sh 'python3 -m unittest discover -s tests -v'
}
}
}
}
-13
View File
@@ -1,13 +0,0 @@
# Jenkins controller image for the Scrap-Web CI pipeline (SSW 590).
# The official Jenkins LTS image does not include Python, which the
# Jenkinsfile needs (builds run on the controller executor).
#
# Replace <LTS-TAG> with the exact tag currently in the Compose file,
# e.g. 2.xxx.y-lts-jdk21, so the recorded Jenkins version does not change.
FROM jenkins/jenkins:<LTS-TAG>
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 \
&& rm -rf /var/lib/apt/lists/*
USER jenkins