Skip to content
Snippets Groups Projects

Correction

Open SEBASTIA Yannick requested to merge correction into master
1 file
+ 18
17
Compare changes
  • Side-by-side
  • Inline
+ 18
17
@@ -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