Search in sources :

Example 1 with ReleaseNotes

use of org.jfrog.build.extractor.clientConfiguration.client.distribution.types.ReleaseNotes in project build-info by JFrogDev.

the class DistributionManagerTest method createRequestBuilder.

CreateReleaseBundleRequest.Builder createRequestBuilder() throws IOException {
    FileSpec fileSpec = createSpec();
    ReleaseNotes releaseNotes = new ReleaseNotes();
    releaseNotes.setContent("Create content");
    releaseNotes.setSyntax(ReleaseNotes.Syntax.plain_text);
    return new CreateReleaseBundleRequest.Builder(RELEASE_BUNDLE_NAME, RELEASE_BUNDLE_VERSION).description("Create").releaseNotes(releaseNotes).spec(fileSpec);
}
Also used : FileSpec(org.jfrog.filespecs.FileSpec) ReleaseNotes(org.jfrog.build.extractor.clientConfiguration.client.distribution.types.ReleaseNotes) CreateReleaseBundleRequest(org.jfrog.build.extractor.clientConfiguration.client.distribution.request.CreateReleaseBundleRequest)

Example 2 with ReleaseNotes

use of org.jfrog.build.extractor.clientConfiguration.client.distribution.types.ReleaseNotes in project build-info by JFrogDev.

the class DistributionManagerTest method updateRequestBuilder.

UpdateReleaseBundleRequest.Builder updateRequestBuilder() throws IOException {
    FileSpec fileSpec = createSpec();
    ReleaseNotes releaseNotes = new ReleaseNotes();
    releaseNotes.setContent("Update content");
    releaseNotes.setSyntax(ReleaseNotes.Syntax.plain_text);
    return new UpdateReleaseBundleRequest.Builder().description("Update").releaseNotes(releaseNotes).spec(fileSpec);
}
Also used : FileSpec(org.jfrog.filespecs.FileSpec) UpdateReleaseBundleRequest(org.jfrog.build.extractor.clientConfiguration.client.distribution.request.UpdateReleaseBundleRequest) ReleaseNotes(org.jfrog.build.extractor.clientConfiguration.client.distribution.types.ReleaseNotes)

Aggregations

ReleaseNotes (org.jfrog.build.extractor.clientConfiguration.client.distribution.types.ReleaseNotes)2 FileSpec (org.jfrog.filespecs.FileSpec)2 CreateReleaseBundleRequest (org.jfrog.build.extractor.clientConfiguration.client.distribution.request.CreateReleaseBundleRequest)1 UpdateReleaseBundleRequest (org.jfrog.build.extractor.clientConfiguration.client.distribution.request.UpdateReleaseBundleRequest)1