-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Jenkins jobs for PIC-SURE Auth Micro-App (#130)
This commit introduces three Jenkins jobs related to the PIC-SURE Auth Micro-App; one for building and deploying the application, one for uploading updated configurations, and one for downloading the current configuration file.
- Loading branch information
Showing
3 changed files
with
155 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
initial-configuration/jenkins/jenkins-docker/jobs/Download PSAMA Configuration/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version='1.1' encoding='UTF-8'?> | ||
<project> | ||
<actions/> | ||
<description></description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@332.va_1ee476d8f6d"> | ||
<autoRebuild>false</autoRebuild> | ||
<rebuildDisabled>false</rebuildDisabled> | ||
</com.sonyericsson.rebuild.RebuildSettings> | ||
</properties> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<canRoam>true</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command># Just get the file so a user can download it. | ||
cp /usr/local/docker-config/psama/.env psama.env</command> | ||
<configuredLocalRules/> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.tasks.ArtifactArchiver> | ||
<artifacts>psama.env</artifacts> | ||
<allowEmptyArchive>false</allowEmptyArchive> | ||
<onlyIfSuccessful>false</onlyIfSuccessful> | ||
<fingerprint>false</fingerprint> | ||
<defaultExcludes>true</defaultExcludes> | ||
<caseSensitive>true</caseSensitive> | ||
<followSymlinks>false</followSymlinks> | ||
</hudson.tasks.ArtifactArchiver> | ||
</publishers> | ||
<buildWrappers/> | ||
</project> |
71 changes: 71 additions & 0 deletions
71
...ration/jenkins/jenkins-docker/jobs/PIC-SURE Auth Micro-App Build - Jenkinsfile/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version='1.1' encoding='UTF-8'?> | ||
<flow-definition plugin="workflow-job@1400.v7fd111b_ec82f"> | ||
<actions> | ||
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-model-definition@2.2198.v41dd8ef6dd56"/> | ||
<org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-model-definition@2.2198.v41dd8ef6dd56"> | ||
<jobProperties/> | ||
<triggers/> | ||
<parameters> | ||
<string>REPOSITORY_NAME</string> | ||
<string>DOCKER_REGISTRY</string> | ||
</parameters> | ||
<options/> | ||
</org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction> | ||
</actions> | ||
<description>This Jenkins job will build and deploy the pic-sure-auth-micro-app.</description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@332.va_1ee476d8f6d"> | ||
<autoRebuild>false</autoRebuild> | ||
<rebuildDisabled>false</rebuildDisabled> | ||
</com.sonyericsson.rebuild.RebuildSettings> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>DOCKER_REGISTRY</name> | ||
<description>Docker registry URL (e.g., ECR URL)</description> | ||
<defaultValue>hms-dbmi</defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>REPOSITORY_NAME</name> | ||
<description>Docker repository name</description> | ||
<defaultValue>psama</defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>pipeline_build_id</name> | ||
<defaultValue>MANUAL_RUN</defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>git_hash</name> | ||
<defaultValue>*/ALS-6103-Architectural-Changes-To-Support-Multiple-Auth-providers</defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@3894.vd0f0248b_a_fc4"> | ||
<scm class="hudson.plugins.git.GitSCM" plugin="git@5.2.1"> | ||
<configVersion>2</configVersion> | ||
<userRemoteConfigs> | ||
<hudson.plugins.git.UserRemoteConfig> | ||
<url>https://github.com/hms-dbmi/pic-sure-auth-microapp.git</url> | ||
</hudson.plugins.git.UserRemoteConfig> | ||
</userRemoteConfigs> | ||
<branches> | ||
<hudson.plugins.git.BranchSpec> | ||
<name>${git_hash}</name> | ||
</hudson.plugins.git.BranchSpec> | ||
</branches> | ||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | ||
<submoduleCfg class="empty-list"/> | ||
<extensions/> | ||
</scm> | ||
<scriptPath>jenkinsfile</scriptPath> | ||
<lightweight>false</lightweight> | ||
</definition> | ||
<triggers/> | ||
<disabled>false</disabled> | ||
</flow-definition> |
46 changes: 46 additions & 0 deletions
46
initial-configuration/jenkins/jenkins-docker/jobs/Upload PSAMA Configuration/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version='1.1' encoding='UTF-8'?> | ||
<project> | ||
<actions/> | ||
<description>This job is used to upload an updated pic-sure-auth-micro-app (psama) configuration file. If you would like to download the current configuration file you can use the "Download PSAMA Configuration" Jenkins Job.</description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@332.va_1ee476d8f6d"> | ||
<autoRebuild>false</autoRebuild> | ||
<rebuildDisabled>false</rebuildDisabled> | ||
</com.sonyericsson.rebuild.RebuildSettings> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.FileParameterDefinition> | ||
<name>psama.env</name> | ||
<description>The updated pic-sure-auth-micro-app configuration file. You can download the current configuration file using the "Download PSAMA Configuration".</description> | ||
</hudson.model.FileParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<canRoam>true</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command># Replace psama's configuration file with the provided one. | ||
cp psama.env /usr/local/docker-config/psama/.env</command> | ||
<configuredLocalRules/> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.tasks.ArtifactArchiver> | ||
<artifacts>psama.env</artifacts> | ||
<allowEmptyArchive>false</allowEmptyArchive> | ||
<onlyIfSuccessful>false</onlyIfSuccessful> | ||
<fingerprint>false</fingerprint> | ||
<defaultExcludes>true</defaultExcludes> | ||
<caseSensitive>true</caseSensitive> | ||
<followSymlinks>false</followSymlinks> | ||
</hudson.tasks.ArtifactArchiver> | ||
</publishers> | ||
<buildWrappers/> | ||
</project> |