Skip to content

Commit c076818

Browse files
authored
Update Jenkinsfile
1 parent bec1334 commit c076818

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jenkins/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ pipeline {
2424
echo "Upgrading pip, setuptools, and wheel..."
2525
python3 -m pip install --upgrade --force-reinstall pip setuptools wheel packaging gitpython==3.1.45
2626
pip install --extra-index-url https://test.pypi.org/simple/ codeql-wrapper==0.2.15
27-
28-
codeql-wrapper --verbose analyze ./monorepo --monorepo --upload-sarif
2927
'''
3028
}
3129
}
@@ -34,8 +32,10 @@ pipeline {
3432
steps {
3533
sh '''#!/bin/bash
3634
. venv/bin/activate
35+
echo "Base Ref (Target Branch): ${env.CHANGE_TARGET}"
36+
echo "Ref (Source Branch): ${env.CHANGE_BRANCH}"
3737
38-
codeql-wrapper analyze ./monorepo --monorepo --upload-sarif --verbose
38+
codeql-wrapper --verbose analyze ./monorepo --monorepo --upload-sarif --ref ${env.CHANGE_BRANCH} --base-ref ${env.CHANGE_TARGET}
3939
'''
4040
}
4141
}

0 commit comments

Comments
 (0)