This Pipelines Task performs a Maven project build on files in a Git repository.
This task performs the following:
Performs Maven build from input maven command.
Creates Maven configuration required for jfrog-cli.
This task requires a resource that is has mvn build done and Maven configuration available.
- task: email@example.com id: mvn-build input: gitResourceName: "input_resource_name" # input resource name that needs a Maven build sourceLocation: "" configFileLocation: "/jfrog/" configFileName: "mvn-config" sourceSnapshotRepo: "mvn-local" sourceReleaseRepo: "mvn-release-local"
By default, the task uses
JFROG_CLI_BUILD_NUMBER environment variables when building the build info.
Resource name on which Maven build is to be performed.
Specifies the location of the source files. By default this is set to the root directory of the GitRepo resource. Defaults to the root of the GitRepo.
Specifies the directory containing the JFrog CLI mvn-config file.
Specifies the name of the JFrog CLI mvn-config file.
Artifactory repository to resolve snapshot dependencies. If set, sourceReleaseRepo is also required.
Artifactory repository to resolve release dependencies. If set, sourceSnapshotRepo is also required.
Snapshot artifacts created by the MvnBuild are uploaded to this Artifactory repository. If set, publishReleaseRepo is also required.
Release artifacts created by the MvnBuild are uploaded to this Artifactory repository. If set, deployerSnapshot Repo is also required.
Specifies a command line string of options to use with Maven.
Flag to perform retry on failure.
Exported Environment Variables
How does it work?
This task uses Gradle configuration generated and jfrog cli.
This project is licensed under Apache 2.0 license.