Skip to content
Snippets Groups Projects
Commit 17971ddb authored by Sviatoslav Nekhaienko's avatar Sviatoslav Nekhaienko
Browse files

Update gke-indexer-cicd.yml for Azure Pipelines

parent 8b307fc5
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -25,6 +25,8 @@ variables:
coreModule: indexer-core
gcpModule: indexer-gcp
integrationTestCorePom: testing/indexer-test-core/pom.xml
integrationTestGcpPom: testing/indexer-test-gcp/pom.xml
steps:
- task: DownloadSecureFile@1
......@@ -74,4 +76,37 @@ steps:
kubectl --kubeconfig $(kuberConfig.secureFilePath) apply -f $(deploymentFile)
popd
attempt_counter=0
max_attempts=60
until [[ $(curl --head --write-out %{http_code} $(INDEXER_READINESS_URL) --silent -o /dev/null --fail) -eq 200 ]]; do
if [ ${attempt_counter} -eq ${max_attempts} ];then
echo "Service is not available, integraton tests are skipped"
exit 1
fi
printf '.'
attempt_counter=$(($attempt_counter+1))
sleep 2
done
- task: Maven@3
inputs:
mavenPomFile: '$(integrationTestCorePom)'
options: '--settings $(mavenSettings) -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) install'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
- task: Maven@3
inputs:
mavenPomFile: '$(integrationTestGcpPom)'
options: '--settings $(mavenSettings) -Dsurefire.useFile=false -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) compile'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment