Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
34730653
authored
Sep 16, 2018
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
新增任务运行模式 "GLUE模式(PowerShell) ",支持PowerShell脚本任务;
parent
b30db360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
View file @
34730653
...
@@ -272,20 +272,11 @@ process.exit(0)
...
@@ -272,20 +272,11 @@ process.exit(0)
<textarea
class=
"glueSource_powershell"
style=
"display:none;"
>
<textarea
class=
"glueSource_powershell"
style=
"display:none;"
>
Write-Host "xxl-job: hello powershell"
Write-Host "xxl-job: hello powershell"
if($args.Count -eq 3) {
$executorparam = $args[0]
$shard_index = $args[1]
$shard_total = $args[2]
} Else {
$executorparam = ""
$shard_index = $args[0]
$shard_total = $args[1]
}
Write-Host "${I18n.jobinfo_script_location}: " $MyInvocation.MyCommand.Definition
Write-Host "${I18n.jobinfo_script_location}: " $MyInvocation.MyCommand.Definition
Write-Host "${I18n.jobinfo_field_executorparam}: " $executorparam
Write-Host "${I18n.jobinfo_field_executorparam}: "
Write-Host "${I18n.jobinfo_shard_index}: " $shard_index
if ($args.Count -gt 2) { $args[0..($args.Count-3)] }
Write-Host "${I18n.jobinfo_shard_total}: " $shard_total
Write-Host "${I18n.jobinfo_shard_index}: " $args[$args.Count-2]
Write-Host "${I18n.jobinfo_shard_total}: " $args[$args.Count-1]
Write-Host "Good bye!"
Write-Host "Good bye!"
exit 0
exit 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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