在创建管道的第一阶段的过程中,我已经获得了第一阶段的脚本
我已经创建了一个管道,并且我已经安装了管道插件,并且删除了16行和15行,但是我仍然遇到错误
节点{
stage('Checkout') {
echo('Checkout code from Github')
checkout([$class: 'GitSCM', branches: [[name: '*/developer']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.dxc.com/DXCLabsIndia/Store-Assist']]])
}
try {
stage('Quality Scan') {
echo('Running SonarJS')
dir(''){
bat "npm install sonarjs"
bat "sonarjs"
}
}
} catch (e) {
echo(Quality scan had voilations,Fix all major ones)
result = "Quality scan had voilations" // make sure other exceptions are recorded as failure too
}
我想要的结果应该可以编译