renaming task and correcting instance format name based on action
This commit is contained in:
Родитель
b54747b086
Коммит
523526534b
До Ширина: | Высота: | Размер: 1.2 KiB После Ширина: | Высота: | Размер: 1.2 KiB |
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"id": "B93C4522-5BEA-4118-97AE-2B560628A157",
|
||||
"name": "DockerRun",
|
||||
"friendlyName": "Run Docker image",
|
||||
"description": "run a docker image.",
|
||||
"helpMarkDown": "[More Information](http://aka.ms/vsts-docker-run-task)",
|
||||
"category": "Deploy",
|
||||
"name": "Docker",
|
||||
"friendlyName": "Docker",
|
||||
"description": "Connect to a private docker registry. And build a docker image or push a docker image or run a docker container. Or run any docker command.",
|
||||
"helpMarkDown": "[More Information](http://aka.ms/vsts-docker-task)",
|
||||
"category": "Build",
|
||||
"visibility": [
|
||||
"Build",
|
||||
"Release"
|
||||
|
@ -129,7 +129,7 @@
|
|||
"helpMarkDown": "Additional arguments to pass to the run command."
|
||||
}
|
||||
],
|
||||
"instanceNameFormat": "run $(imageName)",
|
||||
"instanceNameFormat": "$(action)",
|
||||
"execution": {
|
||||
"Node": {
|
||||
"target": "invokeDockerAction.js",
|
|
@ -35,7 +35,7 @@
|
|||
},
|
||||
"files": [
|
||||
{
|
||||
"path": "tasks/dockerRun"
|
||||
"path": "tasks/docker"
|
||||
},
|
||||
{
|
||||
"path": "images",
|
||||
|
@ -154,13 +154,13 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"id": "dockerRun-task",
|
||||
"id": "docker-task",
|
||||
"type": "ms.vss-distributed-task.task",
|
||||
"targets": [
|
||||
"ms.vss-distributed-task.tasks"
|
||||
],
|
||||
"properties": {
|
||||
"name": "tasks/dockerRun"
|
||||
"name": "tasks/docker"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/// <reference path="../../../typings/tsd.d.ts" />
|
||||
/// <reference path="../../../typings/vsts-task-lib/vsts-task-lib.d.ts" />
|
||||
|
||||
import * as dockerRun from "../../../src/tasks/dockerRun/dockerRun";
|
||||
import * as dockerRun from "../../../src/tasks/docker/dockerRun";
|
||||
|
||||
import chai = require("chai");
|
||||
import sinon = require("sinon");
|
Загрузка…
Ссылка в новой задаче