24 Commits

Author SHA1 Message Date
samahk13 84a44f0477 Fix total_price: restore multiplication (#11)
Scrap-Web/pipeline/pr-main This commit looks good
Scrap-Web/pipeline/head This commit looks good
2026-10-23 23:06:39 -04:00
samahk13 a5180ad781 Demonstrate failing CI check: use addition in total_price (#N)
Scrap-Web/pipeline/pr-main There was a failure building this commit
2026-10-23 23:04:14 -04:00
samahk13 8ba340e32f Remove stray files from CI pull request; manual chapter moves to its own PR (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-23 23:01:57 -04:00
samahk13 c5538a84d1 Merge main into feature/issue-11, keeping the tested Jenkinsfile (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-23 22:52:52 -04:00
samahk13 81c343ddb6 Fix total_price: restore multiplication (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-23 22:41:45 -04:00
samahk13 091a9a9695 Update repository with local changes 2026-10-23 22:36:04 -04:00
samahk13 ab0bcc25f3 Demonstrate failing CI check: use addition in total_price (#11)
Scrap-Web/pipeline/pr-main There was a failure building this commit
2026-10-23 22:32:31 -04:00
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
samahk13 b899233138 Add pricing module, tests and Jenkinsfile for CI (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-18 15:03:41 -04:00
kholmes 7ffe1f0b34 Updated devopsAIAgentGuide
Build IT manual / build-manual (push) Successful in 25s
2026-10-11 01:54:14 +00:00
kholmes 75c2f21bae Added comments to devopsAssignment
Build IT manual / build-manual (push) Successful in 29s
2026-10-11 01:51:26 +00:00
kholmes 8174773cfb Updated README 2026-10-11 01:49:40 +00:00
kholmes 898660fd30 Repaired Build
Build IT manual / build-manual (push) Successful in 27s
2026-10-11 00:57:25 +00:00
kholmes b76eba3c4f Purposeful Error
Build IT manual / build-manual (push) Failing after 13s
2026-10-11 00:54:22 +00:00
kholmes 67e9e17eab added metadata grab
Build IT manual / build-manual (push) Successful in 28s
2026-10-10 20:55:49 +00:00
kholmes 543be42786 added for H5 step 4
Build IT manual / build-manual (push) Successful in 28s
2026-10-10 20:54:02 +00:00
kholmes 05ef5690b1 updated versioning
Build IT manual / build-manual (push) Successful in 33s
2026-10-10 20:42:47 +00:00
kholmes 1b0d53291f changed upload artifact version
Build IT manual / build-manual (push) Successful in 40s
2026-10-10 04:31:48 +00:00
kholmes f95aa89208 Update manual/ci/Dockerfile
Build IT manual / build-manual (push) Failing after 28s
2026-10-10 03:55:42 +00:00
kholmes c61c4d9d86 Update manual/ci/Dockerfile
Build IT manual / build-manual (push) Failing after 15s
2026-10-10 03:27:09 +00:00
kholmes bd6dc0a865 Update manual/ci/Dockerfile
Build IT manual / build-manual (push) Failing after 13s
2026-10-10 03:00:49 +00:00
kholmes a7b93e380a updated dockerfile again
Build IT manual / build-manual (push) Failing after 12s
2026-10-10 02:57:31 +00:00
kholmes ebd8b2e424 updated Dockerfile 2026-10-10 02:40:55 +00:00
9 changed files with 124 additions and 6 deletions
+25 -1
View File
@@ -25,6 +25,30 @@ jobs:
- name: Check out the triggering commit - name: Check out the triggering commit
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Generate build metadata
working-directory: manual
env:
GIT_COMMIT: ${{ github.sha }}
BUILD_NUMBER: ${{ github.run_number }}
run: |
MANUAL_VERSION="v1.4"
SHORT_SHA="${GIT_COMMIT:0:7}"
BUILD_ID="${MANUAL_VERSION}+build.${BUILD_NUMBER}.${SHORT_SHA}"
cat > build-metadata.tex <<EOF
\newcommand{\ManualVersion}{${MANUAL_VERSION}}
\newcommand{\BuildIdentifier}{${BUILD_ID}}
\newcommand{\BuildCommit}{${GIT_COMMIT}}
\newcommand{\BuildRunNumber}{${BUILD_NUMBER}}
EOF
cat >> build-metadata.tex <<'EOF'
\noindent\textbf{Manual version:} \ManualVersion\\
\textbf{Build identifier:} \BuildIdentifier\\
\textbf{Commit hash:} \BuildCommit\\
\textbf{Gitea Actions run:} \BuildRunNumber
EOF
- name: Record build identity and toolchain - name: Record build identity and toolchain
run: | run: |
SHORT_SHA="${GITHUB_SHA::7}" SHORT_SHA="${GITHUB_SHA::7}"
@@ -51,7 +75,7 @@ jobs:
ls -l devopsAssignment.pdf ls -l devopsAssignment.pdf
- name: Upload the PDF as an artifact - name: Upload the PDF as an artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: it-manual-build-${{ github.run_number }}-${{ env.SHORT_SHA }} name: it-manual-build-${{ github.run_number }}-${{ env.SHORT_SHA }}
path: manual/devopsAssignment.pdf path: manual/devopsAssignment.pdf
+1
View File
@@ -0,0 +1 @@
__pycache__/
Vendored
+40
View File
@@ -0,0 +1,40 @@
// CI pipeline for Scrap-Web (SSW 590, Continuous Integration with Jenkins).
// Runs for every pull request through the Multibranch Pipeline job and reports
// its result to Gitea as a commit status. Uses only the Python 3 standard
// library, so no packages are downloaded during the build.
pipeline {
// Builds run on the Jenkins controller executor (see the IT manual for the
// documented risk). python3 must be installed in the Jenkins container.
agent any
options {
skipDefaultCheckout()
timeout(time: 10, unit: 'MINUTES')
}
stages {
stage('Checkout') {
steps {
checkout scm
// Record exactly which commit is being tested, for traceability.
sh 'git rev-parse HEAD'
sh 'python3 --version'
}
}
stage('Syntax check') {
steps {
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Test') {
steps {
sh 'python3 -m unittest discover -s tests -v'
}
}
}
post {
success { echo 'All checks passed.' }
failure { echo 'A stage failed: see the stage view for which one.' }
}
}
+2
View File
@@ -3,3 +3,5 @@
This Repo is here to act as Group 8's repo for the SSW590 course This Repo is here to act as Group 8's repo for the SSW590 course
In the 10/2 assignment, we added a domain, reverse proxy, https, and created our repo in Gitea In the 10/2 assignment, we added a domain, reverse proxy, https, and created our repo in Gitea
In the 10/10 assignment, we added an automation workflow for compiling a LaTeX artifact upon git pushes
+19 -1
View File
@@ -8,6 +8,24 @@ FROM texlive/texlive:TL2025-historic
# The workflow's actions (checkout, upload-artifact) are JavaScript actions and # The workflow's actions (checkout, upload-artifact) are JavaScript actions and
# need Node.js inside the job container; git lets checkout do a real clone. # need Node.js inside the job container; git lets checkout do a real clone.
# Packages come from the image's own Debian repositories -- no downloaded scripts. # Packages come from the image's own Debian repositories -- no downloaded scripts.
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends nodejs git ca-certificates \ && apt-get install -y --no-install-recommends \
nodejs git ca-certificates python3 python3-pip python3-venv curl \
&& python3 -m venv /opt/latex-venv \
&& /opt/latex-venv/bin/pip install --upgrade pip \
&& /opt/latex-venv/bin/pip install --upgrade latexminted==0.7.1 Pygments \
&& mkdir -p /tmp/minted-src /usr/local/share/texmf/tex/latex/minted \
&& curl -fsSL https://mirrors.ctan.org/macros/latex/contrib/minted/minted.dtx \
-o /tmp/minted-src/minted.dtx \
&& curl -fsSL https://mirrors.ctan.org/macros/latex/contrib/minted/minted.ins \
-o /tmp/minted-src/minted.ins \
&& cd /tmp/minted-src \
&& latex minted.ins \
&& cp minted.sty /usr/local/texlive/2025/texmf-dist/tex/latex/minted/minted.sty \
&& mktexlsr \
&& rm -rf /tmp/minted-src \
&& mktexlsr \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV PATH="/opt/latex-venv/bin:/usr/local/bin:${PATH}"
+1
View File
@@ -1,3 +1,4 @@
% This file acts as the entry point for AI
\chapter{AI Agent Usage Guide} \chapter{AI Agent Usage Guide}
\ChapterLabel{AIAgentGuide} \ChapterLabel{AIAgentGuide}
\index{AI agent} \index{AI agent}
+11 -3
View File
@@ -40,10 +40,10 @@
\newcommand{\CourseName}{DevOps} \newcommand{\CourseName}{DevOps}
\newcommand{\Instructor}{Samah Keshiro and Kayla Holmes} \newcommand{\Instructor}{Samah Keshiro and Kayla Holmes}
\newcommand{\Organization}{Stevens Institute of Technology} \newcommand{\Organization}{Stevens Institute of Technology}
\newcommand{\DocumentDate}{10/02/26} \newcommand{\DocumentDate}{10/10/26}
\newcommand{\DueDate}{[Due Date and Time]} \newcommand{\DueDate}{[Due Date and Time]}
\newcommand{\VERSION}{Version 1.3} \newcommand{\VERSION}{Version 1.4}
\newcommand{\AssignmentNumber}{2} \newcommand{\AssignmentNumber}{5}
\newcolumntype{Y}{>{\raggedright\arraybackslash}X} \newcolumntype{Y}{>{\raggedright\arraybackslash}X}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
@@ -104,6 +104,14 @@
\singlespacing \singlespacing
\include{prologue} \include{prologue}
% Display build metadata generated by Gitea Actions.
\IfFileExists{build-metadata.tex}{
\input{build-metadata.tex}
}{
\textit{Build metadata is available in automated builds.}
}
% Adds in variables for title page
\setcounter{page}{1} \setcounter{page}{1}
\pagenumbering{arabic} \pagenumbering{arabic}
\pagestyle{fancy} \pagestyle{fancy}
+8
View File
@@ -0,0 +1,8 @@
"""Pricing helper for the Scrap-Web CI pipeline (SSW 590, Jenkins assignment)."""
def total_price(unit_price, quantity):
"""Return the total price for `quantity` items at `unit_price` each."""
if quantity < 1:
raise ValueError("Quantity must be positive")
return unit_price * quantity
+16
View File
@@ -0,0 +1,16 @@
import unittest
from pricing import total_price
class PricingTests(unittest.TestCase):
def test_total(self):
self.assertEqual(total_price(10, 3), 30)
def test_invalid_quantity(self):
with self.assertRaises(ValueError):
total_price(10, 0)
if __name__ == "__main__":
unittest.main()