rewrite "foo@1" to "Bash@3"
This commit is contained in:
Родитель
4614e9894d
Коммит
2b5360ae06
|
@ -1,4 +1,4 @@
|
|||
server:
|
||||
cancelTimeoutInMinutes: 5
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -1,4 +1,4 @@
|
|||
cancelTimeoutInMinutes: 5
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -4,9 +4,9 @@ phases:
|
|||
server:
|
||||
cancelTimeoutInMinutes: 5
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- phase: job3
|
||||
server:
|
||||
cancelTimeoutInMinutes: $[ variables.theCancelTimeoutInMinutes ]
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -4,9 +4,9 @@ jobs:
|
|||
cancelTimeoutInMinutes: 5
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- job: job3
|
||||
cancelTimeoutInMinutes: $[ variables.theCancelTimeoutInMinutes ]
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -1,3 +1,3 @@
|
|||
server: true
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -1,3 +1,3 @@
|
|||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -1,3 +1,3 @@
|
|||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- script: echo hi
|
|
@ -1,5 +1,5 @@
|
|||
jobs:
|
||||
- job: myJob
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- script: echo hi
|
|
@ -1,5 +1,5 @@
|
|||
phases:
|
||||
- phase: myJob
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- script: echo hi
|
|
@ -1,5 +1,5 @@
|
|||
jobs:
|
||||
- job: myJob
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- script: echo hi
|
|
@ -8,4 +8,4 @@ server:
|
|||
config: debug
|
||||
parallel: 2
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -9,4 +9,4 @@ strategy:
|
|||
maxParallel: 2
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -24,4 +24,4 @@ phases:
|
|||
matrix: $[ variables.matrix ]
|
||||
parallel: $[ variables.maxParallel ]
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -27,4 +27,4 @@ jobs:
|
|||
maxParallel: $[ variables.maxParallel ]
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -1,4 +1,4 @@
|
|||
server:
|
||||
timeoutInMinutes: 5
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -1,4 +1,4 @@
|
|||
timeoutInMinutes: 5
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -4,9 +4,9 @@ phases:
|
|||
server:
|
||||
timeoutInMinutes: 5
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- phase: job3
|
||||
server:
|
||||
timeoutInMinutes: $[ variables.theTimeoutInMinutes ]
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -4,9 +4,9 @@ jobs:
|
|||
timeoutInMinutes: 5
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
||||
- job: job3
|
||||
timeoutInMinutes: $[ variables.theTimeoutInMinutes ]
|
||||
pool: server
|
||||
steps:
|
||||
- task: foo@1
|
||||
- task: Bash@3
|
|
@ -66,7 +66,10 @@ function outputYaml(name: string, body: string, outputDir: string) {
|
|||
let number = 0;
|
||||
while (mlString !== null) {
|
||||
const finalFileName = [outputBaseName, number.toString(), 'yml'].join('.');
|
||||
fs.writeFile(finalFileName, mlString[1].trim(), 'utf8', (err: NodeJS.ErrnoException) => {
|
||||
const rawContents = mlString[1].trim();
|
||||
// replace tasks called "foo@1" with a real task name
|
||||
const cookedContents = rawContents.replace(/foo@1/gi, "Bash@3");
|
||||
fs.writeFile(finalFileName, cookedContents, 'utf8', (err: NodeJS.ErrnoException) => {
|
||||
if (err) {
|
||||
console.error('trouble writing ' + finalFileName);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче