/**
 * Jenkins 服务器数据源
 */
import type { DataSourceConfig } from '../types';

export const jenkinsServersConfig: DataSourceConfig = {
  url: '/api/v1/external-system/list',
  params: { type: 'JENKINS', enabled: true },
  transform: (data: any[]) => {
    return data.map((item: any) => ({
      label: `${item.name} (${item.url})`,
      value: item.id,
      url: item.url,
      name: item.name
    }));
  }
};

