Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Jenkins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NGOUYAMSA NDAM Ousmane
Jenkins
Merge requests
!1
Correction
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Open
Correction
correction
into
master
Overview
0
Commits
3
Pipelines
0
Changes
1
Open
SEBASTIA Yannick
requested to merge
correction
into
master
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Le pipeline a fonctionné du premier coup. J'ai juste mis en commentaire :
la partie checkout vers svm-manager qui est inutile en utilisant le dépôt Gitlab directement
la partie écriture dans le registre privé pour m'éviter un nettoyage ultérieur sur mon registre privé :)
0
0
Merge request reports
Compare
master
master (HEAD)
and
latest version
latest version
092ca895
3 commits,
2 years ago
1 file
+
18
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Jenkinsfile
+
18
−
17
View file @ 4bd82721
Edit in single-file editor
Open in Web IDE
Show full file
@@ -2,18 +2,18 @@ pipeline {
agent
any
stages
{
// Liaison du pipeline au dépot scmmanager
stage
(
'link'
)
{
agent
any
steps
{
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
'*/master'
]],
extensions:
[],
userRemoteConfigs:
[[
credentialsId:
'scmadmin'
,
url:
'http://scm:8080/scm/repo/scmadmin/test/code/sources/master/'
]]])
sh
'ls -l'
}
}
//
stage ('link') {
//
agent any
//
steps{
//
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'scmadmin', url: 'http://scm:8080/scm/repo/scmadmin/test/code/sources/master/']]])
//
sh 'ls -l'
//
}
//
//
}
// Analyse statique du Dockerfile de test
stage
(
'Test'
)
{
parallel
{
stage
(
'Test Dockerfile'
)
{
agent
{
docker
{
@@ -46,9 +46,9 @@ pipeline {
recordIssues
(
tools:
[
flake8
(
pattern:
'flake8_output.txt'
)])
sh
'rm flake8_output.txt'
}
}
// Exécution tes tests unitaires
// Exécution tes tests unitaires
stage
(
'tests unitaires'
)
{
agent
{
dockerfile
{
@@ -73,17 +73,18 @@ pipeline {
}
}
// Build et Déploiement de l'image de livraison sur le dépôt scm
stage
(
'Deploy'
)
{
agent
any
steps
{
script
{
docker
.
withRegistry
(
'http://localhost:5000'
)
{
docker
.
build
(
"test:${env.BUILD_ID}"
,
"./app"
).
push
()
}
docker
.
build
(
"test:${env.BUILD_ID}"
,
"./app"
)
// docker.withRegistry('http://localhost:5000') {
// docker.build("test:${env.BUILD_ID}", "./app").push()
// }
}
}
}
}
}
\ No newline at end of file
}
Loading