Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-pipeline.groovy
Show All 28 Lines | stage('Checkout') {{ | ||||
''' | ''' | ||||
}} | }} | ||||
checkout([$class: 'GitSCM', | checkout([$class: 'GitSCM', | ||||
branches: [[name: "${{params.REVISION}}"]], | branches: [[name: "${{params.REVISION}}"]], | ||||
doGenerateSubmoduleConfigurations: false, | doGenerateSubmoduleConfigurations: false, | ||||
extensions: [], | extensions: [], | ||||
gitTool: 'Default', | gitTool: 'Default', | ||||
submoduleCfg: [], | submoduleCfg: [], | ||||
userRemoteConfigs: [[url: 'https://forge.softwareheritage.org/source/{display-name}.git']] | userRemoteConfigs: [[url: 'https://forge.softwareheritage.org/source/{display-name}.git']], | ||||
browser: [$class: 'Phabricator', repoUrl: 'https://forge.softwareheritage.org', repo: '{name}'] | |||||
]) | ]) | ||||
}} | }} | ||||
}} | }} | ||||
stage('Static analysis') {{ | stage('Static analysis') {{ | ||||
steps {{ | steps {{ | ||||
echo 'flake8' | echo 'flake8' | ||||
sh '''python3 -m detox -e flake8''' | sh '''python3 -m detox -e flake8''' | ||||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | always {{ | ||||
python3 -m pyarcanist send-message $MSGTYPE $PHID | python3 -m pyarcanist send-message $MSGTYPE $PHID | ||||
fi | fi | ||||
''' | ''' | ||||
}} // withEnv | }} // withEnv | ||||
}} // withCredentials | }} // withCredentials | ||||
}} // always | }} // always | ||||
}} // post | }} // post | ||||
}} // pipeline | }} // pipeline | ||||
No newline at end of file | No newline at end of file |