Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSL for "Deploy artifacts to Artifactory" post-build action #57

Closed
idletekz opened this issue Nov 2, 2016 · 2 comments
Closed

DSL for "Deploy artifacts to Artifactory" post-build action #57

idletekz opened this issue Nov 2, 2016 · 2 comments

Comments

@idletekz
Copy link

idletekz commented Nov 2, 2016

Is there a pipeline DSL method for "Deploy artifacts to Artifactory" with maven build on version 2.7.2? I see that we can build and publish build info, but there doesn't seem to be a way to deploy the artifact using the artifactoryMaven.deployer information.

Is this currently available in the plugin for pipeline or is the uploadSpec the only method available at the moment?

@romangurevitch
Copy link
Contributor

@idletekz,
In this example you can see we are setting the deployer settings that include:
releaseRepo, snapshotRepo and Artifactory server.

By executing the 'run' command with 'clean install' goal you are building and publishing the artifacts to Artifactory according to the above settings.
All the build information is stored in the buildInfo variable that later published as well to Artifactory.

@idletekz
Copy link
Author

idletekz commented Nov 2, 2016

@romangurevitch ahh didnt' realize it was build into maven run dsl. i took a closer look @ the build log and it was skipping deployment due to include/exclude pattern. I updated the pattern per wiki and now it's working. ty for quick reply.

@idletekz idletekz closed this as completed Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants