Please enter the HTTP or SSH style URL used to clone your git repository:
Custom git triggers support any externally accessible git repository, via either the normal git protocol or HTTP.
It is the responsibility of the git repository to invoke a webhook to tell that a commit has been added.
Select build context directory
Please select the build context directory under the git repository:
The build context directory is the path of the directory containing the Dockerfile and any other files to be made available when the build is triggered.
If the Dockerfile is located at the root of the git repository, enter / as the build context directory.
`
})
export class ManageTriggerCustomGitComponent implements ng.IComponentController {
// FIXME: Use one-way data binding
@Input('=') public trigger: {config: any};
@Output() public activateTrigger: any;
private config: any = {};
private currentState: any | null;
private gitUrlRegEx: string = "((ssh|http(s)?)|(git@[\w\.]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)?";
public $onChanges(changes: ng.IOnChangesObject): void {
if (changes['trigger'] !== undefined) {
this.config = Object.assign({}, changes['trigger'].currentValue.config);
}
}
}