Update task.md
This commit is contained in:
parent
4d9e915b9d
commit
a10a9c61ba
1 changed files with 11 additions and 14 deletions
25
task.md
25
task.md
|
|
@ -1,18 +1,15 @@
|
||||||
Task: Create a Jenkins Pipeline for a Python Project use env variables
|
# Task: Create a Jenkins Pipeline for a Python Project use env variables
|
||||||
|
|
||||||
Scenario:
|
## Scenario:
|
||||||
Please set up a Jenkins pipeline named python-pipeline to integrate with a Git repository that contains a sample project, such as a Python application. Ensure that the Jenkins SCM plugin is installed and configure the necessary parameters, including BRANCH_NAME and RUN_TESTS. Additionally, enable a webhook in the Git repository to trigger the build and test pipeline from SCM. The pipeline should be configured to perform the following steps:
|
Please set up a Jenkins pipeline named python-pipeline to integrate with a Git repository that contains a sample project, such as a Python application. Ensure that the Jenkins SCM plugin is installed and configure the necessary parameters, including BRANCH_NAME and RUN_TESTS. Additionally, enable a webhook in the Git repository to trigger the build and test pipeline from SCM. The pipeline should be configured to perform the following steps:
|
||||||
|
|
||||||
Checkout the specified branch.
|
1. Checkout the specified branch.
|
||||||
Install dependencies.
|
2. Install dependencies.
|
||||||
Run tests based on the RUN_TESTS parameter.
|
3. Run tests based on the RUN_TESTS parameter.
|
||||||
Build or package the project.
|
4. Build or package the project.
|
||||||
|
|
||||||
NOTE:
|
## NOTE:
|
||||||
The repository has already been cloned to the directory /root/python-app.
|
1. The repository has already been cloned to the directory /root/python-app.
|
||||||
|
2. The links for Jenkins and the code repository can be found in the top right corner.
|
||||||
The links for Jenkins and the code repository can be found in the top right corner.
|
3. The app will stay running for 60 seconds, but as soon as that time is up, Jenkins finishes the pipeline, and the app stops.
|
||||||
|
4. You can modify the timeout command to change timer.
|
||||||
The app will stay running for 60 seconds, but as soon as that time is up, Jenkins finishes the pipeline, and the app stops.
|
|
||||||
|
|
||||||
You can modify the timeout command to change timer.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue