Skip to content
Snippets Groups Projects
Commit 044e7f64 authored by MUNIER Florian's avatar MUNIER Florian
Browse files

Merge branch 'master' of gitlab.imt-atlantique.fr:f21munie/project_jenkins_php

parents 05de18a1 3e6d4b1b
No related branches found
No related tags found
No related merge requests found
......@@ -27,14 +27,17 @@ cd project_jenkins_php
```sh
docker run --rm -ti checktva php checktva.php product food 2
```
> OK TVA calculated
- cas où il manque un argument :
```sh
docker run --rm -ti checktva php checktva.php product food
```
> Usage: php checktva.php <NAME> <TYPE> <PRICE>
- cas où il y a une erreur de type :
```sh
docker run --rm -ti checktva php checktva.php product food l
```
> KO TVA not calculated Unsupported operand types: string * float
## Effectuer les tests manuellement
......@@ -71,19 +74,9 @@ http://localhost:8080
- Configuration de l'instance :
- valider
## Créer un projet
- Sélectionner "Nouveau item"
- Saisissez un nom de projet (ex: Project_jenkins_php)
- Sélectionner "Pipeline"
## Installer les plugins du projet
- Allez dans "Tableau de bord"
- Allez dans "Administrer Jenkins"
- Dans le tableau de bord, allez dans "Administrer Jenkins"
- Sélectionner "Gestion des plugins"
......@@ -107,13 +100,21 @@ http://localhost:8080
- S'identifier
## Lancer le pipeline
## Créer un projet
- Sélectionner votre projet
- Sélectionner "Tableau de bord"
- Sélectionner "Configurer"
- Sélectionner "Nouveau item"
- Saisissez un nom de projet (ex: Project_jenkins_php)
- Sélectionner "Pipeline"
- Valider
## Lancer le pipeline
- Dans le projet, sélectionner "Pipeline"
- dans "Définition", choisir "Pipeline script from SCM"
- dans "SCM", choisir "Git"
- dans "Repository URL", coller le lien du dépôt GitLab (https://gitlab.imt-atlantique.fr/f21munie/project_jenkins_php.git)
......@@ -124,5 +125,27 @@ http://localhost:8080
- vous pouvez le sélectionner pour afficher ses résultats
- vous pouvez visualiser le pipeline graphiquement en sélectionnant "Open Blue Ocean" puis le pipeline exécuté
## Accès à la registry
- Accéder à la registry
```sh
http://localhost:8082/
```
- Sélectionner "checktva"
## Utiliser l'image de livraison
```sh
docker pull localhost:8082/checktva:<TAG>
```
> ex : docker pull localhost:8082/checktva:1
> 1: Pulling from checktva
> Digest: sha256:54e1fce771c2305dce96c1a1aaa7f4ac96f1c4e0e4bed993098541890ad69a71
> Status: Downloaded newer image for localhost:8082/checktva:1
> localhost:8082/checktva:1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment