871 B
871 B
Exercise 3
In this exercise, you will configure the job to build based on a cron definition. Moreover, you will create downstream job that should be built automatically if the upstream job is successful.
Configuring Build Triggers and Steps for a Job
- Add a default value for the build parameter named
MESSAGEe.g.Hello World!. - Create a build trigger that builds the project every minute.
- Add a build step that executes the shell command
echo "Message: $MESSAGE". The message is value of the parameter. On Windows, you have to execute a Windows batch command. - After a minute the first execution should have been triggered. Check the log output of the build and find the rendered message.
- Create another freestyle project named
downstream-jobin the same folder. - Configure the initial job to execute the
downstream-jobif it was stable.