Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-docs-pipeline-diff.groovy.j2
Show All 26 Lines | stages { | ||||
} | } | ||||
stage('Checkout swh modules') { | stage('Checkout swh modules') { | ||||
steps { | steps { | ||||
script { | script { | ||||
sh'''#!/bin/bash | sh'''#!/bin/bash | ||||
crudini --del .mrconfig snippets | crudini --del .mrconfig snippets | ||||
crudini --del .mrconfig swh-py-template | crudini --del .mrconfig swh-py-template | ||||
# force shallow clone of swh-repos except swh-docs | # only fetch the HEAD branch instead of all (potentially large) branches | ||||
sed -i '/swh-docs/!s/git clone/git clone --depth 1/g' .mrconfig | sed -i '/swh-docs/!s/git clone/git clone --single-branch/g' .mrconfig | ||||
mr -j 4 -t update | mr -j 4 -t update | ||||
''' | ''' | ||||
} | } | ||||
} | } | ||||
} | } | ||||
stage('Apply phabricator diff') { | stage('Apply phabricator diff') { | ||||
steps { | steps { | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | always { | ||||
reportFiles: 'index.html', | reportFiles: 'index.html', | ||||
reportName: 'SWH sysadmin Documentation' | reportName: 'SWH sysadmin Documentation' | ||||
]) | ]) | ||||
} | } | ||||
cleanup { | cleanup { | ||||
cleanWs() | cleanWs() | ||||
} | } | ||||
} | } | ||||
} | } | ||||
No newline at end of file |