Closed colathurv closed 3 years ago
Hi @colathurv , Thanks a lot for your feedback.
https://oss.jfrog.org/artifactory/jfrog-dependencies
, jcenter
, etc). The libs-release
repository is usually created if the user creates the default repositories but I agree using a placeholder there will be clearer and easier to change.$$$
will be a bit problematic. Do you think we could make them stand out with more comments in the pipeline or perhaps a README attached to the example?I created #260 following your feedback, please let me know what you think. Thanks
@colathurv, I'm closing this issue for now. Please let us know if you think we should add anything else. Also, feel free to contribute additions or ahcnges to the examples.
After working with https://github.com/jfrog/project-examples/blob/master/jenkins-examples/pipeline-examples/scripted-examples/maven-example/Jenkinsfile, I was hitting the following error:
org.codehaus.plexus.classworlds.launcher.Launcher -f maven-example/pom.xml clean install Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
I modified it to do the following. I have enunciated the placeholders using a string that anchors $$$
`node { //The value of Maven Tool Configuration should come from Global Tool configuration. It could be M3 def server = Artifactory.server "$$$NAME_OF_ARTFY_CONFIGURATION $$$" def rtMaven = Artifactory.newMavenBuild() def buildInfo
}`
Two differences from what you have and my script:
Otherwise this example you have come up with is outstanding in terms of how it demonstrates pushing a maven artifact to Artoifactory.