Open gmkavuna opened 2 years ago
A parameterized job accepts a parameter. This makes it possible to generate output that varies based on the input passed in as a parameter. A parameter can be leveraged for instance when we need to toggle between different Jenkins file - for development and non-development environments for instance.
A workspace is a working directory that lodges code, builds, and other temp files during build.
A build trigger is the event that causes a job to execute. This could be a scheduler/cron or a commit on github, etc.
Theory
Practice
In video 2.4 you saw how to pull code from a GitHub repository. Instead of pulling code from this companion GitHub repository, open a GitHub account (if you don't have one already), create a new repository, and upload a shell or a batch script. Then configure a new Jenkins job to pull code from your repository and run the build.
In case you are already familiar with build tools such as ant, maven, or gradle, write a script with these tools and invoke the relevant script when choosing the build step.