From ad1dfbe5accd0fbafd1d489034a15703eac011ca Mon Sep 17 00:00:00 2001 From: giteaadmin Date: Sat, 29 Nov 2025 21:57:50 +0000 Subject: [PATCH] adding Jenkinsfile ading Jenkinsfile for pipeline setup --- Jenkinsfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..300ce53 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,40 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + checkout scm + } + } + + stage('Install Dependencies') { + steps { + sh 'npm install' // or mvn install / pip install + } + } + + stage('SAST - Semgrep') { + steps { + sh 'semgrep scan --config auto --json > semgrep-report.json || true' + } + post { + always { + archiveArtifacts artifacts: 'semgrep-report.json' + } + } + } + + stage('Unit Tests') { + steps { + sh 'npm test || true' + } + } + } + + post { + always { + echo "Dev pipeline finished" + } + } +}