Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions Jenkinsfile

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Sample
# S4-projects

![del](https://user-images.githubusercontent.com/96950933/216551396-58ffa498-0148-4a61-97ac-74aaeb0bd115.png)
25 changes: 25 additions & 0 deletions weather-app/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pipeline {
agent any

stages {
stage('Checkout SCM') {
steps {
// Your checkout steps here
}
}
stage('SonarQube analysis') {
steps {
script {
def scannerHome = tool name: 'SonarQube Scanner', type: 'hudson.plugins.sonar.SonarRunnerInstallation'
// Use the scannerHome in the subsequent steps
withSonarQubeEnv('http://localhost:9000/') {
sh "${scannerHome}/bin/sonar-scanner"
}
}
}
}
// Add more stages as needed
}

// Post-build actions and other pipeline settings
}
6 changes: 6 additions & 0 deletions weather-app/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonar.host.url=https://sonarqube.ektechsoftwaresolution.com/
sonar.projectKey=s4stephane-weatherapp
sonar.projectName=4stephane-weatherapp
sonar.projectVersion=1.0.0
sonar.sources=.
qualitygate.wait=true