We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c9713 commit 49be2fdCopy full SHA for 49be2fd
.github/workflows/test-jenkinsfile.yml
@@ -0,0 +1,21 @@
1
+name: Test Jenkinsfile
2
+
3
+on: [push]
4
5
+jobs:
6
+ test-jenkinsfile:
7
+ name: Scan codebase using the Jenkinsfile
8
+ runs-on: ubuntu-24.04
9
10
+ steps:
11
+ - name: Checkout repository
12
+ uses: actions/checkout@v4
13
14
+ - name: Run Jenkinsfile
15
+ run: |
16
+ docker run --rm \
17
+ -v "$PWD":/workspace \
18
+ -w /workspace \
19
+ jenkins/jenkinsfile-runner:latest \
20
21
+ -f /workspace/jenkins/Jenkinsfile
jenkins/Jenkinsfile
@@ -0,0 +1,16 @@
+pipeline {
+ agent any
+ stages {
+ stage('Scan') {
+ steps {
+ sh '''
+ -v "$PWD":/codebase \
+ ghcr.io/aboutcode-org/scancode.io:latest \
+ run scan_codebase /codebase \
+ > results.json
+ '''
+ }
+}
0 commit comments