Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-pipeline.groovy.j2
Show All 23 Lines | stage('Checkout') { | ||||
[url: 'https://forge.softwareheritage.org/source/{{repo_name}}.git'], | [url: 'https://forge.softwareheritage.org/source/{{repo_name}}.git'], | ||||
], | ], | ||||
browser: [$class: 'Phabricator', repoUrl: 'https://forge.softwareheritage.org', repo: '{{name}}'] | browser: [$class: 'Phabricator', repoUrl: 'https://forge.softwareheritage.org', repo: '{{name}}'] | ||||
]) | ]) | ||||
} | } | ||||
} | } | ||||
{%- if phabricator_diff %} | {%- if phabricator_diff %} | ||||
{% filter indent(width=4) %} | stage('Apply phabricator diff') { | ||||
{%- include 'includes/stage-apply-phabricator-diff.groovy.j2' -%} | steps { | ||||
{% filter indent(width=8) %} | |||||
{%- include 'includes/script-apply-phabricator-diff.groovy.j2' -%} | |||||
{% endfilter %} | {% endfilter %} | ||||
} | |||||
} | |||||
{%- endif %} | {%- endif %} | ||||
stage('Static analysis') { | stage('Static analysis') { | ||||
parallel { | parallel { | ||||
stage ('flake8') { | stage ('flake8') { | ||||
steps { | steps { | ||||
sh '''python3 -m tox -e flake8''' | sh '''python3 -m tox -e flake8''' | ||||
} | } | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |