From 9939b5835fe42716ddb5da39ca58176a76a5bd85 Mon Sep 17 00:00:00 2001 From: msknext <msknext@gmail.com> Date: Tue, 27 Aug 2019 18:14:08 +0530 Subject: [PATCH] Monitoring changes --- .../dev/jobs/Core/jobs/Monitoring/config.xml | 256 +++++++++--------- 1 file changed, 131 insertions(+), 125 deletions(-) diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml index 23d2db112..4c6cdc1e8 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml @@ -1,127 +1,133 @@ +<?xml version='1.1' encoding='UTF-8'?> <flow-definition plugin="workflow-job@2.33"> -<actions/> -<description/> -<keepDependencies>false</keepDependencies> -<properties> -<jenkins.model.BuildDiscarderProperty> -<strategy class="hudson.tasks.LogRotator"> -<daysToKeep>-1</daysToKeep> -<numToKeep>-1</numToKeep> -<artifactDaysToKeep>-1</artifactDaysToKeep> -<artifactNumToKeep>5</artifactNumToKeep> -</strategy> -</jenkins.model.BuildDiscarderProperty> -<org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> -<com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> -<autoRebuild>false</autoRebuild> -<rebuildDisabled>false</rebuildDisabled> -</com.sonyericsson.rebuild.RebuildSettings> -<hudson.model.ParametersDefinitionProperty> -<parameterDefinitions> -<org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> -<name>private_branch</name> -<description/> -<randomName>choice-parameter-186775018293883</randomName> -<visibleItemCount>1</visibleItemCount> -<script class="org.biouno.unochoice.model.GroovyScript"> -<secureScript plugin="script-security@1.62"> -<script> -if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else return """<b>This parameter is not used</b>""" -</script> -<sandbox>false</sandbox> -</secureScript> -<secureFallbackScript plugin="script-security@1.62"> -<script>return """<b>This parameter is not used</b>"""</script> -<sandbox>false</sandbox> -</secureFallbackScript> -</script> -<projectName>Monitoring</projectName> -<parameters class="linked-hash-map"/> -<referencedParameters/> -<choiceType>ET_FORMATTED_HTML</choiceType> -<omitValueField>true</omitValueField> -</org.biouno.unochoice.DynamicReferenceParameter> -<org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> -<name>branch_or_tag</name> -<description/> -<randomName>choice-parameter-186775024902722</randomName> -<visibleItemCount>1</visibleItemCount> -<script class="org.biouno.unochoice.model.GroovyScript"> -<secureScript plugin="script-security@1.62"> -<script> -if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else return """<b>This parameter is not used</b>""" -</script> -<sandbox>false</sandbox> -</secureScript> -<secureFallbackScript plugin="script-security@1.62"> -<script>return """<b>This parameter is not used</b>"""</script> -<sandbox>false</sandbox> -</secureFallbackScript> -</script> -<projectName>Monitoring</projectName> -<parameters class="linked-hash-map"/> -<referencedParameters/> -<choiceType>ET_FORMATTED_HTML</choiceType> -<omitValueField>true</omitValueField> -</org.biouno.unochoice.DynamicReferenceParameter> -<hudson.model.ChoiceParameterDefinition> -<name>tag</name> -<description> -<font color=dimgray size=2><b>select specific tag to deploy single service<br> or <br> select all to deploy full monitoring stack </b></font> -</description> -<choices class="java.util.Arrays$ArrayList"> -<a class="string-array"> -<string>all</string> -<string>swarm-prometheus</string> -<string>prometheus-stateful</string> -<string>grafana</string> -<string>node-exporter</string> -<string>process-exporter</string> -<string>alertmanager</string> -<string>alertmanager-stateful</string> -</a> -</choices> -</hudson.model.ChoiceParameterDefinition> -</parameterDefinitions> -</hudson.model.ParametersDefinitionProperty> -<hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> -<maxConcurrentPerNode>0</maxConcurrentPerNode> -<maxConcurrentTotal>0</maxConcurrentTotal> -<categories class="java.util.concurrent.CopyOnWriteArrayList"/> -<throttleEnabled>false</throttleEnabled> -<throttleOption>project</throttleOption> -<limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> -<paramsToUseForLimit/> -</hudson.plugins.throttleconcurrents.ThrottleJobProperty> -</properties> -<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> -<scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> -<configVersion>2</configVersion> -<userRemoteConfigs> -<hudson.plugins.git.UserRemoteConfig> -<url>https://github.com/project-sunbird/sunbird-devops.git</url> -</hudson.plugins.git.UserRemoteConfig> -</userRemoteConfigs> -<branches> -<hudson.plugins.git.BranchSpec> -<name>${branch_or_tag}</name> -</hudson.plugins.git.BranchSpec> -</branches> -<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> -<submoduleCfg class="list"/> -<extensions> -<hudson.plugins.git.extensions.impl.CloneOption> -<shallow>true</shallow> -<noTags>false</noTags> -<reference/> -<depth>1</depth> -<honorRefspec>false</honorRefspec> -</hudson.plugins.git.extensions.impl.CloneOption> -</extensions> -</scm> -<scriptPath>pipelines/deploy/monitor/Core/Jenkinsfile</scriptPath> -<lightweight>false</lightweight> -</definition> -<triggers/> -<disabled>false</disabled> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>-1</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>5</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-186775018293883</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Monitoring</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-186775024902722</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Monitoring</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>tag</name> + <description><font color=dimgray size=2><b>select specific tag to deploy single service<br> + or <br> + select all to deploy full monitoring stack </b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>all</string> + <string>swarm-prometheus</string> + <string>prometheus-stateful</string> + <string>grafana</string> + <string>node-exporter</string> + <string>process-exporter</string> + <string>alertmanager</string> + <string>alertmanager-stateful</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>sunbird-monitoring-release-2.2.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/monitor/Core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> </flow-definition> -- GitLab