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
Reference: StackOverflow – How do I deploy a file to Artifactory using the command line
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 →
With Jenkins, we can setup downstream projects under the post-build action section in the project configuration page. This is very useful for setting up pipeline for Continuous Integration/Delivery.
Continue reading Jenkins – Conditional post-build action →
I try to checkout a project on Subversion through the SVN+SSH protocol in Jenkins. It prompts for the credentials as follow.
Continue reading Jenkins – NullPointerException when setting up the SVN+SSH Authentication →
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 →
The need of management is always true everywhere — a company, an application as well as yourself. As a programmer. i have been involved in some messy IT projects which have no management at all. Actually this is very common in HK where local companies only want you to complete the tasks before deadline. In such a busy city, seems that quality means nothing and changes come everyday.
Continue reading Maven + SVN + CruiseControl @ 1 →