File tree Expand file tree Collapse file tree
artifactory_tests/test_runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434done
3535echo " Artifactory ready after license activation!"
3636
37+ # Verify the Conan API is actually responding (not just the generic ping).
38+ # Creates a temp Conan repo, polls until auth works (not 503), then deletes it.
39+ curl -s -u" $ARTIFACTORY_USER :$ARTIFACTORY_PASSWORD " -XPUT " $ARTIFACTORY_DEFAULT_URL /api/repositories/conan-readiness-probe" \
40+ -H " Content-Type: application/json" \
41+ -d ' {"rclass":"local","packageType":"conan","repoLayoutRef":"conan-default"}' > /dev/null
42+
43+ until [ " $( curl -s -o /dev/null -w ' %{http_code}' \
44+ -u" $ARTIFACTORY_USER :$ARTIFACTORY_PASSWORD " \
45+ " $ARTIFACTORY_DEFAULT_URL /api/conan/conan-readiness-probe/v2/users/authenticate" ) " != " 503" ]
46+ do
47+ echo " Conan API not ready yet... waiting"
48+ sleep 4
49+ done
50+ echo " Conan API is ready!"
51+
52+ curl -s -u" $ARTIFACTORY_USER :$ARTIFACTORY_PASSWORD " -XDELETE " $ARTIFACTORY_DEFAULT_URL /api/repositories/conan-readiness-probe" > /dev/null
53+
3754# Clone Conan repository
3855echo " Cloning Conan repository..."
3956git clone " $CONAN_GIT_REPO " conan_sources
You can’t perform that action at this time.
0 commit comments