Commit ad506f44 authored by coconux's avatar coconux
Browse files

Add section to describe how to use several times the same jobs in the pipeline

parent ae0485e2
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -195,4 +195,35 @@ nmap:
      alias: app
```


### 🎶 Multiple usage of the same job in your pipeline


If you want to reuse a job on the hub, for example launching `mkdocs` to build in the same pipeline:

1. 👩🏽‍💻  A technical documentation for your development team
2. 👥  A user documentation for the end-users

You can easily do so with Hub's jobs using `extends` GitLab keyword.

```yaml
# Build the technical documentation
mkdocs:
  artifacts:
    paths:
      - "website_build/technical-documentation"

# Build the end-users documentation
mkdocs_user_documentation:
  extends: mkdocs
  artifacts:
    paths:
      - "website_build/end-users-documentation"

```

!!! warning
    * Be aware to have different artifacts path not to overwrite your first artifact by the second one.


--8<-- "includes/abbreviations.md"
+1 −2
Original line number Diff line number Diff line
@@ -14,8 +14,7 @@ A job is a script hosted in R2Devops Hub that can be included in CI/CD pipeline


*[CI]:
Continuous integration is a coding philosophy and set of practices that drive development teams to implement small changes and check in code to version control repositories frequently.
This will ensure that your application meets your criteria of quality, security, performance, after each modification of your code.
Continuous integration is a coding philosophy and set of practices that drive development teams to implement small changes and check in code to version control repositories frequently. This will ensure that your application meets your criteria of quality, security, performance, after each modification of your code.

*[CD]:
Continuous delivery starts where continuous integration ends. CD philosophy is to automate the delivery of applications to the selected infrastructure environments.