Skip to content

Commit

Permalink
[ALS-4771] - Jenkins jobs for rebuilding resources (#70)
Browse files Browse the repository at this point in the history
* [ALS-4771] - Jenkins jobs for rebuilding resources

- Jenkins jobs for rebuilding Aggregate Resource and Passthrough
resource
- Both of these jobs have initial build jobs that include a
run-once SQL script
  - These scripts just duplicate those jobs, sans SQL

---------

Co-authored-by: Luke Sikina <[email protected]>
  • Loading branch information
Luke-Sikina and Luke Sikina authored Aug 14, 2023
1 parent 40555b1 commit eab6440
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>RESOURCE_PATH</name>
<description>Path</description>
<defaultValue>pic-sure-aggregate-resource</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>git_hash</name>
<defaultValue>*/master</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://github.com/hms-dbmi/pic-sure.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>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Maven>
<targets>clean package -DskipTests -Dwildfly.skip=true</targets>
<mavenName>Maven Home</mavenName>
<usePrivateRepository>false</usePrivateRepository>
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
<injectBuildVariables>false</injectBuildVariables>
</hudson.tasks.Maven>
<hudson.tasks.Shell>
<command>cd pic-sure-resources/pic-sure-aggregate-data-sharing-resource
mkdir -p /usr/local/docker-config/wildfly/deployments
cp target/pic-sure-aggregate-data-sharing-resource.war /usr/local/docker-config/wildfly/deployments/$RESOURCE_PATH.war</command>
<configuredLocalRules/>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>RESOURCE_PATH</name>
<description>Resource Path (Ex: /foo-bar). Do not include leading/trailing slash</description>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>git_hash</name>
<defaultValue>*/master</defaultValue>
<trim>false</trim>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://github.com/hms-dbmi/pic-sure.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>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Maven>
<targets>clean package -DskipTests -Dwildfly.skip=true</targets>
<mavenName>Maven 3.6.3</mavenName>
<usePrivateRepository>false</usePrivateRepository>
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
<injectBuildVariables>false</injectBuildVariables>
</hudson.tasks.Maven>
<hudson.tasks.Shell>
<command>

cd pic-sure-resources/pic-sure-passthrough-resource
mkdir -p /usr/local/docker-config/wildfly/deployments
cp target/pic-sure-passthrough-resource.war /usr/local/docker-config/wildfly/deployments/$RESOURCE_PATH.war</command>
<configuredLocalRules/>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>
</project>

0 comments on commit eab6440

Please sign in to comment.