Open a web browser and go to the following URL:
NOTE Your server name and port number may be different.
Click Manage Jenkins.
Click Configure System.
Click Add JDK.
Enter a name for the JDK, for example: My JDK 1.7
Unselect Install automatically.
Enter your JDK_HOME value, for example: C:\Program Files\Java\jdk1.7.0_45
Click Add Ant.
Enter a name for the Ant installation, for example: My Ant
Unselect Install automatically.
Enter your ANT_HOME value, for example: C:\apache-ant-1.9.2
Click Save.
Click New Job.
Enter a name for this project, for example: Qlarius
Select a project type, for example, Build a free-style software project.
Click OK.
Select the option This build is parameterized.
Optionally add the following parameters:
String Parameter, Name: cmkey
This parameter identifies a build run to a Jenkins Expert in Dimensions CM Pulse. You can configure Jenkins Expert to automatically add cmkey to your Jenkins jobs, if not you must add it manually. For details see the Pulse online help.
String Parameter, Name: repo
String Parameter, Name: changeset
String Parameter, Name: stream
String Parameter, Name: version
If you have more than one installed JDK you may need to select the JDK you created earlier.
In Source Code Management select Dimensions.
In the Project Name box enter the stream name.
NOTE You can also specify "${stream}" if you are using a CM plugin that supports this variable. This makes copying jobs easier and allows a job to be triggered from more than one stream, but ties the job to Serena Pulse.
In the Folder box enter: /
Select Clear the contents of the workspace.
To show all Dimensions fields click Advanced.
Enter your Dimensions CM connection details, for example:
Login Name: dmsys
Password: dmsys_test
Server: myserver
Database: cm_typical@dim12
Select Use Update.
This example is for Ant builds. You may have different build steps that are unique to your build process.
Click Add build step.
Select Invoke Ant.
Select the Ant installation you created earlier.
Click Advanced and enter the location of your build.xml file in the Build File box, for example:
Qlarius Underwriter/build.xml
Click Save.
To test the build job click Build Now.
Enter dummy values for:
key
repo
changeset
stream
Click Build.
Check that the build was successful.