Tag Archives: Jenkins

Artifactory – Upload artifact through command line

Jenkins works well with Artifactory and the built artifact will be upload to the Artifactory repository automatically.

One day, i found that the artifact is built but it is not uploaded. The Linux server doesn’t have the desktop interface so i couldn’t upload the artifact through browser. An alternative way is to use the curl command to post the artifact to the repository.

curl -X POST <target url> --data <artifact>



curl -X POST http://localhost:8081/artifactory/dev-snapshot-local/eureka-v0.0.1.tar.gz --data eureka-v0.0.1.tar.gz


Done =)

Reference: StackOverflow – How do I deploy a file to Artifactory using the command line

Jenkins – Get the build user name in job config

I would like to get the username who triggered the Jenkins job in the Post build task. At first i thought the Build User Vars Plugin could work but than i realize those variables are only available in the Build process but not the post build action.

Luckily, i found a blog post written by Donald Simpson which help me to solve the problem.

Continue reading Jenkins – Get the build user name in job config

Jenkins – Setup a simple Ant build project

Jenkins, previously named as Hudson, is a continuous integration tool just like CruiseControl. It has been almost 4 years since i started learning Maven which made me fall in love about best practice. Deployment and testing automation is really fun and finally i got a chance to play it again.

In this article, i would show you how to setup a simple Ant build project in Jenkins. Before we start, please refer to the simple Java project example in the post below.


1. Download and install Jenkins.
Continue reading Jenkins – Setup a simple Ant build project