diff --git a/jenkins/cd/Jenkinsfile b/jenkins/cd/Jenkinsfile index c0a22eb..84874f2 100644 --- a/jenkins/cd/Jenkinsfile +++ b/jenkins/cd/Jenkinsfile @@ -39,12 +39,21 @@ pipeline { // } } } + + stage('Static Code Analysis') { + steps { + withSonarQubeEnv('cicd') { + sh 'mvn sonar:sonar' + } + } + } + stage('Check Pact Verifications') { steps { sh 'curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.88.3/pact-1.88.3-linux-x86_64.tar.gz' sh 'tar xzf pact-1.88.3-linux-x86_64.tar.gz' dir('pact/bin') { - sh "./pact-broker can-i-deploy --retry-while-unknown=12 --retry-interval=10 -a messaging-app -b httsp://pact.bayhan.ca -e ${GIT_COMMIT}" + sh "./pact-broker can-i-deploy --retry-while-unknown=12 --retry-interval=10 -a messaging-app -b https://pact.bayhan.ca -e ${GIT_COMMIT}" } } }