- generateAll() - Method in LifecycleGenerator
-
Generate the build script which would be used in the Jenkins step.
- generateSection(String) - Method in LifecycleGenerator
-
A generic function to generate code for different sections of the build script.
- generateToolchainSection() - Method in LifecycleGenerator
-
Generate the toolchains shell script based on the Jervis YAML or taking defaults
from the toolchains file.
- GeneratorException - Class in net.gleske.jervis.exceptions
A group of exceptions that are thrown when undesireable script generation conditions occur.
- GeneratorException(String) - Constructor in GeneratorException
-
Throw a GeneratorException.
- getAllowBuild() - Method in FilterByContext
-
Evaluate the full list of complex filters provided by the user and
provide a single result based on context of how a build was triggered and
at what point in the Git workflow the job is building (pr, branch, or
tag).
- getAlwaysBuildExpression() - Method in FilterByContext
-
Get an expression which will always result in allowBuild returning
true.
- getApiUri() - Method in GitHubAppRsaCredential
-
Returns the API URL where this class will attempt to submit a GitHub app.
- getApiUri() - Method in GitHubAppRsaCredentialImpl
-
The GitHub API URL for querying GitHub App API in case of self-hosted
GitHub Enterprise.
- getAppID() - Method in GitHubAppRsaCredential
-
Returns the GitHub App ID for the app installed into GitHub orgs and
users.
- getAppID() - Method in GitHubAppRsaCredentialImpl
-
The GitHub App ID for a GitHub credential.
- getBranchRegexString() - Method in LifecycleGenerator
-
Get the regular expression which is used for branch filtering.
- getBuildableMatrixAxes() - Method in PipelineGenerator
-
Returns a list of maps which are buildable matrices in a matrix build.
- getCloneUrl() - Method in GitHub
-
- getCloneUrl() - Method in JervisRemote
-
Repositories will be cloned from this base Git URI.
- getDefaultToolchainsEnvironment() - Method in PipelineGenerator
-
Get default toolchains environment.
- getDefaultToolchainsScript() - Method in PipelineGenerator
-
Get default toolchains script.
- getEnvironmentSecret(String, Integer, Boolean) - Method in VaultService
-
Returns a Map of key-value pairs compatible with bash environment
variables.
- getEnvironmentSecrets(List, Boolean) - Method in VaultService
-
Returns a Map of key-value pairs compatible with bash environment
variables.
- getExpiration() - Method in EphemeralTokenCache
-
Gets expiration of the token.
- getExpiration() - Method in EphemeralTokenCredential
-
Returns when an issued ephemeral token will expire.
- getFile(String, String, String) - Method in GitHub
-
Get the contents of a file from a project.
- getFile(String, String, String) - Method in JervisRemote
-
Get the contents of a file in a remote git project for a given reference.
- getFilteredBranchesList() - Method in LifecycleGenerator
-
Get a list of static branch names which is used for branch filtering.
- getFolderListing(String, String, String) - Method in GitHub
-
Get the directory listing of a path from a project.
- getFolderListing(String, String, String) - Method in JervisRemote
-
Get list a file path in a project for the given reference.
- getFullBranchRegexString(List) - Method in LifecycleGenerator
-
Get the regular expression for all whitelisted branches.
- getGh_token() - Method in GitHub
-
Retrieves the token used to authenticate with GitHub.
- getGitHubJWT(String, Integer, Integer) - Method in SecurityIO
-
- getGqlData(String, String) - Method in GitHubGraphQL
-
Transforms a GraphQL query and variables into data which can be submitted
with a POST request.
- getHash() - Method in GitHubAppCredential
-
- getId() - Method in GitHubAppRsaCredential
-
Returns an ID unique to this credential to differentiate it from other
credentials.
- getId() - Method in GitHubAppRsaCredentialImpl
-
An ID unique to this credential.
- getInstallation_id() - Method in GitHubAppCredential
-
If installation ID is not set, then it will automatically resolve an ID
from app installations.
- getJenkinsfile() - Method in LifecycleGenerator
-
Get the Jenkinsfile for a pipeline.
- getJervisYamlFiles(String, List, List) - Method in GitHubGraphQL
-
Get Jervis YAML from a remote repository.
- getLabels() - Method in LifecycleGenerator
-
Returns a groovy expression which Jenkins would use to pin a job to specific
nodes.
- getLifecycleDocumentation(String, String) - Method in SupportDocumentationGenerator
-
Return markdown documentation for a given OS supporting a language.
- getLocationFromPath(String) - Method in VaultService
-
Given a path representing the full path including a mount and secret path,
only the location relative to the parent mount is returned.
- getLocationMapFromPath(String) - Method in VaultService
-
If given a full path to a secret in Vault, a location Map is returned.
- getMatrix_fullName_by_friendly() - Method in LifecycleGenerator
-
- getMountFromPath(String) - Method in VaultService
-
Given a path this method will return the Vault secrets mount.
- getNextRelease(String, List<String>, String, String) - Method in AutoRelease
-
Gets a bumped version with a more loosely formed format.
- getNextSemanticRelease(String, List<String>, String) - Method in AutoRelease
-
- getObjectValue(Map, String, Object) - Method in YamlOperator
-
Get an object from a Map or return any object from
defaultValue.
- getOwner() - Method in GitHubAppRsaCredential
-
Returns the owner which installed the GitHub App.
- getPathFromLocationMap(Map) - Method in VaultService
-
If given a location Map it will convert it to a String path for Vault APIs.
- getPlainMap() - Method in CipherMap
-
Decrypts the encrypted map and returns the object.
- getPrivateKey() - Method in GitHubAppRsaCredential
-
Returns the RSA private key for a GitHub App.
- getPrivateKey() - Method in GitHubAppRsaCredentialImpl
-
A private key for a GitHub App necessary for signing JSON Web Tokens (JWT).
- getPublishable(String) - Method in PipelineGenerator
-
Get a publishable item from the list of publishable items.
- getPublishableItems() - Method in PipelineGenerator
-
Get a list of publishable items which show up in .jervis.yml.
- getRenew_buffer() - Method in EphemeralTokenCache
-
Returns renew buffer for the current token.
- getRenew_buffer() - Method in VaultAppRoleCredential
-
Returns renew buffer.
- getRole_id() - Method in VaultRoleIdCredential
-
When implemented, this method should return a role ID used for
authenticating with Vault.
- getRole_id() - Method in VaultRoleIdCredentialImpl
-
Returns the Role ID used for approle authentication.
- getRsa_keysize() - Method in SecurityIO
-
Returns the calculated RSA private key size in bits calculated from the
key_pair.
- getScriptFromTemplate(String, Map) - Method in AutoRelease
-
This method is for applying variables to a groovy template.
- getSecret_id() - Method in VaultRoleIdCredential
-
When implemented, this method should return a secret ID used for
authenticating with Vault.
- getSecret_id() - Method in VaultRoleIdCredentialImpl
-
Returns the Secret ID used for approle authentication.
- getSecret(String, Integer) - Method in VaultService
-
Get secret from a KV v1 or KV v2 secret engine.
- getSecretPairsEnv() - Method in PipelineGenerator
-
Processes secret properties from .jervis.yml into two lists.
- getStashMap(Map) - Method in PipelineGenerator
-
Returns a list of stashes from Jervis YAML to be stashed either serially or
in this matrix axis for matrix builds.
- getTextWithLock() - Method in LockableFile
-
Obtains an exclusive
FileLock before
reading the contents of a
File.
- getToken() - Method in EphemeralTokenCache
-
Gets the access token used for API authentication retrieved from the
cache.
- getToken() - Method in GitHubAppCredential
-
Get a valid GitHub App API token meant for cloning code or interacting
with GitHub APIs.
- getToken() - Method in GitHubGraphQL
-
Retrieves the token used to authenticate with GitHub.
- getToken() - Method in ReadonlyTokenCredential
-
When implemented, this method should return a String that is a token to
be used in API service authentication in Jervis remotes.
- getToken() - Method in TokenCredential
-
When implemented, this method should return a String that is a token to
be used in API service authentication in Jervis remotes.
- getToken() - Method in VaultAppRoleCredential
-
This will lease a new token via AppRole and return the leased token.
- getVault_url() - Method in VaultAppRoleCredential
-
Returns the Vault URL.
- getVault_url() - Method in VaultCredential
-
When implemented, this method should return a String that is the URL to
a HashiCorp Vault instance API endpoint.
- getWebUrl() - Method in GitHub
-
- getWebUrl() - Method in JervisRemote
-
A web interface to browse repository code.
- getYaml() - Method in PipelineGenerator
-
Get Jervis YAML from the pipeline generator.
- GitHub - Class in net.gleske.jervis.remotes
A simple class to interact with the GitHub v3 API for only the parts I need.
- GitHubAppCredential - Class in net.gleske.jervis.remotes.creds
Provides GitHub App Credential for API authentication.
- GitHubAppCredential(GitHubAppRsaCredential, EphemeralTokenCredential) - Constructor in GitHubAppCredential
-
Creates a new instance of a
GitHubAppCredential meant to serve
as an easy to use credential in API clients such as
GitHubGraphQL
and
GitHub.
- GitHubAppException - Class in net.gleske.jervis.exceptions
A group of exceptions that are thrown when
net.gleske.jervis.remotes.GitHubAppCredential issues occur.
- GitHubAppException(String) - Constructor in GitHubAppException
-
Throw a GitHubAppException.
- GitHubAppRsaCredential - Interface in net.gleske.jervis.remotes.interfaces
Provides a high level interface for providing GitHub App credentials.
- GitHubAppRsaCredentialImpl - Class in net.gleske.jervis.remotes.creds
- GitHubAppRsaCredentialImpl(String, Closure, String) - Constructor in GitHubAppRsaCredentialImpl
-
Instantiates an RSA credential for a GitHub App used to generate API
tokens.
- GitHubGraphQL - Class in net.gleske.jervis.remotes
A simple class to interact with the GitHub v4 GraphQL API.
- leftShift(def) - Method in CipherMap
-
Load or append to this object enciphered text.
- LifecycleBadValueInKeyException - Class in net.gleske.jervis.exceptions
- LifecycleBadValueInKeyException(String) - Constructor in LifecycleBadValueInKeyException
-
Throw an exception for a bad value in a key.
- LifecycleGenerator - Class in net.gleske.jervis.lang
Generates the build scripts from the Jervis YAML.
- LifecycleInfiniteLoopException - Class in net.gleske.jervis.exceptions
- LifecycleInfiniteLoopException(String) - Constructor in LifecycleInfiniteLoopException
-
Throw an exception when lifecycle keys reference in an infinite loop.
- LifecycleMissingKeyException - Class in net.gleske.jervis.exceptions
- LifecycleMissingKeyException(String) - Constructor in LifecycleMissingKeyException
-
Throw an exception when lifecycles file key is referenced but missing.
- LIFECYCLES_SPEC - Field in WikiPages
-
- LifecycleValidationException - Class in net.gleske.jervis.exceptions
A group of exceptions that are thrown when validation errors occur in the
lifecycles file.
- LifecycleValidationException(String) - Constructor in LifecycleValidationException
-
Throw a LifecycleValidationException.
- LifecycleValidator - Class in net.gleske.jervis.lang
Validates the contents of a
lifecycle file
and provides quick access to supported languages.
- listPath(String) - Method in VaultService
-
List a path in Vault to find KV secret entries.
- loadLifecycles(String) - Method in LifecycleGenerator
-
Load a lifecycles file so that default scripts can be generated.
- loadLifecyclesString(String) - Method in LifecycleGenerator
-
Load a lifecycles YAML String so that default scripts can be generated.
- loadPlatforms(String) - Method in LifecycleGenerator
-
Load a platforms file so that advanced labels can be generated for multiple
platforms.
- loadPlatformsString(String) - Method in LifecycleGenerator
-
Load a platforms YAML String so that advanced labels can be generated
for multiple platforms.
- loadToolchains(String) - Method in LifecycleGenerator
-
Load a toolchains file so that default scripts can be generated.
- loadToolchainsString(String) - Method in LifecycleGenerator
-
Load a toolchains YAML String so that default scripts can be generated.
- loadYamlFile(String) - Method in LifecycleValidator
-
Load the YAML of a lifecycles file and parse it.
- loadYamlFile(String) - Method in PlatformValidator
-
Load the YAML of a platforms file and parse it.
- loadYamlFile(String) - Method in ToolchainValidator
-
Load the YAML of a toolchains file and parse it.
- loadYamlFrom(File) - Method in YamlOperator
-
Given a file, this will load YAML from a File and return a Java object
consisting of standard classes.
- loadYamlString(String) - Method in LifecycleGenerator
-
Load Jervis YAML to be interpreted.
- loadYamlString(String) - Method in LifecycleValidator
-
Parse the YAML which is the contents of a lifecycles file.
- loadYamlString(String) - Method in PlatformValidator
-
Parse the YAML which is the contents of a platforms file.
- loadYamlString(String) - Method in ToolchainValidator
-
Parse the YAML which is the contents of a toolchains file.
- LockableFile - Class in net.gleske.jervis.tools
Provides extensions to
File for exclusive file
locking to guarantee serialized access to the
File via
FileLock.
- LockableFile(String) - Constructor in LockableFile
-
Same as a
File with extra functionality for
creating exclusive locks on the
File via
FileLock.
- lookupToken() - Method in VaultAppRoleCredential
-
Performs a lookup of the currently leased token and returns the response
from Vault.
- SECURE_SECRETS - Field in WikiPages
-
- SecurityException - Class in net.gleske.jervis.exceptions
A group of exceptions that are thrown when security issues occur.
- SecurityException(String) - Constructor in SecurityException
-
Throw a SecurityException.
- SecurityIO - Class in net.gleske.jervis.tools
A class to provide cryptographic features to Jervis such as RSA encryption and base64 encoding.
- SecurityIO(String) - Constructor in SecurityIO
-
Instantiates the class and configures a private key for decryption.
- sendGQL(String, Map, String, Map) - Method in GitHubGraphQL
-
A method for calling the GitHub v4 GraphQL API with a GraphQL query and
variables.
- setApprole_mount(String) - Method in VaultAppRoleCredential
-
Sets the approle_mount property and trims leading or trailing slash.
- setCacheFile(String) - Method in EphemeralTokenCache
-
Set cache file location when the cache is saved to local disk.
- setCacheLockFile(String) - Method in EphemeralTokenCache
-
Set cache lock file location when the cache is saved to local disk.
- setCollect_settings_defaults(Map) - Method in PipelineGenerator
-
- setCredential(TokenCredential) - Method in GitHub
-
- setExpiration(String) - Method in EphemeralTokenCache
-
Sets the expiration for a given token.
- setExpiration(String) - Method in EphemeralTokenCredential
-
Sets when an ephemeral token will expire.
- setFilters(def) - Method in FilterByContext
-
Sets a filter to be evaluated against a context.
- setFolder_listing(List) - Method in LifecycleGenerator
-
- setGh_api(String) - Method in GitHub
-
- setGh_clone(String) - Method in GitHub
-
- setGh_token(String) - Method in GitHub
-
Sets the token to be used by GitHub.
- setGh_web(String) - Method in GitHub
-
- setHash(String) - Method in GitHubAppCredential
-
This method will throw an exception because the hash calculation is
dynamic and must not be set.
- setKey_pair(String) - Method in SecurityIO
-
- setLabel_stability(String) - Method in LifecycleGenerator
-
- setLabel_sudo(String) - Method in LifecycleGenerator
-
- setLockWaitSleep(Integer) - Method in LockableFile
-
- setMountVersions(Map) - Method in VaultService
-
Forces a specified secrets engine mount to be KV v1 or KV v2.
- setOwner(String) - Method in GitHubAppRsaCredentialImpl
-
Sets the owner.
- setPlainMap(Map) - Method in CipherMap
-
Encrypts the object and stores it for later retrieval as enciphered text.
- setPrivateKey(String) - Method in LifecycleGenerator
-
Load an RSA private key in-memory rather than depending on a file
existing on disk.
- setRenew_buffer(Long) - Method in EphemeralTokenCache
-
Sets a renew buffer.
- setResolvePrivateKey(Closure) - Method in GitHubAppRsaCredentialImpl
-
Setter for custom closure meant for private key lookup.
- setRsaCredential(GitHubAppRsaCredential) - Method in GitHubAppCredential
-
Sets the RSA credential used for authentication.
- setScope(Map) - Method in GitHubAppCredential
-
Sets the scope for issuing tokens.
- setSecret(String, Map, Boolean) - Method in VaultService
-
Writes a secret to Vault KV v1 or KV v2 secrets engine.
- setStashmap_preprocessor(Map) - Method in PipelineGenerator
-
- setToken(String) - Method in GitHubGraphQL
-
Sets the token to be used by GitHub.
- setToken(String) - Method in ReadonlyTokenCredential
-
Implemented to do nothing.
- setToken(String) - Method in TokenCredential
-
When implemented, this method should set the value of the token in a
credential service.
- sha256Sum(byte[]) - Method in SecurityIO
-
Calculates SHA-256 sum from a byte-array.
- signRS256Base64Url(String) - Method in SecurityIO
-
Creates a URL safe base64 string of a signature using algorithm RS256.
- SimpleRestService - Class in net.gleske.jervis.remotes
A simple class which makes using REST services like the GitHub API really
easy.
- SimpleRestServiceSupport - Trait in net.gleske.jervis.remotes
REST service classes can derive some default implementation from this trait.
- SupportDocumentationGenerator - Class in net.gleske.jervis.beta
This is a utility class for Jervis admins to generate documentation on the
fly for their specific environment.
- SupportDocumentationGenerator(Map) - Constructor in SupportDocumentationGenerator
-
- SUPPORTED_LANGUAGES - Field in WikiPages
-
- SUPPORTED_TOOLS - Field in WikiPages
-
- supportedLanguage(String) - Method in LifecycleValidator
-
Checks to see if a language is a supported language based on the lifecycles file.
- supportedLanguage(String) - Method in ToolchainValidator
-
Checks to see if a language is a supported language based on the toolchains file.
- supportedMatrix(String, String) - Method in ToolchainValidator
-
Checks to see if a toolchain is a supported build matrix based on a specific language.
- supportedTool(String, String) - Method in ToolchainValidator
-
Check to see if a given tool is supported in the toolchain.
- supportedToolchain(String) - Method in ToolchainValidator
-
Checks to see if a value is a supported toolchain based on the toolchains file.