war

package
v0.0.0-...-69eaee5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMissings

func AddMissings(jkpr *api.PluginsRegistry, pr *api.PluginsRegistry)

AddMissings walks through a jenkins input to check if there are missing plugins in a plugin registry and add them

func ExtractDetachedPluginsManifests

func ExtractDetachedPluginsManifests(war string, detachedPlugins []string) (map[string]string, error)

ExtractDetachedPluginsManifests takes a war and returns a reader to a detached plugin manifest content

func GetStorePath

func GetStorePath(workingDir string) string

GetStorePath returns the path to the store

func GetWarPath

func GetWarPath(jm *JenkinsManifest, workingDir string) string

GetWarPath returns the path to the war in the store

func NewPluginsRegistry

func NewPluginsRegistry(jk *api.Jenkins) *api.PluginsRegistry

NewPluginsRegistry returns a PluginRegistry struct from a Jenkins struct.

func Read

func Read(warfile string, workingDir string) (*api.Jenkins, error)

Read reads a Jenkins struct from a file. If it does not exist, it will parse it and write the processed data to the store. If it does exist, it will read it from the store directly.

func ReadWar

func ReadWar(warPath string) (*api.Jenkins, error)

ReadWar reads a Jenkins struct from a file

func WriteWar

func WriteWar(g *api.Jenkins, warPath string) error

WriteWar writes a Jenkins struct into a file

Types

type JenkinsManifest

type JenkinsManifest struct {
	Version      string
	PluginsFiles []string
}

JenkinsManifest represents the Jenkins manifest file

func ParseManifest

func ParseManifest(manifest string) (*JenkinsManifest, error)

ParseManifest parses a Jenkins manifest file content

func (JenkinsManifest) Parse

func (jm JenkinsManifest) Parse(warfile string) (*api.Jenkins, error)

Parse takes a jenkins manifest and returns a Jenkins struct

Jump to

Keyboard shortcuts

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