Skip to content

Add support for Jenkins #9

Add support for Jenkins

Add support for Jenkins #9

Workflow file for this run

on: [push]
jobs:
multi-runs:
runs-on: ubuntu-24.04
name: Ensure the action can be executed multiple times
steps:
- name: Get the action.yml from the current branch
uses: actions/checkout@v4
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false
- uses: actions/checkout@v4
with:
path: scancode-inputs
- uses: ./
with:
project-name: "scan-1"
pipelines: "scan_codebase"
- uses: ./
with:
project-name: "scan-2"
pipelines: "scan_codebase"
- name: Verify scanpipe and scancode commands availability
shell: bash
run: |
echo "Checking ScanCode CLI availability..."
which scanpipe || { echo "scanpipe not found in PATH"; exit 1; }
which scancode || { echo "scancode not found in PATH"; exit 1; }
echo "Versions:"
scanpipe shell -c "import scancodeio; from scancode_config import __version__ as scancode_version;print(f'ScanCode.io version: {scancodeio.__version__}');print(f'ScanCode-toolkit version: v{scancode_version}')"