| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --> |
| <project> |
| <actions/> |
| <description>Reconfigures Spark on DataEngine.</description> |
| <keepDependencies>false</keepDependencies> |
| <properties> |
| <hudson.model.ParametersDefinitionProperty> |
| <parameterDefinitions> |
| <hudson.model.StringParameterDefinition> |
| <name>Cluster_name</name> |
| <description>Name of dataengine cluster</description> |
| <defaultValue>CNAM</defaultValue> |
| </hudson.model.StringParameterDefinition> |
| <hudson.model.StringParameterDefinition> |
| <name>Notebook_name</name> |
| <description>Name of the Notebook server</description> |
| <defaultValue></defaultValue> |
| </hudson.model.StringParameterDefinition> |
| <hudson.model.StringParameterDefinition> |
| <name>User_name</name> |
| <description>name of the data scientist user</description> |
| <defaultValue></defaultValue> |
| </hudson.model.StringParameterDefinition> |
| <hudson.model.ChoiceParameterDefinition> |
| <name>application</name> |
| <description>application to be deployed</description> |
| <choices class="java.util.Arrays$ArrayList"> |
| <a class="string-array"> |
| <string>dataengine</string> |
| </a> |
| </choices> |
| </hudson.model.ChoiceParameterDefinition> |
| <hudson.model.StringParameterDefinition> |
| <name>Spark_configurations</name> |
| <description></description> |
| <defaultValue>[]</defaultValue> |
| </hudson.model.StringParameterDefinition> |
| <hudson.model.ChoiceParameterDefinition> |
| <name>Action</name> |
| <description></description> |
| <choices class="java.util.Arrays$ArrayList"> |
| <a class="string-array"> |
| <string>reconfigure_spark</string> |
| </a> |
| </choices> |
| </hudson.model.ChoiceParameterDefinition> |
| </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>rand=`openssl rand -hex 10`; |
| sed 's/RID/'${rand}'/g' /var/lib/jenkins/jobs/dataengine_install_additional_libs/template.json | sed 's/APP/'${application}'/g' | sed 's/CNAM/'${Cluster_name}'/g' | sed 's/NNM/'${Notebook_name}'/g' | sed "s|SPC|${Spark_configurations}|g" | sed 's/EUN/'${User_name}'/g' | sudo docker run -i -e "conf_tag_resource_id=CTUN" -v /home/dlab-user/keys:/root/keys -v /opt/dlab/tmp/result:/response -v /var/opt/dlab/log/dataengine:/logs/dataengine docker.dlab-dataengine --action $Action; |
| </command> |
| </hudson.tasks.Shell> |
| </builders> |
| <publishers/> |
| <buildWrappers/> |
| </project> |