| <?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>Create EDGE node</description> |
| <keepDependencies>false</keepDependencies> |
| <properties> |
| <hudson.model.ParametersDefinitionProperty> |
| <parameterDefinitions> |
| <hudson.model.StringParameterDefinition> |
| <name>Username</name> |
| <description>name of the scientist</description> |
| <defaultValue></defaultValue> |
| </hudson.model.StringParameterDefinition> |
| <hudson.model.StringParameterDefinition> |
| <name>Ad_User_Name</name> |
| <description>Name of AD user</description> |
| <defaultValue></defaultValue> |
| </hudson.model.StringParameterDefinition> |
| <hudson.model.ChoiceParameterDefinition> |
| <name>instance_shape</name> |
| <description>value of the EDGE EC2 instance shape</description> |
| <choices class="java.util.Arrays$ArrayList"> |
| <a class="string-array"> |
| <string>Standard_DS1_v2</string> |
| </a> |
| </choices> |
| </hudson.model.ChoiceParameterDefinition> |
| <hudson.model.ChoiceParameterDefinition> |
| <name>Action</name> |
| <description></description> |
| <choices class="java.util.Arrays$ArrayList"> |
| <a class="string-array"> |
| <string>create</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/create_edge_node/template.json | sed 's/UN/'${Username}'/g' | sed 's/EIS/'${instance_shape}'/g' | sed 's/AUI/'${Ad_User_Name}'/g' | sudo docker run -i -v /home/dlab-user/keys:/root/keys -v /opt/dlab/tmp/result:/response -v /var/opt/dlab/log/edge:/logs/edge docker.dlab-edge --action $Action ;</command> |
| </hudson.tasks.Shell> |
| </builders> |
| <publishers/> |
| <buildWrappers/> |
| </project> |