CodeScan with Windows Agents
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
node {
stage('Pull from Git') {
git 'https://wherever.com/me/my-repo.git'
}
withCredentials([string(credentialsId: 'credential_name', variable: 'codescan_token')]) {
stage('CodeScan') {
sh '''
echo y|sfdx plugins:install sfdx-codescan-plugin
sfdx codescan:run --token=$codescan_token --projectkey=my_project --organization=my_organization
exit $?
'''
}
}
}