In this activity we will build a project that requires parameters. We will be taking one of the projects that we previously have created and updating it to accept a string parameter. This is important to understand as it is one method used to inject a build time variable into a project.
Successfully complete this lab by achieving the following learning objectives:
- Create the webdev folder and index freestyle project
On the dash board create a new item named webdev make it a folder.
Inside of webdev make a freestyle project named index.
- Configure the index project to accept the name Steve
In the index project click this build requires parameters.
Add a string parameter called name, the value should be steve
Add the git repo
add the maven server M3
add the shell command to make the bin/makeindex
Make a post build action to archive the artifact.
check the artifat to ensure that it says hello steve.