2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2022-01-15 04:19:37 -08:00
|
|
|
|
|
|
|
export class JenkinsApi implements ICredentialType {
|
|
|
|
name = 'jenkinsApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-01-15 04:19:37 -08:00
|
|
|
displayName = 'Jenkins API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-01-15 04:19:37 -08:00
|
|
|
documentationUrl = 'jenkins';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-01-15 04:19:37 -08:00
|
|
|
properties: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Jenking Username',
|
|
|
|
name: 'username',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Personal API Token',
|
|
|
|
name: 'apiKey',
|
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2022-01-15 04:19:37 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Jenkins Instance URL',
|
|
|
|
name: 'baseUrl',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|