This shows you the differences between two versions of the page.
devops:laboratoare:06 [2022/07/29 13:31] bogdan.croitoru |
devops:laboratoare:06 [2022/07/29 18:35] (current) bogdan.croitoru |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== FINAL PROJECT ===== | ===== FINAL PROJECT ===== | ||
- | 1. (5p) Create a new student<number> branch from the following Git repository: https://gitlab.sschool.ro.thales/bogdan.croitoru/devops-final-project, starting from branch "develop" | + | 1. (5p) Create a new student<number> branch from the following Git repository: https://gitlab.sschool.ro.thales/oana/devops-ss-2022/-/tree/develop, starting from branch develop |
- | 2. (5p) Modify the Jenkinsfile and add a new stage that will execute the "ps -aux" command | + | |
- | Select your term-vm as the running node (also from the Jenkinsfile) | + | |
+ | 2. (5p) Modify the Jenkinsfile and add a new stage that will execute the "ps -aux" command. Select your term-vm as the running node (also from the Jenkinsfile) | ||
+ | |||
3. (5p) Filter out the output of the above command by searching for the Jenkins Java process and redirect it to a "process_details.txt" file | 3. (5p) Filter out the output of the above command by searching for the Jenkins Java process and redirect it to a "process_details.txt" file | ||
<note>You can use a specific command to filter by "home\/jenkins"</note> | <note>You can use a specific command to filter by "home\/jenkins"</note> | ||
+ | |||
+ | |||
4. (5p) Add a post block with "always" option, "archiveArtifacts" to select all the "*.txt" files | 4. (5p) Add a post block with "always" option, "archiveArtifacts" to select all the "*.txt" files | ||
+ | |||
+ | |||
5. (5p) Create a new file in the repo root with the name "exam.sh" | 5. (5p) Create a new file in the repo root with the name "exam.sh" | ||
Add a shebang and print the following text: "I am <NAME> and I will get a nice grade!" | Add a shebang and print the following text: "I am <NAME> and I will get a nice grade!" | ||
Line 30: | Line 37: | ||
<note tip>Hint: **-it** for running docker containers will block the terminal. Before you use it in Jenkins make sure if you actually need it.</note> | <note tip>Hint: **-it** for running docker containers will block the terminal. Before you use it in Jenkins make sure if you actually need it.</note> | ||
- | 8. (5p) Check the "my.yaml" file in your branch and fix the problems. | + | 8. |
- | (10p) Set the following properties: | + | * (5p) Check the "my.yaml" file in your branch and fix the problems. |
+ | * (10p) Set the following properties: | ||
<note> | <note> | ||
* metadata => name: student<number> | * metadata => name: student<number> | ||
Line 46: | Line 54: | ||
11. (5p) Create a pull request to the "develop" branch | 11. (5p) Create a pull request to the "develop" branch | ||
- | 12. (5p) Complete feedback form | + | 12. (5p) Complete feedback form, located here: https://forms.gle/Jwp9RoaBUHSYJ4uv5 |