0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-22 00:20:38 +00:00
This commit is contained in:
Don 2019-09-09 17:35:43 -07:00
parent c7b7745e10
commit 578305b3b6
2 changed files with 17 additions and 29 deletions

View File

@ -110,52 +110,40 @@ type (
Stage struct {
// Arch is the platform architecture of the current build stage.
Arch string
// DependsOn is a list of dependencies for the current build stage.
DependsOn []string
// Finished is the unix timestamp for when the pipeline is finished.
//
// A running pipleine cannot have a finish timestamp, therefore, the
// system aways sets this value to the current timestamp.
Finished time.Time
// Kind is the kind of resource being executed.
//
// This value is sourced from the `kind` attribute in the yaml
// configuration file
Kind string
// Machine provides the name of the host machine on which the build
// stage is currently running.
Machine string
// Name is the name for the current running build stage.
Name string
// Number is the stage number for the current running build stage.
Number int
// OS is the target operating system for the current build stage.
OS string
// Started is the unix timestamp for when a build stage was started by
// the runner.
Started time.Time
// Status is the status for the current running build stage.
//
// If all of the stage's steps are passing, the status defaults to
// success.
Status string
// Type is the type of resource being executed.
Type string
// Variant is the target architecture variant for the current build
// stage.
Variant string
// Version is OS version for the current build stage.
Version string
}

View File

@ -195,23 +195,23 @@ func BuildFromContext(ctx *cli.Context) plugin.Build {
//---------------------------------------------------------------------
const (
// RepoDefaultBranchFlag corresponds to Repo.DefaultBranch.
// RepoDefaultBranchFlag corresponds to plugin.Repo.DefaultBranch.
RepoDefaultBranchFlag = "repo.branch"
// RepoFullNameFlag corresponds to Repo.FullName.
// RepoFullNameFlag corresponds to plugin.Repo.FullName.
RepoFullNameFlag = "repo.full-name"
// RepoLinkFlag corresponds to Repo.Link.
// RepoLinkFlag corresponds to plugin.Repo.Link.
RepoLinkFlag = "repo.link"
// RepoNameFlag corresponds to Repo.Name
// RepoNameFlag corresponds to plugin.Repo.Name
RepoNameFlag = "repo.name"
// RepoOwnerFlag corresponds to Repo.Owner.
// RepoOwnerFlag corresponds to plugin.Repo.Owner.
RepoOwnerFlag = "repo.owner"
// RepoPrivateFlag corresponds to Repo.Private.
// RepoPrivateFlag corresponds to plugin.Repo.Private.
RepoPrivateFlag = "repo.private"
// RepoRemoteURLFlag corresponds to Repo.RemoteURL.
// RepoRemoteURLFlag corresponds to plugin.Repo.RemoteURL.
RepoRemoteURLFlag = "repo.remote-url"
// RepoSCMFlag corresponds to Repo.SCM.
// RepoSCMFlag corresponds to plugin.Repo.SCM.
RepoSCMFlag = "repo.scm"
// RepoVisibilityFlag corresponds to Repo.Visbility.
// RepoVisibilityFlag corresponds to plugin.Repo.Visbility.
RepoVisibilityFlag = "repo.visibility"
)
@ -576,21 +576,21 @@ func StepFromContext(ctx *cli.Context) plugin.Step {
//---------------------------------------------------------------------
const (
// SemVerBuildFlag corresponds to SemVer.Build.
// SemVerBuildFlag corresponds to plugin.SemVer.Build.
SemVerBuildFlag = "semver.build"
// SemVerErrorFlag corresponds to SemVer.Error.
// SemVerErrorFlag corresponds to plugin.SemVer.Error.
SemVerErrorFlag = "semver.error"
// SemVerMajorFlag corresponds to SemVer.Major.
// SemVerMajorFlag corresponds to plugin.SemVer.Major.
SemVerMajorFlag = "semver.major"
// SemVerMinorFlag corresponds to SemVer.Minor.
// SemVerMinorFlag corresponds to plugin.SemVer.Minor.
SemVerMinorFlag = "semver.minor"
// SemVerPatchFlag corresponds to SemVer.Patch.
// SemVerPatchFlag corresponds to plugin.SemVer.Patch.
SemVerPatchFlag = "semver.patch"
// SemVerPrereleaseFlag corresponds to SemVer.Prerelease
// SemVerPrereleaseFlag corresponds to plugin.SemVer.Prerelease
SemVerPrereleaseFlag = "semver.prerelease"
// SemVerShortFlag corresponds to SemVer.Short.
// SemVerShortFlag corresponds to plugin.SemVer.Short.
SemVerShortFlag = "semver.short"
// SemVerVersionFlag corresponds to SemVer.Version
// SemVerVersionFlag corresponds to plugin.SemVer.Version
SemVerVersionFlag = "semver.version"
)