diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e9b5e331436afe3601808fc9ab569069101463ed --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/config.xml @@ -0,0 +1,29 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.15"> + <actions/> + <description></description> + <properties> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.26"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.17"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/CertificateApi/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/CertificateApi/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9875634b70596408b73cb10ed3881441ce4c7090 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/CertificateApi/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Sunbird-RC/CertificateApi</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Build/Sunbird-RC/CertificateApi</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/CertificateSign/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/CertificateSign/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..b72965fa7df1bbe83a76aa1628fade89ac285d95 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/CertificateSign/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Sunbird-RC/CertificateSign</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Build/Sunbird-RC/CertificateSign</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/Registry/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/Registry/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..3d80fa21f0ad5403fd6d7789909d0d519f341453 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Sunbird-RC/jobs/Registry/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Sunbird-RC/Registry</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Build/Sunbird-RC/Registry</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/config.xml b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e9b5e331436afe3601808fc9ab569069101463ed --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/config.xml @@ -0,0 +1,29 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.15"> + <actions/> + <description></description> + <properties> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.26"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.17"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> diff --git a/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/CertificateApi/config.xml b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/CertificateApi/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..b737921d941eadd6f4832b9bdac8237751a8e23c --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/CertificateApi/config.xml @@ -0,0 +1,93 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font style="color:dimgray;font-size:14px;"><b> +<li>To build from a tag, use refs/tags/github_tag</li> +<li>To build from a branch, use refs/heads/github_branch</li> +<li>The default value of ${public_repo_branch} will be the release / tag version set in global configuration</li> +<li>To build from a differnt branch, replace the ${public_repo_branch} with your branch</li> +</b></font></description> + <defaultValue>refs/heads/${public_repo_branch}</defaultValue> + <trim>true</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>dockerhub_image_source</name> + <description>public sunbird-rc-core dockerhub url <br> +ex: dockerhub/sunbird-rc-certificate-api:v0.0.5 + + +</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>repository_name</name> + <description/> + <defaultValue>sunbird-rc-certificate-api</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="empty-list"/> + <extensions/> + </scm> + <scriptPath>pipelines/build/sunbird-rc-core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/CertificateSign/config.xml b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/CertificateSign/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f257f0e9f583b259e8f49e022a0d89f4692e85d2 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/CertificateSign/config.xml @@ -0,0 +1,93 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font style="color:dimgray;font-size:14px;"><b> +<li>To build from a tag, use refs/tags/github_tag</li> +<li>To build from a branch, use refs/heads/github_branch</li> +<li>The default value of ${public_repo_branch} will be the release / tag version set in global configuration</li> +<li>To build from a differnt branch, replace the ${public_repo_branch} with your branch</li> +</b></font></description> + <defaultValue>refs/heads/${public_repo_branch}</defaultValue> + <trim>true</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>dockerhub_image_source</name> + <description>public sunbird-rc-core dockerhub url <br> +ex: dockerhub/sunbird-rc-certificate-signer:v0.0.5 + + +</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>repository_name</name> + <description/> + <defaultValue>sunbird-rc-certificate-signer</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="empty-list"/> + <extensions/> + </scm> + <scriptPath>pipelines/build/sunbird-rc-core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/Registry/config.xml b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/Registry/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9d3ea95237becba636121172dec81131ea55c193 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Sunbird-RC/jobs/Registry/config.xml @@ -0,0 +1,93 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font style="color:dimgray;font-size:14px;"><b> +<li>To build from a tag, use refs/tags/github_tag</li> +<li>To build from a branch, use refs/heads/github_branch</li> +<li>The default value of ${public_repo_branch} will be the release / tag version set in global configuration</li> +<li>To build from a differnt branch, replace the ${public_repo_branch} with your branch</li> +</b></font></description> + <defaultValue>refs/heads/${public_repo_branch}</defaultValue> + <trim>true</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>dockerhub_image_source</name> + <description>public sunbird-rc-core dockerhub url <br> +ex: dockerhub/sunbird-rc-core:v0.0.5 + + +</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>repository_name</name> + <description/> + <defaultValue>sunbird-rc-core</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="empty-list"/> + <extensions/> + </scm> + <scriptPath>pipelines/build/sunbird-rc-core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..b9f19a552c1438bbd2d31c32550f622f8b6191a6 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/config.xml @@ -0,0 +1,28 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.15"> + <description></description> + <properties> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.26"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.17"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/CertificateApi/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/CertificateApi/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..cfcf5ae5bef3dd2b20460f547f69f9d80ea7dfc0 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/CertificateApi/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Sunbird-RC/CertificateApi</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.6"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>CertificateApi</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/CertificateApi</projectFullName> + <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.5.6"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>CertificateApi</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/CertificateApi</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Sunbird-RC/CertificateApi</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/sunbird-RC/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/CertificateSign/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/CertificateSign/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..c4660c710e1f04d7d6ae9b8edae8e5025866fce1 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/CertificateSign/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Sunbird-RC/CertificateSign</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.6"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>CertificateSign</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/CertificateSign</projectFullName> + <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.5.6"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>CertificateSign</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/CertificateSign</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Sunbird-RC/CertificateSign</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/sunbird-RC/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/Registry/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/Registry/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..c51e35d80527ce9a8482b11b40a37f64a392695e --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/Registry/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.23"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Sunbird-RC/Registry</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.6"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>Registry</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/Registry</projectFullName> + <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.5.6"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>Registry</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/Registry</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Sunbird-RC/Registry</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <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="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/sunbird-RC/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/Upload_RC_Schema/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/Upload_RC_Schema/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..997794c6dc881e286a1cd921202057eeb8812fdb --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Sunbird-RC/jobs/Upload_RC_Schema/config.xml @@ -0,0 +1,144 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <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.32"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.6"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>Upload_RC_Schema</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/Upload_RC_Schema</projectFullName> + <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.5.6"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.76"> + <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>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.76"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>Upload_RC_Schema</projectName> + <projectFullName>Deploy/dev/Sunbird-RC/Upload_RC_Schema</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>blob_container</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-content-dev</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>tag</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>upload-RC-schema</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>source_folder</name> + <description/> + <defaultValue>sunbird-RC</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.2"> + <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> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.90"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.1"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops</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="empty-list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/faqs/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition>