Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
morphemic-preprocessor
Commits
cea2c203
Commit
cea2c203
authored
Jul 26, 2021
by
Mohamed Khalil Labidi
Browse files
Delete file staged in build folder
parent
7e984be6
Pipeline
#15037
passed with stage
in 2 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scheduling-abstraction-layer/target/classes/Define_NS_BYON.xml
deleted
100644 → 0
View file @
7e984be6
<?xml version="1.0" encoding="UTF-8"?>
<job
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"urn:proactive:jobdescriptor:3.12"
xsi:schemaLocation=
"urn:proactive:jobdescriptor:3.12 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.12/schedulerjob.xsd"
name=
"Define_NS_BYON.xml"
priority=
"normal"
onTaskError=
"continueJobExecution"
maxNumberOfExecution=
"2"
>
<variables>
<variable
name=
"pa_port"
value=
"8080"
/>
<variable
name=
"NS_name"
value=
"SSH_INFRA"
/>
<variable
name=
"pa_protocol"
value=
"http"
/>
<variable
name=
"rm_host_name"
value=
""
model=
""
/>
<variable
name=
"ssh_username"
value=
""
model=
""
/>
<variable
name=
"ssh_password"
value=
""
model=
""
/>
<variable
name=
"ssh_key"
value=
""
/>
<variable
name=
"ssh_port"
value=
"22"
model=
""
/>
<variable
name=
"list_of_ips"
value=
""
model=
""
/>
<variable
name=
"tokens"
value=
""
model=
""
/>
</variables>
<description>
<![CDATA[ A workflow that executes Groovy in JVM. ]]>
</description>
<taskFlow>
<task
name=
"Create_NodeSource"
fork=
"true"
>
<description>
<![CDATA[ The simplest task, ran by a Groovy engine. ]]>
</description>
<scriptExecutable>
<script>
<code
language=
"groovy"
>
<![CDATA[
// Connecting to the Scheduler
import java.io.File
def retCode = 0;
def tokens= variables.get("tokens")
def nodeSourceName = variables.get("NS_name")
def protocol = variables.get("pa_protocol")
def host = variables.get("rm_host_name")
def port = variables.get("pa_port")
def sshUsername = variables.get("ssh_username")
def sshPassword = variables.get("ssh_password")
def sshKey = variables.get("ssh_key")
def sshPort = variables.get("ssh_port")
def ips= variables.get("list_of_ips")
def javaOptions = "-Dproactive.net.nolocal=true -Dproactive.communication.protocol=pamr -Dproactive.useIPaddress=true -Dproactive.pamr.router.address=" + host
ips = ips.split(",")
def hosts = ""
for (ip in ips) {
hosts = hosts + ip + " 1\n"
}
if (tokens=="") {
tokens="ALL"
}
println "[+] Preparation of NodeSoure " + nodeSourceName
print "(1/4) Connecting to the RM at "+protocol+"://"+host+":"+port+"/ ..."
rmapi.connect()
println " OK!"
//Getting NS configuration settings
def infrastructureType = "org.ow2.proactive.resourcemanager.nodesource.infrastructure.SSHInfrastructureV2"
def infrastructureParameters = ["60000", //Node Time out
"5", //Max deployment failure
"5000", //wait between Deployment
sshPort,//port, //SSH port
sshUsername, //SSH Username
sshPassword, //SSH Password
"/opt/activeeon_enterprise-node-linux-x64-12.1.0-SNAPSHOT/jre/bin/java", //JavaPath on the remote host
"/opt/activeeon_enterprise-node-linux-x64-12.1.0-SNAPSHOT", //ScheduligPath on the remote hosts
"Linux", //targetOs
javaOptions]//Java options
def infrastructureFileParameters = [hosts, //hostsList file content
"", //SSH Private Key
"" //SSH Options
]
def policyType = "org.ow2.proactive.resourcemanager.nodesource.policy.StaticPolicy"
def poliyParameters = [tokens,"ALL"]
def policyFileParameters = [""]
def nodesRecoverable = "true"
print "(2/4) Creating NodeSource ..."
rmapi.defineNodeSource(nodeSourceName,infrastructureType,(String[]) infrastructureParameters.toArray(),(String[]) infrastructureFileParameters.toArray(), policyType, (String[]) poliyParameters.toArray(), (String[]) policyFileParameters.toArray(),nodesRecoverable)
println " ... OK !"
print "(3/4) Deploying the NodeSource ..."
rmapi.deployNodeSource(nodeSourceName)
println " ... OK !"
print "(4/4) Done"
return retCode;
]]>
</code>
</script>
</scriptExecutable>
<metadata>
<positionTop>
508
</positionTop>
<positionLeft>
510.5
</positionLeft>
</metadata>
</task>
</taskFlow>
<metadata>
<visualization>
<![CDATA[ <html>
<head>
<link
rel=
"stylesheet"
href=
"/studio/styles/studio-standalone.css"
>
<style>
#workflow-designer {
left:0 !important;
top:0 !important;
width:2726px;
height:3116px;
}
</style>
</head>
<body>
<div
id=
"workflow-visualization-view"
><div
id=
"workflow-visualization"
style=
"position:relative;top:-503px;left:-505.5px"
><div
class=
"task _jsPlumb_endpoint_anchor_ ui-draggable"
id=
"jsPlumb_1_13"
style=
"top: 508px; left: 510.5px; z-index: 24;"
><a
class=
"task-name"
data-toggle=
"tooltip"
data-placement=
"right"
title=
"The simplest task, ran by a Groovy engine."
><img
src=
"images/Groovy.png"
width=
"20px"
>
<span
class=
"name"
>
Create_NodeSource
</span></a></div><div
class=
"_jsPlumb_endpoint source-endpoint dependency-source-endpoint connected _jsPlumb_endpoint_anchor_ ui-draggable ui-droppable"
style=
"position: absolute; height: 20px; width: 20px; left: 563px; top: 538px;"
><svg
style=
"position:absolute;left:0px;top:0px"
width=
"20"
height=
"20"
pointer-events=
"all"
position=
"absolute"
version=
"1.1"
xmlns=
"http://www.w3.org/1999/xhtml"
><circle
cx=
"10"
cy=
"10"
r=
"10"
version=
"1.1"
xmlns=
"http://www.w3.org/1999/xhtml"
fill=
"#666"
stroke=
"none"
style=
""
></circle></svg></div></div></div>
</body>
</html>
]]>
</visualization>
</metadata>
</job>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment