Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fa94d7

Browse files
added validation script
1 parent5a5f47c commit9fa94d7

File tree

2 files changed

+289
-0
lines changed

2 files changed

+289
-0
lines changed

‎validate/check.sh‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
BASE_URL="${BASE_URL:-http://localhost:3131}"
3+
4+
ERRORS=0
5+
6+
forpathin$(grep ^/ paths_to_check.txt)
7+
do
8+
url="$BASE_URL$path"
9+
echo -n"Checking$url ..."
10+
11+
STATUS_CODE=$(curl \
12+
--output /dev/null \
13+
--silent \
14+
--head \
15+
--write-out"%{http_code}" \
16+
"$url")
17+
18+
if(( STATUS_CODE==200))
19+
then
20+
echo"$STATUS_CODE"
21+
else
22+
echo -e"\033[0;31m$STATUS_CODE !!!\033[m"
23+
ERRORS=$(( ERRORS+1))
24+
fi
25+
done
26+
27+
if(( ERRORS!=0))
28+
then
29+
echo -e"\033[0;31m!!!$ERRORS Errors found when checking URLs!\033[m"
30+
exit 1
31+
fi

‎validate/paths_to_check.txt‎

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
# Page used by customers in automation
2+
/docs/administration/cf-ip4.txt
3+
4+
# Rest of pages
5+
/docs/administration/access-control/
6+
/docs/administration/audit-logs/
7+
/docs/administration/behind-the-firewall/
8+
/docs/administration/codefresh-hybrid/
9+
/docs/administration/codefresh-on-prem-upgrade/
10+
/docs/administration/codefresh-on-prem/
11+
/docs/administration/codefresh-runner/
12+
/docs/administration/installation-security/
13+
/docs/administration/invite-your-team-member/
14+
/docs/administration/pipeline-execution-context/
15+
/docs/administration/pipeline-settings/
16+
/docs/administration/platform-ip-addresses/
17+
/docs/administration/user-settings/
18+
/docs/ci-cd-guides/building-docker-images/
19+
/docs/ci-cd-guides/environment-deployments/
20+
/docs/ci-cd-guides/gitops-deployments/
21+
/docs/ci-cd-guides/microservices/
22+
/docs/ci-cd-guides/packaging-compilation/
23+
/docs/ci-cd-guides/preview-environments/
24+
/docs/ci-cd-guides/progressive-delivery/
25+
/docs/ci-cd-guides/pull-request-branches/
26+
/docs/ci-cd-guides/working-with-docker-registries/
27+
/docs/codefresh-yaml/advanced-workflows/
28+
/docs/codefresh-yaml/annotations/
29+
/docs/codefresh-yaml/condition-expression-syntax/
30+
/docs/codefresh-yaml/conditional-execution-of-steps/
31+
/docs/codefresh-yaml/deployment-environments/
32+
/docs/codefresh-yaml/docker-image-metadata/
33+
/docs/codefresh-yaml/hooks/
34+
/docs/codefresh-yaml/post-step-operations/
35+
/docs/codefresh-yaml/service-containers/
36+
/docs/codefresh-yaml/stages/
37+
/docs/codefresh-yaml/steps/
38+
/docs/codefresh-yaml/steps/approval/
39+
/docs/codefresh-yaml/steps/build/
40+
/docs/codefresh-yaml/steps/composition/
41+
/docs/codefresh-yaml/steps/deploy/
42+
/docs/codefresh-yaml/steps/freestyle/
43+
/docs/codefresh-yaml/steps/git-clone/
44+
/docs/codefresh-yaml/steps/launch-composition/
45+
/docs/codefresh-yaml/steps/push/
46+
/docs/codefresh-yaml/variables/
47+
/docs/codefresh-yaml/what-is-the-codefresh-yaml/
48+
/docs/configure-ci-cd-pipeline/build-status/
49+
/docs/configure-ci-cd-pipeline/debugging-pipelines/
50+
/docs/configure-ci-cd-pipeline/introduction-to-codefresh-pipelines/
51+
/docs/configure-ci-cd-pipeline/monitoring-pipelines/
52+
/docs/configure-ci-cd-pipeline/pipeline-caching/
53+
/docs/configure-ci-cd-pipeline/pipelines/
54+
/docs/configure-ci-cd-pipeline/running-pipelines-locally/
55+
/docs/configure-ci-cd-pipeline/secrets-store/
56+
/docs/configure-ci-cd-pipeline/shared-configuration/
57+
/docs/configure-ci-cd-pipeline/triggers/
58+
/docs/configure-ci-cd-pipeline/triggers/azure-triggers/
59+
/docs/configure-ci-cd-pipeline/triggers/cron-triggers/
60+
/docs/configure-ci-cd-pipeline/triggers/dockerhub-triggers/
61+
/docs/configure-ci-cd-pipeline/triggers/git-triggers/
62+
/docs/configure-ci-cd-pipeline/triggers/helm-triggers/
63+
/docs/configure-ci-cd-pipeline/triggers/jfrog-triggers/
64+
/docs/configure-ci-cd-pipeline/triggers/quay-triggers/
65+
/docs/deploy-to-kubernetes/access-docker-registry-from-kubernetes/
66+
/docs/deploy-to-kubernetes/add-config-maps-to-your-namespaces/
67+
/docs/deploy-to-kubernetes/add-kubernetes-cluster/
68+
/docs/deploy-to-kubernetes/custom-kubectl-commands/
69+
/docs/deploy-to-kubernetes/deployment-options-to-kubernetes/
70+
/docs/deploy-to-kubernetes/environment-dashboard/
71+
/docs/deploy-to-kubernetes/codefresh-kubernetes-integration-demochat-example/
72+
/docs/deploy-to-kubernetes/kubernetes-templating/
73+
/docs/deploy-to-kubernetes/manage-kubernetes/
74+
/docs/deploy-to-kubernetes/verify-cluster-tls-ssl-configuration/
75+
/docs/docker-registries/cfcr-deprecation/
76+
/docs/getting-started/create-a-basic-pipeline/
77+
/docs/getting-started/create-a-codefresh-account/
78+
/docs/getting-started/deployment-to-kubernetes-quick-start-guide/
79+
/docs/getting-started/faq/
80+
/docs/getting-started/helm-quick-start-guide/
81+
/docs/getting-started/on-demand-environments/
82+
/docs/how-to-guides/migrating-from-drone-io/
83+
/docs/how-to-guides/migrating-from-travis-ci/
84+
/docs/incubation/arm-support/
85+
/docs/incubation/osx-ios-builds/
86+
/docs/incubation/windows/
87+
/docs/integrations/amazon-web-services/
88+
/docs/integrations/argocd/
89+
/docs/integrations/codecov-integration/
90+
/docs/integrations/codefresh-api/
91+
/docs/integrations/codefresh-hosted-gitops/
92+
/docs/integrations/datadog/
93+
/docs/integrations/docker-registries/
94+
/docs/integrations/docker-registries/amazon-ec2-container-registry/
95+
/docs/integrations/docker-registries/azure-docker-registry/
96+
/docs/integrations/docker-registries/bintray-io/
97+
/docs/integrations/docker-registries/digital-ocean-container-registry/
98+
/docs/integrations/docker-registries/docker-hub/
99+
/docs/integrations/docker-registries/github-container-registry/
100+
/docs/integrations/docker-registries/google-artifact-registry/
101+
/docs/integrations/docker-registries/google-container-registry/
102+
/docs/integrations/docker-registries/other-registries/
103+
/docs/integrations/docker-registries/quay-io/
104+
/docs/integrations/gcloud-builder/
105+
/docs/integrations/git-providers/
106+
/docs/integrations/github-actions/
107+
/docs/integrations/google-cloud/
108+
/docs/integrations/google-marketplace/
109+
/docs/integrations/hashicorp-vault/
110+
/docs/integrations/helm/
111+
/docs/integrations/jenkins-integration/
112+
/docs/integrations/jira/
113+
/docs/integrations/kubernetes/
114+
/docs/integrations/microsoft-azure/
115+
/docs/integrations/notifications/
116+
/docs/integrations/notifications/jira-integration/
117+
/docs/integrations/notifications/slack-integration/
118+
/docs/integrations/secret-storage/
119+
/docs/learn-by-example/cc/
120+
/docs/learn-by-example/cc/c-make/
121+
/docs/learn-by-example/cc/cpp-cmake/
122+
/docs/learn-by-example/dotnet/
123+
/docs/learn-by-example/general/
124+
/docs/learn-by-example/general/selenium-test/
125+
/docs/learn-by-example/golang/
126+
/docs/learn-by-example/golang/golang-hello-world/
127+
/docs/learn-by-example/golang/goreleaser/
128+
/docs/learn-by-example/java/
129+
/docs/learn-by-example/java/gradle/
130+
/docs/learn-by-example/java/publish-jar/
131+
/docs/learn-by-example/java/spring-boot-2/
132+
/docs/learn-by-example/mobile/
133+
/docs/learn-by-example/mobile/android/
134+
/docs/learn-by-example/nodejs/
135+
/docs/learn-by-example/nodejs/lets-chat/
136+
/docs/learn-by-example/nodejs/react/
137+
/docs/learn-by-example/nodejs/voting-app/
138+
/docs/learn-by-example/php/
139+
/docs/learn-by-example/python/
140+
/docs/learn-by-example/python/django/
141+
/docs/learn-by-example/python/voting-app/
142+
/docs/learn-by-example/ruby/
143+
/docs/learn-by-example/rust/
144+
/docs/learn-by-example/scala/
145+
/docs/learn-by-example/scala/scala-hello-world/
146+
/docs/new-helm/custom-helm-uploads/
147+
/docs/new-helm/helm-best-practices/
148+
/docs/new-helm/add-helm-repository/
149+
/docs/new-helm/helm-environment-promotion/
150+
/docs/new-helm/helm-releases-management/
151+
/docs/new-helm/helm2-support/
152+
/docs/new-helm/integration-tests-with-helm/
153+
/docs/new-helm/managed-helm-repository/
154+
/docs/new-helm/using-helm-in-codefresh-pipeline/
155+
/docs/single-sign-on/ldap/
156+
/docs/single-sign-on/oidc/
157+
/docs/single-sign-on/oidc/oidc-auth0/
158+
/docs/single-sign-on/oidc/oidc-azure/
159+
/docs/single-sign-on/oidc/oidc-google/
160+
/docs/single-sign-on/oidc/oidc-okta/
161+
/docs/single-sign-on/oidc/oidc-onelogin/
162+
/docs/single-sign-on/saml/
163+
/docs/single-sign-on/saml/saml-jumpcloud/
164+
/docs/single-sign-on/saml/saml-okta/
165+
/docs/single-sign-on/saml/saml-onelogin/
166+
/docs/single-sign-on/saml/saml-pingidsso/
167+
/docs/single-sign-on/sso-overview/
168+
/docs/single-sign-on/team-sync/
169+
/docs/terms-and-privacy-policy/privacy-policy/
170+
/docs/terms-and-privacy-policy/sla/
171+
/docs/terms-and-privacy-policy/terms-of-service/
172+
/docs/testing/automatic-preview-environments/
173+
/docs/testing/composition-service-discovery/
174+
/docs/testing/create-composition/
175+
/docs/testing/integration-tests/
176+
/docs/testing/security-scanning/
177+
/docs/testing/sonarqube-integration/
178+
/docs/testing/test-reports/
179+
/docs/testing/unit-tests/
180+
/docs/troubleshooting/common-issues/
181+
/docs/troubleshooting/common-issues/build-step-no-such-file-or-directory/
182+
/docs/troubleshooting/common-issues/cant-find-your-organization-repositories/
183+
/docs/troubleshooting/common-issues/cant-find-your-private-repositories/
184+
/docs/troubleshooting/common-issues/cf-export-limitations/
185+
/docs/troubleshooting/common-issues/could-not-tag-image/
186+
/docs/troubleshooting/common-issues/create-container-failure/
187+
/docs/troubleshooting/common-issues/disabling-codefresh-caching-mechanisms/
188+
/docs/troubleshooting/common-issues/dockerhub-rate-limit/
189+
/docs/troubleshooting/common-issues/error-code-137/
190+
/docs/troubleshooting/common-issues/failed-to-get-accounts-clusters-during-workflow/
191+
/docs/troubleshooting/common-issues/forbidden-cluster-resources/
192+
/docs/troubleshooting/common-issues/git-clone-step-issue/
193+
/docs/troubleshooting/common-issues/handling-commit-messages-with-quotes/
194+
/docs/troubleshooting/common-issues/multi-git-triggers/
195+
/docs/troubleshooting/common-issues/no-dockerfile-found/
196+
/docs/troubleshooting/common-issues/paging-issues-builds-images/
197+
/docs/troubleshooting/common-issues/restoring-data-from-pre-existing-image-hangs-on/
198+
/docs/troubleshooting/common-issues/the-docker-image-does-not-exist-or-no-pull-access/
199+
/docs/troubleshooting/common-issues/using-ssh-keys/
200+
/docs/troubleshooting/common-issues/validation-port-warnings/
201+
/docs/troubleshooting/common-issues/workflow-terminated-by-system/
202+
/docs/troubleshooting/git-step-migration/
203+
/docs/troubleshooting/personal-git-deprecation/
204+
/docs/whats-new/whats-new/
205+
/docs/yaml-examples/examples/
206+
/docs/yaml-examples/examples/amazon-ecs/
207+
/docs/yaml-examples/examples/build-an-image-from-a-different-git-repository/
208+
/docs/yaml-examples/examples/build-an-image-specify-dockerfile-location/
209+
/docs/yaml-examples/examples/build-an-image-with-build-arguments/
210+
/docs/yaml-examples/examples/build-an-image-dockerfile-in-root-directory/
211+
/docs/yaml-examples/examples/build-and-push-an-image/
212+
/docs/yaml-examples/examples/call-child-pipelines/
213+
/docs/yaml-examples/examples/codacy-testing/
214+
/docs/yaml-examples/examples/codecov-testing/
215+
/docs/yaml-examples/examples/coveralls-testing/
216+
/docs/yaml-examples/examples/decryption-with-mozilla-sops/
217+
/docs/yaml-examples/examples/deploy-to-heroku/
218+
/docs/yaml-examples/examples/deploy-to-tomcat-via-scp/
219+
/docs/yaml-examples/examples/deploy-with-kustomize/
220+
/docs/yaml-examples/examples/docker-swarm/
221+
/docs/yaml-examples/examples/elastic-beanstalk/
222+
/docs/yaml-examples/examples/fan-in-fan-out/
223+
/docs/yaml-examples/examples/get-short-sha-id-and-use-it-in-a-ci-process/
224+
/docs/yaml-examples/examples/git-checkout-custom/
225+
/docs/yaml-examples/examples/git-checkout/
226+
/docs/yaml-examples/examples/gitops-secrets/
227+
/docs/yaml-examples/examples/helm/
228+
/docs/yaml-examples/examples/import-data-to-mongodb/
229+
/docs/yaml-examples/examples/integration-tests-with-mongo/
230+
/docs/yaml-examples/examples/integration-tests-with-mysql/
231+
/docs/yaml-examples/examples/integration-tests-with-postgres/
232+
/docs/yaml-examples/examples/integration-tests-with-redis/
233+
/docs/yaml-examples/examples/launch-composition/
234+
/docs/yaml-examples/examples/launching-a-composition-and-defining-a-service-environment-variables-using-a-file/
235+
/docs/yaml-examples/examples/nodejs-angular2-mongodb/
236+
/docs/yaml-examples/examples/nomad/
237+
/docs/yaml-examples/examples/non-git-checkout/
238+
/docs/yaml-examples/examples/packer-gcloud/
239+
/docs/yaml-examples/examples/populate-a-database-with-existing-data/
240+
/docs/yaml-examples/examples/pulumi/
241+
/docs/yaml-examples/examples/run-integration-tests/
242+
/docs/yaml-examples/examples/run-unit-tests/
243+
/docs/yaml-examples/examples/secure-a-docker-container-using-http-basic-auth/
244+
/docs/yaml-examples/examples/sending-the-notification-to-jira/
245+
/docs/yaml-examples/examples/sending-the-notification-to-slack/
246+
/docs/yaml-examples/examples/shared-volumes-between-builds/
247+
/docs/yaml-examples/examples/shared-volumes-of-service-from-composition-step-for-other-yml-steps/
248+
/docs/yaml-examples/examples/spring-boot-kafka-zookeeper/
249+
/docs/yaml-examples/examples/terraform/
250+
/docs/yaml-examples/examples/transferring-php-ftp/
251+
/docs/yaml-examples/examples/trigger-a-k8s-deployment-from-docker-registry/
252+
/docs/yaml-examples/examples/uploading-or-downloading-from-gs/
253+
/docs/yaml-examples/examples/use-kubectl-as-part-of-freestyle-step/
254+
/docs/yaml-examples/examples/vault-secrets-in-the-pipeline/
255+
/docs/yaml-examples/examples/web-terminal/
256+
/how-to-use.html
257+
/404/
258+
/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp