-
Notifications
You must be signed in to change notification settings - Fork 16
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
How does the plugin get configuration information from the JFrog CLI? #47
Comments
@prestontim, If you could provide more details about your goal, I could offer you a more precise answer. |
@yahavi, What I'm trying to accomplish is to update an existing in-house plugin that needs access to what the Artifactory plugin is using for the deployment repository. In the past (on Jenkins), we'd configured this via a custom project property ( On Github, we're using the JFrog CLI for this configuration (line 106 in the original screenshot), so I'm unsure how I can get access to this information. Hopefully that makes a little more sense. |
@prestontim From the provided screenshot, it appears that you're attempting to establish the deployment repository, distinguishing between snapshot and release. The plugin's code already handles the decision-making process for deploying to either repository, depending on the deployment path. For instance, if the path contains "-SNAPSHOT," the deployment is directed to the snapshot repository. You can check the implementation here: PublicationUtils.java#L406. That being said, there's still a bit of fine-tuning needed before we can roll out this feature completely. You can take a look at the necessary adjustments here: yahavi@2bb4235. Example: publish {
repository {
releaseRepoKey = 'libs-release-local'
snapshotRepoKey = 'libs-snapshot-local'
}
} If we were to implement this feature, would it fulfill your requirements? |
@prestontim |
How can we help?
I have a question about the JFrog CLI in respect to how it's integrated with Gradle. When I'm executing a GitHub Action, I am running the steps shown here:
My question: When I'm executing the "jf gradle" command, do I have access inside Gradle (in an extension or something) to what is set via the "--repo-deploy" switch passed to the "jf gradle-config" command? I'm trying to get access to this information for an in-house plugin that I'm currently working on.
I've launched both the JFrog CLI and Gradle with debug logging and nothing is really jumping out at me.
Thanks for your time!
The text was updated successfully, but these errors were encountered: