adding cwd input to all actions
This commit is contained in:
Родитель
c58dcf412b
Коммит
b54747b086
|
@ -4,6 +4,9 @@ import tl = require("vsts-task-lib/task");
|
|||
import * as docker from "./dockerCommand";
|
||||
|
||||
export function runCommand(): void {
|
||||
var cwd = tl.getInput("cwd");
|
||||
tl.cd(cwd);
|
||||
|
||||
var dockerConnectionString = tl.getInput("dockerServiceEndpoint", true);
|
||||
var registryEndpoint = tl.getInput("dockerRegistryServiceEndpoint", true);
|
||||
var commandLine = tl.getInput("customCommand", true);
|
||||
|
|
|
@ -6,6 +6,9 @@ import tl = require("vsts-task-lib/task");
|
|||
import * as docker from "./dockerCommand";
|
||||
|
||||
export function dockerBuild(): void {
|
||||
var cwd = tl.getInput("cwd");
|
||||
tl.cd(cwd);
|
||||
|
||||
var dockerConnectionString = tl.getInput("dockerServiceEndpoint", true);
|
||||
var registryEndpoint = tl.getInput("dockerRegistryServiceEndpoint", true);
|
||||
var dockerFilePattern = tl.getInput("dockerFile", true);
|
||||
|
|
|
@ -4,6 +4,9 @@ import tl = require("vsts-task-lib/task");
|
|||
import * as docker from "./dockerCommand";
|
||||
|
||||
export function dockerPublish(): void {
|
||||
var cwd = tl.getInput("cwd");
|
||||
tl.cd(cwd);
|
||||
|
||||
var dockerConnectionString = tl.getInput("dockerServiceEndpoint", true);
|
||||
var registryEndpoint = tl.getInput("dockerRegistryServiceEndpoint", true);
|
||||
var imageName = tl.getInput("imageName", true);
|
||||
|
|
|
@ -4,6 +4,9 @@ import tl = require("vsts-task-lib/task");
|
|||
import * as docker from "./dockerCommand";
|
||||
|
||||
export function dockerRun(): void {
|
||||
var cwd = tl.getInput("cwd");
|
||||
tl.cd(cwd);
|
||||
|
||||
var dockerConnectionString = tl.getInput("dockerServiceEndpoint", true);
|
||||
var registryEndpoint = tl.getInput("dockerRegistryServiceEndpoint", true);
|
||||
var imageName = tl.getInput("imageName", true);
|
||||
|
|
|
@ -31,6 +31,14 @@
|
|||
"required": true,
|
||||
"helpMarkDown": "The Docker Hub endpoint, to login to Docker Hub."
|
||||
},
|
||||
{
|
||||
"name": "cwd",
|
||||
"type": "filePath",
|
||||
"label": "Working Directory",
|
||||
"defaultValue": "$(System.DefaultWorkingDirectory)",
|
||||
"required": false,
|
||||
"helpMarkDown": "Current working directory where the certs folder will be created."
|
||||
},
|
||||
{
|
||||
"name": "action",
|
||||
"type": "pickList",
|
||||
|
|
Загрузка…
Ссылка в новой задаче