Deploying war file to artifactory from jenkins using grails - grails

I need to deploy war file in to artifactory, i was able to deploy war file to specific repo but i want to deploy it with groupid,version id and artifactID. How do i do the configuration for the GAV's in jenkins to publish the war file artifactory.we dont have pom.xml file.

You could create a pom.xml by using the create-pom target
grails create-pom [group-id]
And then modify the pom.xml according this blog post. Now Jenkins can use Maven to deploy your war file.

Related

Deploying the root pom.xml to artifactory via jenkins?

I'm uploading from jenkins to artifactory and my whole maven project is built with:
mvn clean install
The project has
Result of the Deploy to Artifactory:
How do I get the root pom.xml to the artifactory? I reference this from other project and it does not build because of it. All the other modules are deployed and their POMs as well.
It seems that the reason that it did not work was that I had included an include pattern in the deploy maven artifacts, I removed the ".xml, *.jar" and it deployed correctly.

Uploading nexus artifacts using apache ant

I am using apache ant to build artifacts. Finally, all artifacts will be zipped in one zip file. Jenkins plugin 'Nexus Artifact Uploader' will upload this zip file to nexus repository(version 3.x). However, there are frequent incidents where Jenkins machine/admin were unavailable.
I am able to download nexus artifacts using ant get task. I want to upload artifacts using apache ant.
Please Note: I am not supposed to use maven or curl/wget commands. I am expected to achieve it using apache ant only.

POM not released using Jenkins and Artifactory Release

We're trying to use the Artifactory release process in Jenkins to publish a jar file created by a Gradle build into a Maven repo in our Artifactory server.
It nearly all works, the only issue is that the pom file isn't being copied into the Artifactory repo.
The Gradle build includes the Gradle Maven plugin and running gradlew install locally results in both the jar and the pom inserted into the local Maven repo.
I've added a task in the Gradle build that generates the pom file in the same directory as the jar file and changed the Jenkins build to run that task too.
When the build has completed I can see both the jar and the pom file in the workspace.
Any ideas on what I need to do to get the pom file published along with the jar?
We're using:
Jenkins 2.10
Artifactory plugin 2.4.4
Gradle 2.14
The Gradle build file does not inlcude the Gradle Artifactory plugin.
Cheers, Andy
The Jenkins project is configured to use the Gradle-Artifactory integration (rather than the Generic-Artifactory integration).
As suggested by Dakota Brown I'm answering my own question, the solution to my problem was to un-tick the maven3 integration option. With that option unslected, everything works as expected.

Can tomcat7 maven plugin used in to configure Tomcat8 Server - Tomcat Maven Plugin

I am using JAVA 1.8 and Maven_3.3.9.
Trying to automatically deploy the war file to the Tomcat8 using maven plugin.
Can I use tomcat7 plugin to run and deploy war file with using TOMCAT 8 Server.
If you can share any pom.xml with following best practice of structuring, It can help me to steady my basics.
Do I need to change any value in Settings.xml or pom.xml for generating and deploying the war file Properly ?

Gradle, Exclude an Artifact When Uploading to Artifactory

I have a Gradle build that runs in Jenkins and Deploys to Artifactory using the Artifactory plugin for Jenkins. I am uploading a tar.gz file to Artifactory. The plugin is uploading the tar.gz correctly, but it is also uploading a jar.
How can I exclude the jar so that it is not deployed to Artifactory?
build.gradle (artifacts section)
artifacts {
archives tar
}
If you don't need a jar, maybe you shouldn't use the 'java' plugin?
Take a look at various base plugins, one of them might be a better match.

Resources