github.com/jaylevin/jenkins-library@v1.230.4/resources/default_pipeline_environment.yml (about) 1 # 2 # ATTENTION: This file is part of the API, breaking changes here directly affect the consumers of the library. 3 # Please avoid breaking changes if possible. 4 # 5 6 #Project Setup 7 general: 8 collectTelemetryData: true 9 logFormat: 'plain' 10 changeManagement: 11 type: 'NONE' # SOLMAN, CTS, NONE 12 transportRequestLabel: 'TransportRequest\s?:' 13 changeDocumentLabel: 'ChangeDocument\s?:' 14 clientOpts: '' 15 credentialsId: 'CM' 16 git: 17 from: 'origin/master' 18 to: 'HEAD' 19 format: '%b' 20 solman: 21 docker: 22 image: 'ppiper/cm-client:2.0.1.0' 23 options: [] 24 envVars: {} 25 pullImage: true 26 cts: 27 osDeployUser: 'node' 28 deployToolDependencies: 29 - '@ui5/cli' 30 - '@sap/ux-ui5-tooling' 31 - '@ui5/logger' 32 - '@ui5/fs' 33 deployConfigFile: 'ui5-deploy.yaml' 34 nodeDocker: 35 image: 'node' 36 options: [] 37 envVars: {} 38 pullImage: true 39 docker: 40 image: 'ppiper/cm-client:2.0.1.0' 41 options: [] 42 envVars: {} 43 pullImage: true 44 rfc: 45 docker: 46 image: 'rfc' 47 options: [] 48 envVars: {} 49 pullImage: true 50 githubApiUrl: 'https://api.github.com' 51 githubServerUrl: 'https://github.com' 52 gitSshKeyCredentialsId: '' #needed to allow sshagent to run with local ssh key 53 globalExtensionsDirectory: '.pipeline/tmp/global_extensions/' 54 jenkinsKubernetes: 55 jnlpAgent: 'ppiper/jenkins-agent-k8s:v8' 56 securityContext: 57 # Setting security context globally is currently not working with jaas 58 # runAsUser: 1000 59 # fsGroup: 1000 60 manualConfirmation: true 61 manualConfirmationMessage: 'Shall we proceed to Promote & Release?' 62 manualConfirmationTimeout: 720 # 1 month 63 productiveBranch: 'master' 64 whitesource: 65 serviceUrl: 'https://saas.whitesourcesoftware.com/api' 66 dockerPullImage: true 67 sidecarPullImage: true 68 69 #Steps Specific Configuration 70 steps: 71 artifactSetVersion: 72 timestampTemplate: '%Y%m%d%H%M%S' 73 tagPrefix: 'build_' 74 commitVersion: true 75 gitPushMode: 'SSH' 76 verbose: false 77 gitHttpsCredentialsId: 'git' 78 gitDisableSslVerification: false 79 dub: 80 filePath: 'dub.json' 81 versioningTemplate: '${version}-${timestamp}${commitId?"+"+commitId:""}' 82 docker: 83 filePath: 'Dockerfile' 84 versioningTemplate: '${version}-${timestamp}${commitId?"_"+commitId:""}' 85 golang: 86 filePath: 'VERSION' 87 versioningTemplate: '${version}-${timestamp}${commitId?"+"+commitId:""}' 88 maven: 89 filePath: 'pom.xml' 90 versioningTemplate: '${version}-${timestamp}${commitId?"_"+commitId:""}' 91 mta: 92 filePath: 'mta.yaml' 93 versioningTemplate: '${version}-${timestamp}${commitId?"+"+commitId:""}' 94 npm: 95 filePath: 'package.json' 96 versioningTemplate: '${version}-${timestamp}${commitId?"+"+commitId:""}' 97 pip: 98 filePath: 'version.txt' 99 versioningTemplate: '${version}.${timestamp}${commitId?"."+commitId:""}' 100 sbt: 101 filePath: 'sbtDescriptor.json' 102 versioningTemplate: '${version}-${timestamp}${commitId?"+"+commitId:""}' 103 batsExecuteTests: 104 dockerImage: 'node:lts-stretch' 105 dockerWorkspace: '/home/node' 106 envVars: {} 107 outputFormat: 'junit' # tap, junit 108 testPath: 'src/test' 109 failOnError: false 110 repository: 'https://github.com/bats-core/bats-core.git' 111 stashContent: 112 - 'tests' 113 testPackage: 'piper-bats' 114 checksPublishResults: 115 failOnError: false 116 tasks: 117 pattern: '**/*.java' 118 low: '' 119 normal: 'TODO,REVISE,XXX' 120 high: 'FIXME' 121 archive: true 122 active: false 123 qualityGates: 124 - threshold: 1 125 type: 'TOTAL_HIGH' 126 unstable: false 127 - threshold: 1 128 type: 'TOTAL_ERROR' 129 unstable: false 130 pmd: 131 pattern: '**/target/pmd.xml' 132 archive: true 133 active: false 134 qualityGates: 135 - threshold: 1 136 type: 'TOTAL_HIGH' 137 unstable: false 138 - threshold: 1 139 type: 'TOTAL_ERROR' 140 unstable: false 141 cpd: 142 pattern: '**/target/cpd.xml' 143 archive: true 144 active: false 145 qualityGates: 146 - threshold: 1 147 type: 'TOTAL_HIGH' 148 unstable: false 149 - threshold: 1 150 type: 'TOTAL_ERROR' 151 unstable: false 152 findbugs: 153 pattern: '**/target/findbugsXml.xml, **/target/findbugs.xml' 154 archive: true 155 active: false 156 qualityGates: 157 - threshold: 1 158 type: 'TOTAL_HIGH' 159 unstable: false 160 - threshold: 1 161 type: 'TOTAL_ERROR' 162 unstable: false 163 checkstyle: 164 pattern: '**/target/checkstyle-result.xml' 165 archive: true 166 active: false 167 qualityGates: 168 - threshold: 1 169 type: 'TOTAL_HIGH' 170 unstable: false 171 - threshold: 1 172 type: 'TOTAL_ERROR' 173 unstable: false 174 eslint: 175 pattern: '**/eslint.xml' 176 archive: true 177 active: false 178 qualityGates: 179 - threshold: 1 180 type: 'TOTAL_HIGH' 181 unstable: false 182 - threshold: 1 183 type: 'TOTAL_ERROR' 184 unstable: false 185 pylint: 186 pattern: '**/pylint.log' 187 archive: true 188 active: false 189 qualityGates: 190 - threshold: 1 191 type: 'TOTAL_HIGH' 192 unstable: false 193 - threshold: 1 194 type: 'TOTAL_ERROR' 195 unstable: false 196 archive: false 197 cloudFoundryDeploy: 198 cloudFoundry: 199 apiEndpoint: 'https://api.cf.eu10.hana.ondemand.com' 200 apiParameters: '' 201 loginParameters: '' 202 deployType: 'standard' 203 keepOldInstance: false 204 cfNativeDeployParameters: '' 205 mtaDeployParameters: '-f' 206 mtaExtensionDescriptor: '' 207 mtaPath: '' 208 smokeTestScript: 'blueGreenCheckScript.sh' 209 smokeTestStatusCode: 200 210 stashContent: 211 - 'deployDescriptor' 212 - 'pipelineConfigAndTests' 213 cf_native: 214 dockerImage: 'ppiper/cf-cli:latest' 215 dockerWorkspace: '/home/piper' 216 mtaDeployPlugin: 217 dockerImage: 'ppiper/cf-cli:latest' 218 dockerWorkspace: '/home/piper' 219 mta: 220 deployTool: 'mtaDeployPlugin' 221 maven: 222 deployTool: 'cf_native' 223 npm: 224 deployTool: 'cf_native' 225 docker: 226 deployTool: 'cf_native' 227 kaniko: 228 deployTool: 'cf_native' 229 debugReportArchive: 230 shareConfidentialInformation: false 231 dockerExecute: 232 stashContent: [] 233 dockerExecuteOnKubernetes: 234 stashContent: [] 235 stashIncludes: 236 workspace: '**/*' 237 stashExcludes: 238 workspace: 'nohup.out' 239 dubExecute: 240 dockerImage: 'dlang2/dmd-ubuntu:latest' 241 githubPublishRelease: 242 addClosedIssues: false 243 addDeltaToLastRelease: false 244 customFilterExtension: '' 245 excludeLabels: 246 - 'duplicate' 247 - 'invalid' 248 - 'question' 249 - 'wontfix' 250 gatlingExecuteTests: 251 stashContent: 252 - 'source' 253 gaugeExecuteTests: 254 buildTool: 'maven' 255 dockerEnvVars: 256 HUB: 'TRUE' 257 HUB_URL: 'http://localhost:4444/wd/hub' 258 failOnError: false 259 installCommand: 'curl -SsL https://downloads.gauge.org/stable | sh -s -- --location=$HOME/bin/gauge' 260 stashContent: 261 - 'buildDescriptor' 262 - 'tests' 263 maven: 264 dockerImage: 'maven:3.5-jdk-8' 265 dockerName: 'maven' 266 dockerWorkspace: '' 267 languageRunner: 'java' 268 runCommand: 'mvn test-compile gauge:execute' 269 testOptions: '-DspecsDir=specs' 270 npm: 271 dockerImage: 'node:lts-stretch' 272 dockerName: 'npm' 273 dockerWorkspace: '/home/node' 274 languageRunner: 'js' 275 runCommand: 'gauge run' 276 testOptions: 'specs' 277 bundler: 278 dockerImage: 'ruby:2.5.3-stretch' 279 dockerName: 'bundler' 280 dockerWorkspace: '' 281 languageRunner: 'ruby' 282 runCommand: 'bundle install && bundle exec gauge run' 283 testOptions: 'specs' 284 hadolintExecute: 285 qualityGates: 286 - threshold: 1 287 type: 'TOTAL_ERROR' 288 unstable: false 289 reportFile: 'hadolint.xml' 290 reportName: 'HaDoLint' 291 stashContent: 292 - 'buildDescriptor' 293 handlePipelineStepErrors: 294 echoDetails: true 295 failOnError: true 296 libraryDocumentationUrl: 'https://sap.github.io/jenkins-library/' 297 libraryRepositoryUrl: 'https://github.com/SAP/jenkins-library/' 298 mandatorySteps: [] 299 stepTimeouts: {} 300 healthExecuteCheck: 301 healthEndpoint: '' 302 influxWriteData: 303 influxServer: '' 304 karmaExecuteTests: 305 containerPortMappings: 306 'node:lts-stretch': 307 - containerPort: 9876 308 hostPort: 9876 309 dockerEnvVars: 310 NO_PROXY: 'localhost,selenium,$NO_PROXY' 311 no_proxy: 'localhost,selenium,$no_proxy' 312 dockerImage: 'node:lts-stretch' 313 dockerName: 'karma' 314 dockerWorkspace: '/home/node' 315 installCommand: 'npm install --quiet' 316 modules: 317 - '.' 318 runCommand: 'npm run karma' 319 sidecarEnvVars: 320 NO_PROXY: 'localhost,karma,$NO_PROXY' 321 no_proxy: 'localhost,karma,$no_proxy' 322 stashContent: 323 - buildDescriptor 324 - tests 325 mailSendNotification: 326 notificationAttachment: true 327 notifyCulprits: true 328 numLogLinesInBody: 100 329 wrapInNode: false 330 mavenExecute: 331 dockerImage: 'maven:3.5-jdk-7' 332 logSuccessfulMavenTransfers: false 333 buildExecute: 334 npmInstall: true 335 npmRunScripts: [] 336 neoDeploy: 337 dockerImage: 'ppiper/neo-cli' 338 deployMode: 'mta' 339 warAction: 'deploy' 340 extensions: [] 341 mavenDeploymentModule: '.' 342 neo: 343 size: 'lite' 344 credentialsId: 'CI_CREDENTIALS_ID' 345 credentialType: 'UsernamePassword' 346 portalLandscape: "cloudnwcportal" 347 multicloudDeploy: 348 cfTargets: [] 349 neoTargets: [] 350 enableZeroDowntimeDeployment: false 351 parallelExecution: false 352 npmExecute: 353 dockerImage: 'node:lts-stretch' 354 npmExecuteScripts: 355 install: true 356 whitesourceExecuteScan: 357 vulnerabilityReportFileName: 'piper_whitesource_vulnerability_report' 358 stashExcludes: 359 stashBack: '.pipeline/** whitesourceExecuteScan_*.* whitesource-reports/**' 360 pipelineExecute: 361 branch: 'master' 362 path: 'Jenkinsfile' 363 credentialsId: '' 364 pipelineRestartSteps: 365 sendMail: true 366 timeoutInSeconds: 900 367 stepMessage: 'Do you want to restart?' 368 pipelineStashFilesAfterBuild: 369 stashIncludes: 370 buildResult: '**/target/*.war, **/target/*.jar, **/*.mtar, **/*.jar.original' 371 checkmarx: '**/*.js, **/*.scala, **/*.py, **/*.go, **/*.d, **/*.di, **/*.xml, **/*.html' 372 classFiles: '**/target/classes/**/*.class, **/target/test-classes/**/*.class' 373 sonar: '**/jacoco*.exec, **/sonar-project.properties' 374 stashExcludes: 375 buildResult: '' 376 checkmarx: '**/*.mockserver.js, node_modules/**/*.js' 377 classFiles: '' 378 sonar: '' 379 noDefaultExludes: [] 380 pipelineStashFilesBeforeBuild: 381 stashIncludes: 382 buildDescriptor: '**/pom.xml, **/.mvn/**, **/assembly.xml, **/.swagger-codegen-ignore, **/package.json, **/requirements.txt, **/setup.py, **/mta*.y*ml, **/.npmrc, **/Dockerfile, .hadolint.yaml, **/VERSION, **/version.txt, **/Gopkg.*, **/dub.json, **/dub.sdl, **/build.sbt, **/sbtDescriptor.json, **/project/*, **/ui5.yaml, **/ui5.yml' 383 deployDescriptor: '**/manifest*.y*ml, **/*.mtaext.y*ml, **/*.mtaext, **/xs-app.json, helm/**, **/*.y*ml, **/*.tpl, **/*.tgz' 384 git: '.git/**' 385 opensourceConfiguration: '**/srcclr.yml, **/vulas-custom.properties, **/.nsprc, **/.retireignore, **/.retireignore.json, **/.snyk, **/wss-unified-agent.config, **/vendor/**/*' 386 pipelineConfigAndTests: '.pipeline/**' 387 securityDescriptor: '**/xs-security.json' 388 tests: '**/pom.xml, **/*.json, **/*.xml, **/src/**, **/node_modules/**, **/specs/**, **/env/**, **/*.js, **/tests/**, **/*.html, **/*.css, **/*.properties' 389 stashExcludes: 390 buildDescriptor: '**/node_modules/**/package.json' 391 deployDescriptor: '' 392 git: '' 393 opensourceConfiguration: '' 394 pipelineConfigAndTests: '' 395 securityDescriptor: '' 396 tests: '' 397 noDefaultExludes: 398 - 'git' 399 piperPublishWarnings: 400 parserId: piper 401 parserName: Piper 402 parserPattern: '\[(INFO|WARNING|ERROR)\] (.*) \(([^) ]*)\/([^) ]*)\)' 403 parserScript: 'return builder.guessSeverity(matcher.group(1)).setMessage(matcher.group(2)).setModuleName(matcher.group(3)).setType(matcher.group(4)).buildOptional()' 404 recordIssuesSettings: 405 blameDisabled: true 406 enabledForFailure: true 407 seleniumExecuteTests: 408 buildTool: 'npm' 409 containerPortMappings: 410 'selenium/standalone-chrome': 411 - containerPort: 4444 412 hostPort: 4444 413 failOnError: true 414 sidecarImage: 'selenium/standalone-chrome' 415 sidecarName: 'selenium' 416 sidecarVolumeBind: 417 '/dev/shm': '/dev/shm' 418 stashContent: 419 - 'tests' 420 maven: 421 dockerImage: 'maven:3.5-jdk-8' 422 dockerName: 'maven' 423 dockerWorkspace: '' 424 npm: 425 dockerImage: 'node:lts-stretch' 426 dockerName: 'npm' 427 dockerWorkspace: '/home/node' 428 bundler: 429 dockerImage: 'ruby:2.5.3-stretch' 430 dockerName: 'bundler' 431 dockerWorkspace: '' 432 slackSendNotification: 433 color: "${['SUCCESS': '#8cc04f', 'FAILURE': '#d54c53', 'ABORTED': '#949393', 'UNSTABLE': '#f6b44b', 'PAUSED': '#24b0d5', 'UNKNOWN': '#d54cc4'].get(buildStatus, '#d54cc4')}" 434 defaultMessage: "${buildStatus}: Job ${env.JOB_NAME} <${env.BUILD_URL}|#${env.BUILD_NUMBER}>" 435 snykExecute: 436 buildDescriptorFile: './package.json' 437 dockerImage: 'node:lts-stretch' 438 exclude: [] 439 monitor: true 440 scanType: 'npm' 441 stashContent: 442 - 'buildDescriptor' 443 - 'opensourceConfiguration' 444 toJson: false 445 toHtml: false 446 spinnakerTriggerPipeline: 447 certFileCredentialsId: 'spinnaker-client-certificate' 448 keyFileCredentialsId: 'spinnaker-client-key' 449 timeout: 60 450 testsPublishResults: 451 failOnError: false 452 junit: 453 pattern: '**/TEST-*.xml' 454 updateResults: false 455 allowEmptyResults: true 456 archive: false 457 active: false 458 jacoco: 459 pattern: '**/target/*.exec' 460 allowEmptyResults: true 461 archive: false 462 active: false 463 cobertura: 464 pattern: '**/target/coverage/**/cobertura-coverage.xml' 465 onlyStableBuilds: true 466 allowEmptyResults: true 467 archive: false 468 active: false 469 jmeter: 470 pattern: '**/*.jtl' 471 errorFailedThreshold: 20 472 errorUnstableThreshold: 10 473 errorUnstableResponseTimeThreshold: '' 474 relativeFailedThresholdPositive: 0 475 relativeFailedThresholdNegative: 0 476 relativeUnstableThresholdPositive: 0 477 relativeUnstableThresholdNegative: 0 478 modeOfThreshold: false 479 modeThroughput: false 480 nthBuildNumber: 0 481 configType: 'PRT' 482 failBuildIfNoResultFile: false 483 compareBuildPrevious: true 484 allowEmptyResults: true 485 archive: false 486 active: false 487 cucumber: 488 pattern: '**/e2e/*.json' 489 allowEmptyResults: true 490 archive: false 491 active: false 492 htmlPublisher: 493 allowMissing: true 494 alwaysLinkToLastBuild: false 495 keepAll: true 496 reportDir: "" 497 pattern: "**/reports/coverage-reports/**/index.html" 498 reportName: "Results" 499 active: false 500 checkChangeInDevelopment: 501 failIfStatusIsNotInDevelopment: true 502 tmsUpload: 503 namedUser: 'Piper-Pipeline' 504 mtaVersion: '*' 505 stashContent: 506 - 'buildResult' 507 transportRequestCreate: 508 developmentSystemId: null 509 verbose: false 510 transportRequestUploadFile: 511 acceptUnixStyleLineEndings: true 512 codePage: 'UTF-8' 513 failOnWarning: true 514 verbose: false 515 transportRequestRelease: 516 verbose: false 517 transportRequestUploadRFC: 518 credentialsId: 'RFC_CREDENTIALS_ID' 519 writeTemporaryCredentials: 520 credentialsDirectories: 521 - './' 522 - 'integration-tests/src/test/resources' 523 524 #defaults for stage wrapper 525 piperStageWrapper: 526 projectExtensionsDirectory: '.pipeline/extensions/' 527 stageLocking: true 528 nodeLabel: '' 529 stashContent: 530 - 'pipelineConfigAndTests' 531 xsDeploy: 532 credentialsId: 'XS' 533 deployIdLogPattern: '^.*"xs bg-deploy -i (.*) -a .*".*$' 534 loginOpts: '' 535 deployOpts: '' 536 dockerPullImage: false 537 docker: 538 dockerImage: '' 539 dockerPullImage: false 540 mode: 'DEPLOY' 541 action: 'NONE' 542 xsSessionFile: '.xsconfig' 543 piperPipelineStageInit: 544 stepMappings: 545 checkmarx: 'checkmarxExecuteScan' 546 fortify: 'fortifyExecuteScan' 547 karma: 'karmaExecuteTests' 548 whitesource: 'whitesourceExecuteScan' 549 labelPrefix: pr_ 550 cnbBuild: 551 stashIncludes: 552 stashBack: '**/target/*.exec, **/*.jtl, **/target/**/*.xml'