Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-cypress.groovy
Show All 9 Lines | stages {{ | ||||
stage('Checkout') {{ | stage('Checkout') {{ | ||||
steps {{ | steps {{ | ||||
withCredentials([ | withCredentials([ | ||||
string(credentialsId: 'swh-public-ci', | string(credentialsId: 'swh-public-ci', | ||||
variable: 'PHAB_CONDUIT_TOKEN')]) {{ | variable: 'PHAB_CONDUIT_TOKEN')]) {{ | ||||
sh ''' | sh ''' | ||||
if [ -n "$PHID" ]; then | if [ -n "$PHID" ]; then | ||||
echo "{ | echo "{{ | ||||
\\\"buildTargetPHID\\\": \\\"$PHID\\\", | \\\"buildTargetPHID\\\": \\\"$PHID\\\", | ||||
\\\"artifactKey\\\": \\\"link.jenkins\\\", | \\\"artifactKey\\\": \\\"link.jenkins\\\", | ||||
\\\"artifactType\\\": \\\"uri\\\", | \\\"artifactType\\\": \\\"uri\\\", | ||||
\\\"artifactData\\\": { | \\\"artifactData\\\": {{ | ||||
\\\"uri\\\": \\\"$BUILD_URL\\\", | \\\"uri\\\": \\\"$BUILD_URL\\\", | ||||
\\\"name\\\": \\\"Jenkins\\\", | \\\"name\\\": \\\"Jenkins\\\", | ||||
\\\"ui.external\\\": true | \\\"ui.external\\\": true | ||||
} | }} | ||||
}" | arc call-conduit --conduit-uri $PHAB_CONDUIT_URL --conduit-token $PHAB_CONDUIT_TOKEN harbormaster.createartifact | }}" | arc call-conduit --conduit-uri $PHAB_CONDUIT_URL --conduit-token $PHAB_CONDUIT_TOKEN harbormaster.createartifact | ||||
python3 -m pyarcanist send-message work $PHID | python3 -m pyarcanist send-message work $PHID | ||||
fi | fi | ||||
''' | ''' | ||||
}} | }} | ||||
checkout([$class: 'GitSCM', | checkout([$class: 'GitSCM', | ||||
branches: [[name: "${{params.REVISION}}"]], | branches: [[name: "${{params.REVISION}}"]], | ||||
doGenerateSubmoduleConfigurations: false, | doGenerateSubmoduleConfigurations: false, | ||||
extensions: [], | extensions: [], | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | always {{ | ||||
reportDir: 'cypress/coverage/lcov-report', | reportDir: 'cypress/coverage/lcov-report', | ||||
reportFiles: 'index.html', | reportFiles: 'index.html', | ||||
reportName: "Istanbul Code Coverage" | reportName: "Istanbul Code Coverage" | ||||
]) | ]) | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
No newline at end of file | No newline at end of file |