tasks

package
v0.11.0-test5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const RAW_BUILD_TABLE = "jenkins_api_builds"
View Source
const RAW_JOB_TABLE = "jenkins_api_jobs"

Variables

View Source
var CollectApiBuildsMeta = core.SubTaskMeta{
	Name:             "collectApiBuilds",
	EntryPoint:       CollectApiBuilds,
	EnabledByDefault: true,
	Description:      "Collect builds data from jenkins api",
}
View Source
var CollectApiJobsMeta = core.SubTaskMeta{
	Name:             "collectApiJobs",
	EntryPoint:       CollectApiJobs,
	EnabledByDefault: true,
	Description:      "Collect jobs data from jenkins api",
}
View Source
var ConvertBuildsMeta = core.SubTaskMeta{
	Name:             "convertBuilds",
	EntryPoint:       ConvertBuilds,
	EnabledByDefault: true,
	Description:      "Convert tool layer table jenkins_builds into  domain layer table builds",
}
View Source
var ConvertJobsMeta = core.SubTaskMeta{
	Name:             "convertJobs",
	EntryPoint:       ConvertJobs,
	EnabledByDefault: true,
	Description:      "Convert tool layer table jenkins_jobs into  domain layer table jobs",
}
View Source
var ExtractApiBuildsMeta = core.SubTaskMeta{
	Name:             "extractApiBuilds",
	EntryPoint:       ExtractApiBuilds,
	EnabledByDefault: true,
	Description:      "Extract raw builds data into tool layer table jenkins_builds",
}
View Source
var ExtractApiJobsMeta = core.SubTaskMeta{
	Name:             "extractApiJobs",
	EntryPoint:       ExtractApiJobs,
	EnabledByDefault: true,
	Description:      "Extract raw jobs data into tool layer table jenkins_jobs",
}

Functions

func CollectApiBuilds added in v0.10.0

func CollectApiBuilds(taskCtx core.SubTaskContext) error

func CollectApiJobs added in v0.10.0

func CollectApiJobs(taskCtx core.SubTaskContext) error

func ConvertBuilds added in v0.6.0

func ConvertBuilds(taskCtx core.SubTaskContext) error

func ConvertJobs added in v0.6.0

func ConvertJobs(taskCtx core.SubTaskContext) error

func CreateApiClient added in v0.8.0

func CreateApiClient(taskCtx core.TaskContext) (*helper.ApiAsyncClient, error)

func ExtractApiBuilds added in v0.10.0

func ExtractApiBuilds(taskCtx core.SubTaskContext) error

func ExtractApiJobs added in v0.10.0

func ExtractApiJobs(taskCtx core.SubTaskContext) error

Types

type JenkinsOptions added in v0.10.0

type JenkinsOptions struct {
	Host     string
	Username string
	Password string
	Since    string
	Tasks    []string `json:"tasks,omitempty"`
}

type JenkinsTaskData added in v0.10.0

type JenkinsTaskData struct {
	Options   *JenkinsOptions
	ApiClient *helper.ApiAsyncClient
	Since     *time.Time
}

type SimpleJob added in v0.10.0

type SimpleJob struct {
	Name string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL