mavendeploy

package
v0.0.0-...-5663b97 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Source string `json:"source"` // artifact filename glob
	Regexp string `json:"regexp"` // parses artifact filenames to artifacts
	Debug  bool   `json:"debug"`  // debug output
}

Args is the drone-mvn specific arguments. If there are multiple matches to Source, ArtifactRegexp must be defined.

type Artifact

type Artifact struct {
	GroupID    string `json:"group"`      // e.g. org.springframework
	ArtifactID string `json:"artifact"`   // e.g. spring-core
	Version    string `json:"version"`    // e.g. 4.1.3.RELEASE
	Classifier string `json:"classifier"` // e.g. sources, javadoc, <the empty string>...
	Extension  string `json:"extension"`  // e.g. jar, .tar.gz, .zip
	// contains filtered or unexported fields
}

Artifact is a target Maven artifact.

type GPG

type GPG struct {
	PrivateKey string `json:"gpg_private_key"` // private key
	Passphrase string `json:"gpg_passphrase"`  // private key passphrase (optional)
}

GPG holds the GnuPG key information used for signing releases.

type GpgCmd

type GpgCmd struct {
	GPG GPG

	PublicRing  string
	SecretRing  string
	SecretKeyID string
	Quiet       bool
	// contains filtered or unexported fields
}

GpgCmd wraps the GnuPG command line util to create a temporary keychain for

func (*GpgCmd) Setup

func (g *GpgCmd) Setup() error

func (*GpgCmd) Teardown

func (g *GpgCmd) Teardown() error

type Maven

type Maven struct {
	Repository // maven repository
	Artifact   // artifact
	GPG        // signing information
	Args       // drone-mvn specific options
	// contains filtered or unexported fields
}

Maven is a composed struct which forms the configration of the drone-mvn drone plugin.

func (*Maven) Prepare

func (mvn *Maven) Prepare() error

func (*Maven) Publish

func (mvn *Maven) Publish() error

func (*Maven) WorkspacePath

func (mvn *Maven) WorkspacePath(path string) error

type Repository

type Repository struct {
	Username string `json:"username"`
	Password string `json:"password"`
	URL      string `json:"url"`
}

Repository is a target Maven repository configuration

type Server

type Server struct {
	ID         string `xml:"id"`
	Username   string `xml:"username,omitempty"`
	Password   string `xml:"password,omitempty"`
	Passphrase string `xml:"passphrase,omitempty"`
}

Server entry for the maven settings.xml

type Settings

type Settings struct {
	XMLName xml.Name `xml:"settings"`
	Servers []Server `xml:"servers>server"`
}

Settings is the root of the maven settings.xml file

Jump to

Keyboard shortcuts

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