Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 0 additions & 182 deletions Graphs/edmonds_karp_Multiple_SourceAndSink.py

This file was deleted.

37 changes: 37 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
node {
checkout scm
def workspace = pwd()

if (env.BRANCH_NAME == 'master') {
stage('SonarQube analysis') {
// requires SonarQube Scanner 2.8+
def scannerHome = tool 'scan';
withSonarQubeEnv('sonar-server') {
sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=python -Dsonar.sources=. -Dsonar.qualitygate=python-goal -Dsonar.projectVersion=1.0.${BUILD_NUMBER}"
}
}

//perform quality gate step setting the time and retrieving the status from sonar webhook and then pass the QG status
stage("Quality Gate"){
timeout(time: 5, unit: 'MINUTES') {
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
}
}
}

else if (env.BRANCH_NAME == 'dev') {
stage ('Some stage branch step') {
sh 'echo dev'
}
stage ('Deploy to stage target') {
sh 'echo dev 2'
}
}

else {
sh 'echo "Branch not applicable to Jenkins... do nothing"'
}
}
39 changes: 0 additions & 39 deletions graphs/BFS.py

This file was deleted.

36 changes: 0 additions & 36 deletions graphs/DFS.py

This file was deleted.

Loading