本文整理汇总了TypeScript中core/pipeline.PipelineConfigProvider类的典型用法代码示例。如果您正苦于以下问题:TypeScript PipelineConfigProvider类的具体用法?TypeScript PipelineConfigProvider怎么用?TypeScript PipelineConfigProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PipelineConfigProvider类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: controller
]).config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerArtifactKind({
label: 'GCS',
description: 'A GCS object.',
key: 'gcs',
isDefault: false,
isMatch: true,
controller(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'gcs/object';
},
controllerAs: 'ctrl',
template: `
<div class="col-md-12">
<div class="form-group row">
<label class="col-md-2 sm-label-right">
Object path
<help-field key="pipeline.config.expectedArtifact.gcs.name"></help-field>
</label>
<div class="col-md-8">
<input type="text"
placeholder="gs://bucket/path/to/file"
class="form-control input-sm"
ng-model="ctrl.artifact.name"/>
</div>
</div>
</div>
`,
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:31,代码来源:gcs.artifact.ts
示例2:
.config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerStage({
synthetic: true,
key: 'applySourceServerGroupCapacity',
executionDetailsSections: [ ApplySourceServerGroupCapacityDetails, ExecutionDetailsTasks ],
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:7,代码来源:applySourceServerGroupCapacityStage.module.ts
示例3: controller
]).config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerArtifactKind({
label: 'Docker',
isDefault: false,
isMatch: true,
description: 'A Docker image to be deployed.',
key: 'docker',
controller(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'docker/image';
},
controllerAs: 'ctrl',
template: `
<div class="col-md-12">
<div class="form-group row">
<label class="col-md-2 sm-label-right">
Docker image
<help-field key="pipeline.config.expectedArtifact.docker.name"></help-field>
</label>
<div class="col-md-8">
<input type="text"
placeholder="gcr.io/project/image"
class="form-control input-sm"
ng-model="ctrl.artifact.name"/>
</div>
</div>
</div>
`,
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:31,代码来源:docker.artifact.ts
示例4: controller
]).config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerArtifactKind({
label: 'GitHub',
description: 'A file stored in git, hosted by GitHub.',
key: 'github',
isDefault: false,
isMatch: true,
controller(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'github/file';
},
controllerAs: 'ctrl',
template: `
<div class="col-md-12">
<div class="form-group row">
<label class="col-md-2 sm-label-right">
File path
<help-field key="pipeline.config.expectedArtifact.git.name"></help-field>
</label>
<div class="col-md-8">
<input type="text"
placeholder="manifests/frontend.yaml"
class="form-control input-sm"
ng-model="ctrl.artifact.name"/>
</div>
</div>
</div>
`,
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:31,代码来源:github.artifact.ts
示例5:
.config(function(pipelineConfigProvider: PipelineConfigProvider) {
pipelineConfigProvider.registerStage({
label: 'Restrict Execution During',
synthetic: true,
description: 'Restricts execution of stage during specified period of time',
key: 'restrictExecutionDuringTimeWindow',
executionDetailsSections: [ExecutionWindowExecutionDetails, ExecutionDetailsTasks],
});
})
开发者ID:robfletcher,项目名称:deck,代码行数:9,代码来源:executionWindowsStage.ts
示例6: require
.config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerStage({
label: 'Script',
description: 'Runs a script',
key: 'script',
restartable: true,
controller: 'ScriptStageCtrl',
controllerAs: 'scriptStageCtrl',
templateUrl: require('./scriptStage.html'),
executionDetailsSections: [ScriptExecutionDetails, ExecutionDetailsTasks],
strategy: true,
});
})
开发者ID:robfletcher,项目名称:deck,代码行数:13,代码来源:scriptStage.ts
示例7: controller
]).config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerArtifactKind({
label: 'Docker',
isDefault: true,
isMatch: false,
description: 'A Docker image to be deployed.',
key: 'default.docker',
controller(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'docker/image';
this.onReferenceChange = () => {
const ref = this.artifact.reference;
if (isNil(ref)) {
return;
}
if (ref.indexOf('@') >= 0) {
const split = ref.split('@');
this.artifact.name = split[0];
this.artifact.version = split[1];
} else if (ref.indexOf(':') >= 0) {
const split = ref.split(':');
this.artifact.name = split[0];
this.artifact.version = split[1];
} else {
this.artifact.name = ref;
}
};
},
controllerAs: 'ctrl',
template: `
<div class="col-md-12">
<div class="form-group row">
<label class="col-md-2 sm-label-right">
Docker image
<help-field key="pipeline.config.expectedArtifact.defaultDocker.reference"></help-field>
</label>
<div class="col-md-8">
<input type="text"
placeholder="gcr.io/project/image@sha256:9efcc2818c9..."
class="form-control input-sm"
ng-change="ctrl.onReferenceChange()"
ng-model="ctrl.artifact.reference"/>
</div>
</div>
</div>
`,
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:51,代码来源:defaultDocker.artifact.ts
示例8: controller
]).config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerArtifactKind({
label: 'GCS',
description: 'A GCS object.',
key: 'default.gcs',
isDefault: true,
isMatch: false,
controller(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'gcs/object';
this.onReferenceChange = () => {
const ref = this.artifact.reference;
if (isNil(ref)) {
return;
}
if (ref.indexOf('#') >= 0) {
const split = ref.split('#');
this.artifact.name = split[0];
this.artifact.version = split[1];
} else {
this.artifact.name = ref;
}
};
},
controllerAs: 'ctrl',
template: `
<div class="col-md-12">
<div class="form-group row">
<label class="col-md-2 sm-label-right">
Object path
<help-field key="pipeline.config.expectedArtifact.defaultGcs.reference"></help-field>
</label>
<div class="col-md-8">
<input type="text"
placeholder="gs://bucket/path/to/file"
class="form-control input-sm"
ng-change="ctrl.onReferenceChange()"
ng-model="ctrl.artifact.reference"/>
</div>
</div>
</div>
`,
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:47,代码来源:defaultGcs.artifact.ts
示例9: controller
]).config((pipelineConfigProvider: PipelineConfigProvider) => {
pipelineConfigProvider.registerArtifactKind({
label: 'GitHub',
description: 'A file stored in git, hosted by GitHub.',
key: 'default.github',
isDefault: true,
isMatch: false,
controller(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'github/file';
},
controllerAs: 'ctrl',
template: `
<div class="col-md-12">
<div class="form-group row">
<label class="col-md-3 sm-label-right">
Content URL
<help-field key="pipeline.config.expectedArtifact.defaultGithub.reference"></help-field>
</label>
<div class="col-md-8">
<input type="text"
placeholder="https://api.github.com/repos/$ORG/$REPO/contents/$FILEPATH"
class="form-control input-sm"
ng-model="ctrl.artifact.reference"/>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 sm-label-right">
Commit/Branch
<help-field key="pipeline.config.expectedArtifact.defaultGithub.version"></help-field>
</label>
<div class="col-md-3">
<input type="text"
placeholder="master"
class="form-control input-sm"
ng-model="ctrl.artifact.version"/>
</div>
</div>
</div>
`,
});
});
开发者ID:robfletcher,项目名称:deck,代码行数:43,代码来源:defaultGithub.artifact.ts
注:本文中的core/pipeline.PipelineConfigProvider类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论