diff --git a/src/com/sap/piper/Utils.groovy b/src/com/sap/piper/Utils.groovy index bd11749ad9..be2040c702 100644 --- a/src/com/sap/piper/Utils.groovy +++ b/src/com/sap/piper/Utils.groovy @@ -135,12 +135,7 @@ def generateSha1(input) { void pushToSWA(Map parameters, Map config) { try { - parameters.actionName = parameters.get('actionName') ?: 'Piper Library OS' - parameters.eventType = parameters.get('eventType') ?: 'library-os' - parameters.jobUrlSha1 = generateSha1(env.JOB_URL ?: '') - parameters.buildUrlSha1 = generateSha1(env.BUILD_URL ?: '') - - Telemetry.notify(this, config, parameters) + echo "SAP web analytics is disabled. Please remove any remaining use of 'pushToSWA' function!" } catch (ignore) { // some error occured in telemetry reporting. This should not break anything though. echo "[${parameters.step}] Telemetry Report failed: ${ignore.getMessage()}" diff --git a/vars/artifactSetVersion.groovy b/vars/artifactSetVersion.groovy index 4c4ab7c6ac..e46ea77845 100644 --- a/vars/artifactSetVersion.groovy +++ b/vars/artifactSetVersion.groovy @@ -153,16 +153,6 @@ void call(Map parameters = [:], Closure body = null) { config = configHelper.addIfEmpty('timestamp', getTimestamp(config.timestampTemplate)) .use() - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'buildTool', - stepParam1: config.buildTool, - stepParamKey2: 'artifactType', - stepParam2: config.artifactType, - stepParamKey3: 'scriptMissing', - stepParam3: parameters?.script == null - ], config) - def artifactVersioning = ArtifactVersioning.getArtifactVersioning(config.buildTool, script, config) def currentVersion = artifactVersioning.getVersion() diff --git a/vars/buildExecute.groovy b/vars/buildExecute.groovy index a9e977f3ee..505727343c 100644 --- a/vars/buildExecute.groovy +++ b/vars/buildExecute.groovy @@ -74,9 +74,6 @@ void call(Map parameters = [:]) { .addIfEmpty('buildTool', script.commonPipelineEnvironment.getBuildTool()) .use() - // telemetry reporting - utils.pushToSWA([stepParam1: config.buildTool, 'buildTool': config.buildTool], config) - switch(config.buildTool){ case 'maven': mavenBuild script: script diff --git a/vars/checkChangeInDevelopment.groovy b/vars/checkChangeInDevelopment.groovy index ea2ef19b2a..fe6d4c42db 100644 --- a/vars/checkChangeInDevelopment.groovy +++ b/vars/checkChangeInDevelopment.groovy @@ -111,12 +111,6 @@ void call(parameters = [:]) { // for the following parameters we expect a value provided from outside .withMandatoryProperty('changeManagement/endpoint') - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - def changeId = getChangeDocumentId(script, configuration) configuration = configHelper.mixin([changeDocumentId: changeId?.trim() ?: null], ['changeDocumentId'] as Set) @@ -186,4 +180,4 @@ static void addPipelineWarning(Script script, String heading, String message) { """ script.createSummary(icon: "warning.gif", text: html) -} \ No newline at end of file +} diff --git a/vars/checksPublishResults.groovy b/vars/checksPublishResults.groovy index 94af046974..c7561b5f39 100644 --- a/vars/checksPublishResults.groovy +++ b/vars/checksPublishResults.groovy @@ -93,12 +93,6 @@ void call(Map parameters = [:]) { error "[ERROR] Configuration of the aggregation view is no longer possible. Migrate any thresholds defined here to tool specific quality gates. (piper-lib/${STEP_NAME})" } - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - // JAVA if(configuration.pmd.active) { report(pmdParser(createToolOptions(configuration.pmd)), configuration.pmd, configuration.archive) diff --git a/vars/containerPushToRegistry.groovy b/vars/containerPushToRegistry.groovy index 19f2c6dff8..ca29e6694e 100644 --- a/vars/containerPushToRegistry.groovy +++ b/vars/containerPushToRegistry.groovy @@ -81,11 +81,6 @@ void call(Map parameters = [:]) { config.sourceRegistry = dockerUtils.getRegistryFromUrl(config.sourceRegistryUrl) } - // telemetry reporting - new Utils().pushToSWA([ - step: STEP_NAME - ], config) - if (!config.dockerImage) config.dockerImage = config.sourceImage diff --git a/vars/debugReportArchive.groovy b/vars/debugReportArchive.groovy index 9a26573ef6..f452a662bb 100644 --- a/vars/debugReportArchive.groovy +++ b/vars/debugReportArchive.groovy @@ -49,12 +49,6 @@ void call(Map parameters = [:]) { .mixin(parameters, PARAMETER_KEYS) .use() - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - boolean shareConfidentialInformation = configuration?.get('shareConfidentialInformation') ?: false Map result = DebugReport.instance.generateReport(script, shareConfidentialInformation) diff --git a/vars/dockerExecute.groovy b/vars/dockerExecute.groovy index 4dc56499a6..cb9034a711 100644 --- a/vars/dockerExecute.groovy +++ b/vars/dockerExecute.groovy @@ -168,14 +168,6 @@ void call(Map parameters = [:], body) { SidecarUtils sidecarUtils = new SidecarUtils(script) - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null, - stepParamKey2: 'kubernetes', - stepParam2: isKubernetes() - ], config) - if (isKubernetes() && config.dockerImage) { List dockerEnvVars = [] config.dockerEnvVars?.each { key, value -> diff --git a/vars/dockerExecuteOnKubernetes.groovy b/vars/dockerExecuteOnKubernetes.groovy index f80eaea3f5..52c3f7abb7 100644 --- a/vars/dockerExecuteOnKubernetes.groovy +++ b/vars/dockerExecuteOnKubernetes.groovy @@ -255,12 +255,6 @@ void call(Map parameters = [:], body) { .addIfEmpty('uniqueId', UUID.randomUUID().toString()) .use() - utils.pushToSWA([ - step : STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1 : parameters?.script == null - ], config) - if (!config.containerMap && config.dockerImage) { config.containerName = 'container-exec' config.containerMap = [(config.get('dockerImage')): config.containerName] diff --git a/vars/dubExecute.groovy b/vars/dubExecute.groovy index 30d1d56645..3f3b838717 100644 --- a/vars/dubExecute.groovy +++ b/vars/dubExecute.groovy @@ -50,12 +50,6 @@ void call(Map parameters = [:], body = null) { .mixin(parameters, PARAMETER_KEYS) .use() - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - if (!fileExists('dub.json') && !fileExists('dub.sdl')) { error "[${STEP_NAME}] Neither dub.json nor dub.sdl was found." } diff --git a/vars/gatlingExecuteTests.groovy b/vars/gatlingExecuteTests.groovy index 8e07bfc082..b77ce2a0a2 100644 --- a/vars/gatlingExecuteTests.groovy +++ b/vars/gatlingExecuteTests.groovy @@ -48,12 +48,6 @@ void call(Map parameters = [:]) { .withMandatoryProperty('pomPath') .use() - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'pomPath', - stepParam1: config.pomPath, - ], config) - def appUrls = parameters.get('appUrls') if (appUrls && !(appUrls instanceof List)) { error "The optional parameter 'appUrls' needs to be a List of Maps, where each Map contains the two entries 'url' and 'credentialsId'." diff --git a/vars/healthExecuteCheck.groovy b/vars/healthExecuteCheck.groovy index 49384dd302..05b2997c0f 100644 --- a/vars/healthExecuteCheck.groovy +++ b/vars/healthExecuteCheck.groovy @@ -51,8 +51,6 @@ void call(Map parameters = [:]) { .withMandatoryProperty('testServerUrl') .use() - new Utils().pushToSWA([step: STEP_NAME], config) - def checkUrl = config.testServerUrl if(config.healthEndpoint){ if(!checkUrl.endsWith('/')) diff --git a/vars/influxWriteData.groovy b/vars/influxWriteData.groovy index e3177209bd..96644184b9 100644 --- a/vars/influxWriteData.groovy +++ b/vars/influxWriteData.groovy @@ -96,12 +96,6 @@ void call(Map parameters = [:]) { .addIfNull('customDataMapTags', InfluxData.getInstance().getTags().findAll({ it.key != 'jenkins_custom_data' })) .use() - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], config) - if (!config.artifactVersion) { //this takes care that terminated builds due to milestone-locking do not cause an error echo "[${STEP_NAME}] no artifact version available -> exiting writeInflux without writing data" diff --git a/vars/mailSendNotification.groovy b/vars/mailSendNotification.groovy index 14612da192..df39091662 100644 --- a/vars/mailSendNotification.groovy +++ b/vars/mailSendNotification.groovy @@ -96,8 +96,6 @@ void call(Map parameters = [:]) { .mixin(parameters, PARAMETER_KEYS) .use() - new Utils().pushToSWA([step: STEP_NAME], config) - //this takes care that terminated builds due to milestone-locking do not cause an error if (script.commonPipelineEnvironment.getBuildResult() == 'ABORTED') return diff --git a/vars/multicloudDeploy.groovy b/vars/multicloudDeploy.groovy index 9dd9640204..52e8b4e312 100644 --- a/vars/multicloudDeploy.groovy +++ b/vars/multicloudDeploy.groovy @@ -68,12 +68,6 @@ void call(parameters = [:]) { Map config = configHelper.use() - utils.pushToSWA([ - step : STEP_NAME, - stepParamKey1: 'enableZeroDowntimeDeployment', - stepParam1 : config.enableZeroDowntimeDeployment - ], config) - def index = 1 def deployments = [:] diff --git a/vars/neoDeploy.groovy b/vars/neoDeploy.groovy index 82867c7f1d..b83b28f8b8 100644 --- a/vars/neoDeploy.groovy +++ b/vars/neoDeploy.groovy @@ -207,16 +207,6 @@ void call(parameters = [:]) { if(deployMode != DeployMode.MTA && ! extensionFileNames.isEmpty()) error "Extensions (${extensionFileNames} found for deploy mode ${deployMode}. Extensions are only supported for deploy mode '${DeployMode.MTA}')" - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'deployMode', - stepParam1: configuration.deployMode == 'mta'?'mta':'war', // ['mta', 'warParams', 'warPropertiesFile'] - stepParamKey2: 'warAction', - stepParam2: configuration.warAction == 'rolling-update'?'blue-green':'standard', // ['deploy', 'deploy-mta', 'rolling-update'] - stepParamKey3: 'scriptMissing', - stepParam3: parameters?.script == null, - ], configuration) - if(configuration.neo.credentialType == 'UsernamePassword'){ withCredentials([usernamePassword( credentialsId: configuration.neo.credentialsId, diff --git a/vars/npmExecute.groovy b/vars/npmExecute.groovy index 623a21d23e..75eab2b6d0 100644 --- a/vars/npmExecute.groovy +++ b/vars/npmExecute.groovy @@ -50,12 +50,6 @@ void call(Map parameters = [:], body = null) { .mixin(parameters, PARAMETER_KEYS) .use() - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - try { if (!fileExists('package.json')) { error "[${STEP_NAME}] package.json is not found." diff --git a/vars/pipelineStashFilesAfterBuild.groovy b/vars/pipelineStashFilesAfterBuild.groovy index 18010501b8..d562ef0ddc 100644 --- a/vars/pipelineStashFilesAfterBuild.groovy +++ b/vars/pipelineStashFilesAfterBuild.groovy @@ -47,12 +47,6 @@ void call(Map parameters = [:]) { .mixin(parameters, PARAMETER_KEYS) .use() - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], config) - config.stashIncludes.each {stashKey, stashIncludes -> def useDefaultExcludes = !config.noDefaultExludes.contains(stashKey) utils.stashWithMessage(stashKey, "[${STEP_NAME}] no files detected for stash '${stashKey}': ", stashIncludes, config.stashExcludes[stashKey]?:'', useDefaultExcludes) diff --git a/vars/pipelineStashFilesBeforeBuild.groovy b/vars/pipelineStashFilesBeforeBuild.groovy index 2cf99da420..8fd13de4e0 100644 --- a/vars/pipelineStashFilesBeforeBuild.groovy +++ b/vars/pipelineStashFilesBeforeBuild.groovy @@ -45,12 +45,6 @@ void call(Map parameters = [:]) { .mixin(parameters, PARAMETER_KEYS) .use() - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], config) - config.stashIncludes.each {stashKey, stashIncludes -> def useDefaultExcludes = !config.noDefaultExludes.contains(stashKey) utils.stashWithMessage(stashKey, "[${STEP_NAME}] no files detected for stash '${stashKey}': ", stashIncludes, config.stashExcludes[stashKey]?:'', useDefaultExcludes) diff --git a/vars/piperPipelineStageAcceptance.groovy b/vars/piperPipelineStageAcceptance.groovy index 87b7308130..0732bc724a 100644 --- a/vars/piperPipelineStageAcceptance.groovy +++ b/vars/piperPipelineStageAcceptance.groovy @@ -70,10 +70,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - // Prefer the newer multicloudDeploy step if it is configured as it is more capable if (config.multicloudDeploy) { durationMeasure(script: script, measurementName: 'deploy_test_multicloud_duration') { diff --git a/vars/piperPipelineStageAdditionalUnitTests.groovy b/vars/piperPipelineStageAdditionalUnitTests.groovy index 8159357517..319f7c9413 100644 --- a/vars/piperPipelineStageAdditionalUnitTests.groovy +++ b/vars/piperPipelineStageAdditionalUnitTests.groovy @@ -45,10 +45,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - if (config.batsExecuteTests) { durationMeasure(script: script, measurementName: 'bats_duration') { batsExecuteTests script: script diff --git a/vars/piperPipelineStageBuild.groovy b/vars/piperPipelineStageBuild.groovy index 25626cedaf..de379b14b6 100644 --- a/vars/piperPipelineStageBuild.groovy +++ b/vars/piperPipelineStageBuild.groovy @@ -57,10 +57,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - durationMeasure(script: script, measurementName: 'build_duration') { buildExecute script: script diff --git a/vars/piperPipelineStageCompliance.groovy b/vars/piperPipelineStageCompliance.groovy index 5334281d83..1b7754ab83 100644 --- a/vars/piperPipelineStageCompliance.groovy +++ b/vars/piperPipelineStageCompliance.groovy @@ -38,10 +38,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - if (config.sonarExecuteScan) { durationMeasure(script: script, measurementName: 'sonar_duration') { sonarExecuteScan script: script diff --git a/vars/piperPipelineStageInit.groovy b/vars/piperPipelineStageInit.groovy index 651268db0a..661f025678 100644 --- a/vars/piperPipelineStageInit.groovy +++ b/vars/piperPipelineStageInit.groovy @@ -203,9 +203,6 @@ void call(Map parameters = [:]) { echo "piper-lib-os configuration: ${script.commonPipelineEnvironment.configuration}" } - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - piperInitRunStageConfiguration script: script, stageConfigResource: config.stageConfigResource // CHANGE_ID is set only for pull requests diff --git a/vars/piperPipelineStageIntegration.groovy b/vars/piperPipelineStageIntegration.groovy index a20d167a79..6201e6e1a5 100644 --- a/vars/piperPipelineStageIntegration.groovy +++ b/vars/piperPipelineStageIntegration.groovy @@ -42,10 +42,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - boolean publishResults = false try { writeTemporaryCredentials(script: script) { diff --git a/vars/piperPipelineStageMavenStaticCodeChecks.groovy b/vars/piperPipelineStageMavenStaticCodeChecks.groovy index 504667286c..9a6b0a67d8 100644 --- a/vars/piperPipelineStageMavenStaticCodeChecks.groovy +++ b/vars/piperPipelineStageMavenStaticCodeChecks.groovy @@ -37,10 +37,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper(stageName: stageName, script: script) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - if (config.mavenExecuteStaticCodeChecks) { mavenExecuteStaticCodeChecks(script: script) } diff --git a/vars/piperPipelineStagePRVoting.groovy b/vars/piperPipelineStagePRVoting.groovy index 96db4d4870..a974eb435d 100644 --- a/vars/piperPipelineStagePRVoting.groovy +++ b/vars/piperPipelineStagePRVoting.groovy @@ -99,10 +99,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - durationMeasure(script: script, measurementName: 'voter_duration') { //prevent push to registry in case of docker/kaniko diff --git a/vars/piperPipelineStagePerformance.groovy b/vars/piperPipelineStagePerformance.groovy index 09fa368516..4e33b994d8 100644 --- a/vars/piperPipelineStagePerformance.groovy +++ b/vars/piperPipelineStagePerformance.groovy @@ -41,10 +41,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - if (config.multicloudDeploy) { durationMeasure(script: script, measurementName: 'deploy_performance_multicloud_duration') { multicloudDeploy(script: script, stage: stageName) diff --git a/vars/piperPipelineStagePost.groovy b/vars/piperPipelineStagePost.groovy index 73a7a80753..075b92709b 100644 --- a/vars/piperPipelineStagePost.groovy +++ b/vars/piperPipelineStagePost.groovy @@ -46,9 +46,6 @@ void call(Map parameters = [:]) { vaultRotateSecretId script: script } - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - influxWriteData script: script if(env.BRANCH_NAME == parameters.script.commonPipelineEnvironment.getStepConfiguration('', '').productiveBranch) { if(parameters.script.commonPipelineEnvironment.configuration.runStep?.get('Post Actions')?.slackSendNotification) { diff --git a/vars/piperPipelineStagePromote.groovy b/vars/piperPipelineStagePromote.groovy index 257e3d4e82..b56816b697 100644 --- a/vars/piperPipelineStagePromote.groovy +++ b/vars/piperPipelineStagePromote.groovy @@ -41,10 +41,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - durationMeasure(script: script, measurementName: 'promote_duration') { if (config.containerPushToRegistry) { containerPushToRegistry script: script diff --git a/vars/piperPipelineStageRelease.groovy b/vars/piperPipelineStageRelease.groovy index 1f64d065db..4bfa23482e 100644 --- a/vars/piperPipelineStageRelease.groovy +++ b/vars/piperPipelineStageRelease.groovy @@ -62,10 +62,6 @@ void call(Map parameters = [:]) { .use() piperStageWrapper (script: script, stageName: stageName) { - - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - // Prefer the newer multicloudDeploy step if it is configured as it is more capable if (config.multicloudDeploy) { durationMeasure(script: script, measurementName: 'deploy_release_multicloud_duration') { diff --git a/vars/piperPipelineStageSecurity.groovy b/vars/piperPipelineStageSecurity.groovy index 68816af0f0..09b3c91d55 100644 --- a/vars/piperPipelineStageSecurity.groovy +++ b/vars/piperPipelineStageSecurity.groovy @@ -104,9 +104,6 @@ void call(Map parameters = [:]) { } if (securityScanMap.size() > 0) { - // telemetry reporting - utils.pushToSWA([step: STEP_NAME], config) - parallel securityScanMap.plus([failFast: false]) } } diff --git a/vars/piperPublishWarnings.groovy b/vars/piperPublishWarnings.groovy index 5de9513fad..900e5d3eb1 100644 --- a/vars/piperPublishWarnings.groovy +++ b/vars/piperPublishWarnings.groovy @@ -66,12 +66,6 @@ void call(Map parameters = [:]) { .mixinStageConfig(script.commonPipelineEnvironment, stageName, STEP_CONFIG_KEYS) .mixin(parameters, PARAMETER_KEYS) .use() - // report to SWA - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) // add Piper Notifications parser to config if missing if(new JenkinsUtils().addWarningsNGParser( diff --git a/vars/piperStageWrapper.groovy b/vars/piperStageWrapper.groovy index 548ff459fc..1d6f1a3195 100644 --- a/vars/piperStageWrapper.groovy +++ b/vars/piperStageWrapper.groovy @@ -152,30 +152,6 @@ private void executeStage(script, originalStage, stageName, config, utils, telem } finally { //Perform stashing of selected files in workspace utils.stashStageFiles(script, stageName) - - // In general telemetry reporting is disabled by the config settings. This flag is used to disable the reporting when the config is not yet read (e.g. init stage). - if (!telemetryDisabled) { - def duration = System.currentTimeMillis() - startTime - utils.pushToSWA([ - eventType : 'library-os-stage', - stageName : stageName, - stepParamKey1 : 'buildResult', - stepParam1 : "${script.currentBuild.currentResult}", - buildResult : "${script.currentBuild.currentResult}", - stepParamKey2 : 'stageStartTime', - stepParam2 : "${startTime}", - stageStartTime : "${startTime}", - stepParamKey3 : 'stageDuration', - stepParam3 : "${duration}", - stageDuration : "${duration}", - stepParamKey4 : 'projectExtension', - stepParam4 : "${projectExtensions}", - projectExtension: "${projectExtensions}", - stepParamKey5 : 'globalExtension', - stepParam5 : "${globalExtensions}", - globalExtension : "${globalExtensions}" - ], config) - } } } diff --git a/vars/seleniumExecuteTests.groovy b/vars/seleniumExecuteTests.groovy index 462b1c218c..902a813eb3 100644 --- a/vars/seleniumExecuteTests.groovy +++ b/vars/seleniumExecuteTests.groovy @@ -100,12 +100,6 @@ void call(Map parameters = [:], Closure body) { .dependingOn('buildTool').mixin('dockerWorkspace') .use() - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], config) - // Inject config via env vars so that scripts running inside selenium can respond to that config.dockerEnvVars = config.dockerEnvVars ?: [:] config.dockerEnvVars.PIPER_SELENIUM_HOSTNAME = config.dockerName diff --git a/vars/setupCommonPipelineEnvironment.groovy b/vars/setupCommonPipelineEnvironment.groovy index aa235c4415..d7a3676d3f 100644 --- a/vars/setupCommonPipelineEnvironment.groovy +++ b/vars/setupCommonPipelineEnvironment.groovy @@ -107,12 +107,6 @@ void call(Map parameters = [:]) { inferBuildTool(script, config) - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey4: 'customDefaults', - stepParam4: parameters.customDefaults?'true':'false' - ], config) - InfluxData.addField('step_data', 'build_url', env.BUILD_URL) InfluxData.addField('pipeline_data', 'build_url', env.BUILD_URL) diff --git a/vars/snykExecute.groovy b/vars/snykExecute.groovy index 5423c8ced9..57c563c498 100644 --- a/vars/snykExecute.groovy +++ b/vars/snykExecute.groovy @@ -81,12 +81,6 @@ void call(Map parameters = [:]) { .withMandatoryProperty('snykCredentialsId') .use() - utils.pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], config) - utils.unstashAll(config.stashContent) switch(config.scanType) { diff --git a/vars/spinnakerTriggerPipeline.groovy b/vars/spinnakerTriggerPipeline.groovy index 837157bafe..2709f432ee 100644 --- a/vars/spinnakerTriggerPipeline.groovy +++ b/vars/spinnakerTriggerPipeline.groovy @@ -98,11 +98,6 @@ void call(Map parameters = [:]) { .withMandatoryProperty('spinnaker/pipelineNameOrId') .use() - // telemetry reporting - new Utils().pushToSWA([ - step: STEP_NAME - ], config) - String paramsString = "" if (config.spinnaker.pipelineParameters) { def pipelineParameters = [parameters: config.spinnaker.pipelineParameters] diff --git a/vars/testsPublishResults.groovy b/vars/testsPublishResults.groovy index 025c7a0ead..00a0685e55 100644 --- a/vars/testsPublishResults.groovy +++ b/vars/testsPublishResults.groovy @@ -74,12 +74,6 @@ void call(Map parameters = [:]) { .mixin(parameters, PARAMETER_KEYS) .use() - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - publishJUnitReport(configuration.get('junit')) publishJacocoReport(configuration.get('jacoco')) publishCoberturaReport(configuration.get('cobertura')) diff --git a/vars/tmsUpload.groovy b/vars/tmsUpload.groovy index 4c586d40af..e8156d6b97 100644 --- a/vars/tmsUpload.groovy +++ b/vars/tmsUpload.groovy @@ -111,13 +111,6 @@ void call(Map parameters = [:]) { echo "[TransportManagementService] Using deprecated Groovy implementation of '${STEP_NAME}' step instead of the default Golang one, since 'useGoStep' toggle parameter is explicitly set to 'false'." echo "[TransportManagementService] WARNING: Note that the deprecated Groovy implementation will be completely removed after February 29th, 2024. Consider using the Golang implementation by not setting the 'useGoStep' toggle parameter to 'false'." - // telemetry reporting - new Utils().pushToSWA([ - step : STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1 : parameters?.script == null - ], config) - def jsonUtilsObject = new JsonUtils() // make sure that all relevant descriptors, are available in workspace diff --git a/vars/transportRequestCreate.groovy b/vars/transportRequestCreate.groovy index 6bab6ed772..cf38c758e9 100644 --- a/vars/transportRequestCreate.groovy +++ b/vars/transportRequestCreate.groovy @@ -158,12 +158,6 @@ void call(Map parameters = [:]) { def changeDocumentId = null - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - if(backendType == BackendType.SOLMAN) { changeDocumentId = getChangeDocumentId(cm, script, configuration) diff --git a/vars/transportRequestRelease.groovy b/vars/transportRequestRelease.groovy index 91a35fd5d9..47ca9d6540 100644 --- a/vars/transportRequestRelease.groovy +++ b/vars/transportRequestRelease.groovy @@ -111,12 +111,6 @@ void call(Map parameters = [:]) { configuration = configHelper.use() - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], configuration) - def changeDocumentId = null def transportRequestId = getTransportRequestId(cm, script, configuration) diff --git a/vars/transportRequestUploadFile.groovy b/vars/transportRequestUploadFile.groovy index f2aeea94dc..800b9e2fdf 100644 --- a/vars/transportRequestUploadFile.groovy +++ b/vars/transportRequestUploadFile.groovy @@ -201,14 +201,6 @@ void call(Map parameters = [:]) { .withMandatoryProperty('failOnWarning', null, {backendType == BackendType.RFC}) .withMandatoryProperty('verbose', null, {backendType == BackendType.RFC}) - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'changeManagementType', - stepParam1: configuration.changeManagement.type, - stepParamKey2: 'scriptMissing', - stepParam2: parameters?.script == null - ], configuration) - def changeDocumentId = null if(backendType == BackendType.SOLMAN) { diff --git a/vars/writeTemporaryCredentials.groovy b/vars/writeTemporaryCredentials.groovy index feb341ec0a..22c4aac21c 100644 --- a/vars/writeTemporaryCredentials.groovy +++ b/vars/writeTemporaryCredentials.groovy @@ -44,13 +44,6 @@ void call(Map parameters = [:], Closure body) { .mixin(parameters, PARAMETER_KEYS) .use() - // telemetry reporting - new Utils().pushToSWA([ - step: STEP_NAME, - stepParamKey1: 'scriptMissing', - stepParam1: parameters?.script == null - ], config) - if (config.credentials && !(config.credentials instanceof List)) { error "[${STEP_NAME}] The execution failed, since credentials is not a list. Please provide credentials as a list of maps. For example:\n" + "credentials: \n" + " - alias: 'ERP'\n" + " credentialId: 'erp-credentials'" diff --git a/vars/xsDeploy.groovy b/vars/xsDeploy.groovy index f604128eab..1d98a824fb 100644 --- a/vars/xsDeploy.groovy +++ b/vars/xsDeploy.groovy @@ -72,12 +72,6 @@ void call(Map parameters = [:]) { def piperGoVersion = sh(returnStdout: true, script: "./piper version") echo "PiperGoVersion: ${piperGoVersion}" - // - // since there is no valid config provided (... null) telemetry is disabled (same for other go releated steps at the moment). - utils.pushToSWA([ - step: STEP_NAME, - ], null) - String configFiles = prepareConfigurations([PIPER_DEFAULTS].plus(script.commonPipelineEnvironment.getCustomDefaults()), ADDITIONAL_CONFIGS_FOLDER) writeFile(file: "${METADATA_FOLDER}/${METADATA_FILE}", text: libraryResource(METADATA_FILE))