I am sure someone might have faced this and also they might have found a way to do it, since I am new to Jenkins I am creating this JIRA, apologizes if this is already addressed and requesting a direction to accomplish it.
Scenario that I wanted to configure in Jenkins:
I have configured Jenkins and it polls SCM, doing build and generates the WAR file too. However I wanted to automate the deploy and this also I did using deploy plugin but the thing is the deploy is happening every time Jenkins is doing a build, I dont want that to happen I have a specific condition for the deployment only if the user checks in a particular file (release.properties) which hold the build number then only the WAR has to be deployed into the container.
My Question here is, is there any way that Jenkins can detect a specific file whether it has been checked in by the user so that it can build and deploy or otherwise just build the WAR?
Environment:
SCM : SVN
OS : Windows 7/ Red Hat Linux
Container : Tomcat
Build tool : Maven
Appreciate your help on this.
|