diff --git a/Jenkinsfile b/Jenkinsfile index 3e93a6e..01f4adf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,12 +32,17 @@ node { } stage("SonarQube Scan"){ - withSonarQubeEnv(credentialsId: 'SonarQubeToken') { + /*withSonarQubeEnv(credentialsId: 'SonarQubeToken') { sh "${sonarscanner}/bin/sonar-scanner" - } - } - - stage("Ansible Deploy"){ - ansiblePlaybook inventory: 'hosts', playbook: 'deploy.yaml' + }*/ } + node("kubernetes"){ + stage("Kubernetes Deploy"){ + sh """ + alias kubectl="minikube kubectl --" + kubectl get pods + kubectl set image deployments/kubernetes-bootcamp kubernetes-bootcamp=$dockerHubUser/$containerName:$tag + """ + } + } }