Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle cli #66

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: iOS starter workflow

on:
push:
respiratories : [ "all" ]
pull_request:
respiratories : [ "required" ]

jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
- name: Test
env:
- name: main
-platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` '{$2000=$2000;print}'`
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
exit code 1 : only if job is completed
if not complete : await complete process
time : await 1000secs
if process is not complete: echo $file
search resolvers to complete job
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# support-articles
This repository stores CircleCI Support articles and those translations. This is the source: https://support.circleci.com/

respiratory use an organisation from @sammyfilly
11 changes: 11 additions & 0 deletions data/articles/16235281267611-Tax-Exempt-EntityBusiness-_en-us.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 16235281267611
title: 'Tax Exempt Entity/Business '
author_id: 8621373238811
created_at: '2023-06-09T19:46:56Z'
locale: en-us
permission_group_id: 237847
section_id: 115003332307
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/16235281267611-Tax-Exempt-Entity-Business-
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 16235627347483
title: Update Billing Contact/Account Name
author_id: 8621373238811
created_at: '2023-06-09T19:54:38Z'
locale: en-us
permission_group_id: 237847
section_id: 115003332307
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/16235627347483-Update-Billing-Contact-Account-Name
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17052336685083
title: How Do Network Storage Charges Work?
author_id: 406489663114
created_at: '2023-07-11T19:25:49Z'
locale: en-us
permission_group_id: 237847
section_id: 115003332307
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17052336685083-How-Do-Network-Storage-Charges-Work-
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17262861842971
title: CircleCI Associate Developer Certificate
author_id: 407671425572
created_at: '2023-07-19T20:43:59Z'
locale: en-us
permission_group_id: 237867
section_id: 7513266924955
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17262861842971-CircleCI-Associate-Developer-Certificate
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17402023738651
title: Installing Rosetta on Apple Silicon / M1 executors
author_id: 406086106852
created_at: '2023-07-25T18:38:20Z'
locale: en-us
permission_group_id: 237847
section_id: 13352542833307
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17402023738651-Installing-Rosetta-on-Apple-Silicon-M1-executors
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17441333580827
title: Why do I see a "block-unregistered-user" error in my build?
author_id: 1265295483789
created_at: '2023-07-26T21:17:31Z'
locale: en-us
permission_group_id: 237847
section_id: 7513316556699
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17441333580827-Why-do-I-see-a-block-unregistered-user-error-in-my-build-
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17470042094875
title: How to fix the "block-unregistered-user" error for Gitlab projects
author_id: 1265295483789
created_at: '2023-07-27T21:15:54Z'
locale: en-us
permission_group_id: 237847
section_id: 7513316556699
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17470042094875-How-to-fix-the-block-unregistered-user-error-for-Gitlab-projects
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
id: 17484399397659
title: >-
Docker executor jobs failing on CircleCI Server 4 during environment spin up
step
author_id: 382351044273
created_at: '2023-07-28T13:14:18Z'
locale: en-us
permission_group_id: 237847
section_id: 13352501608987
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17484399397659-Docker-executor-jobs-failing-on-CircleCI-Server-4-during-environment-spin-up-step
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17581058969371
title: Can I change the value of circleci_ip_ranges based on the branch?
author_id: 407671425572
created_at: '2023-08-01T15:18:15Z'
locale: en-us
permission_group_id: 237867
section_id: 7513266924955
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17581058969371-Can-I-change-the-value-of-circleci-ip-ranges-based-on-the-branch-
draft: false
11 changes: 11 additions & 0 deletions data/articles/17581448889627-Using-FIPS-Endpoints_en-us.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17581448889627
title: Using FIPS Endpoints
author_id: 407671425572
created_at: '2023-08-01T15:28:05Z'
locale: en-us
permission_group_id: 237867
section_id: 115003755767
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17581448889627-Using-FIPS-Endpoints
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17581722736155
title: Troubleshooting CircleCI VSCode Plugin
author_id: 407671425572
created_at: '2023-08-01T15:36:51Z'
locale: en-us
permission_group_id: 237867
section_id: 115003755767
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17581722736155-Troubleshooting-CircleCI-VSCode-Plugin
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17581989069211
title: How to Give Container Runner Access to Additional Namespaces
author_id: 407671425572
created_at: '2023-08-01T15:44:00Z'
locale: en-us
permission_group_id: 237867
section_id: 13352566508443
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17581989069211-How-to-Give-Container-Runner-Access-to-Additional-Namespaces
draft: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 17590044805019
title: '[Server] Troubleshooting Complete Jobs Showing Incomplete '
author_id: 407671425572
created_at: '2023-08-01T19:04:05Z'
locale: en-us
permission_group_id: 237867
section_id: 360000059327
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/17590044805019--Server-Troubleshooting-Complete-Jobs-Showing-Incomplete-
draft: false

This file was deleted.

10 changes: 0 additions & 10 deletions data/articles/360007164893_ja.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
id: 360007993113
title: Restarting the Replicated services
title: '[Server] How to restart the Replicated services'
author_id: 24240290787
created_at: '2018-08-10T17:50:42Z'
locale: en-us
permission_group_id: 237867
section_id: 360000059327
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/360007993113-Restarting-the-Replicated-services
https://support.circleci.com/hc/en-us/articles/360007993113--Server-How-to-restart-the-Replicated-services
draft: false

This file was deleted.

10 changes: 0 additions & 10 deletions data/articles/360045662112_ja.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 360049928771
title: Do free credits roll over to the next month?
author_id: 4008831568
created_at: '2020-09-20T19:02:26Z'
locale: en-us
permission_group_id: 237867
section_id: 115003332307
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/360049928771-Do-free-credits-roll-over-to-the-next-month-
draft: false

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
id: 4418630002459
title: How To Determine if Your Docker Executor Build Is Under-Provisioned
title: How To Determine if Your Build Is Under-Provisioned
author_id: 1265290025669
created_at: '2022-02-10T07:37:39Z'
locale: en-us
permission_group_id: 237867
section_id: 7513311598235
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/4418630002459-How-To-Determine-if-Your-Docker-Executor-Build-Is-Under-Provisioned
https://support.circleci.com/hc/en-us/articles/4418630002459-How-To-Determine-if-Your-Build-Is-Under-Provisioned
draft: false
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
id: 5645222646939
title: Why can’t I access my old build data?
title: Data retention policy
author_id: 406086106852
created_at: '2022-04-28T14:58:27Z'
locale: en-us
permission_group_id: 237867
section_id: 360001263193
user_segment_id: null
html_url: >-
https://support.circleci.com/hc/en-us/articles/5645222646939-Why-can-t-I-access-my-old-build-data-
https://support.circleci.com/hc/en-us/articles/5645222646939-Data-retention-policy
draft: false
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<h2 id="auth-fail">CircleCI can not use the users authentication to retrieve the config.yml</h2>
<p>When customer sees the following message it means that the users who triggered the builds authentication can not be used to retrive the <span>configuration file</span> (config.yml). <br><br><strong>Could not find a usable config.yml, you may have revoked the CircleCI OAuth app</strong></p>
<p> </p>
<p><span>When user pushes the commit (to trigger a new CircleCI build), CircleCI fetches the configuration file (config.yml)</span><span> to generate the pipeline. CircleCI will use the author's credentials in order to fetch the config.yml file. When this authentication fails, users will see the above error message.<br><br></span><span></span></p>
<h2 id="auth-fail">CircleCI cannot use the user's authentication to retrieve the config.yml file</h2>
<p>When you see that the pipeline does not run with the below error message, it means that the user, who triggered the build, could not be authenticated and therefore CircleCI could not retrieve the <span>configuration file</span> (config.yml). </p>
<p><code>Could not find a usable config.yml, you may have revoked the CircleCI OAuth app</code></p>
<p><span>When a user pushes a commit, opens a PR or triggers a new CircleCI build via the API or via the UI, CircleCI fetches the configuration file (config.yml)</span><span> to generate the pipeline. CircleCI will use the author's authentication token to fetch the config.yml file. When this authentication fails because the token has become invalid or has expired, the user will see the above error message.<br></span><span></span></p>
<h2 id="reauth-oauth"><span>Solution: Re-Authentication</span></h2>
<p>Firstly, we recommend you to try logging out and logging in again.<br>If that still does not work, we recommend you to re-authenticate with CircleCI.</p>
<p>If this is the case, we recommend this user to re-authenticate with CircleCI.</p>
<ol id="reauth-steps">
<li>
<span>Go to <a href="https://app.circleci.com/" target="_blank" rel="noopener">https://app.circleci.com</a> and log out.</span><span></span>
Expand All @@ -17,7 +17,7 @@ <h2 id="reauth-oauth"><span>Solution: Re-Authentication</span></h2>
</li>
<li aria-level="1"><span><a href="https://circleci.com/vcs-authorize/" target="_blank" rel="noopener">Log back in to CircleCI</a> via GitHub.</span></li>
</ol>
<p><span>If the following issue do not resolve the issue please raise it as a support ticket with the link to the failed message and we are happy to take a look into it.</span></p>
<p><span>If the above does not resolve the issue, please <a href="https://support.circleci.com/hc/en-us/requests/new" target="_blank" rel="noopener">raise it as a support ticket</a> with the link to the failed message and we will be happy to take a look into it.</span></p>
<h2><span>Additional Resources</span></h2>
<p><a href="https://support.circleci.com/hc/en-us/articles/360051228052-How-to-Perform-a-Re-Authentication" target="_self">How to Perform a Re-Authentication</a><br><a href="https://discuss.circleci.com/t/could-not-find-a-usable-config-yml-you-may-have-revoked-the-circleci-oauth-app/46274" target="_self">Discuss</a></p>
<p> </p>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1><span style="color: #161616;">Overview</span></h1>
<p><span style="color: #161616;">Frequently Asked Billing Questions </span></p>
<h2><strong><span style="color: #161616;">Prerequisites </span></strong></h2>
<h2><strong><span style="color: #161616;">Prerequisites (Perfomance Plan)</span></strong></h2>
<p><span style="color: #161616;">These changes can only be made by an organization's admin. To help identify your organization's admins, please reference the articles below:</span></p>
<ul>
<li><a href="https://support.circleci.com/hc/en-us/articles/360034990033"><span style="color: #19639a;">Am I an Org Admin?</span></a></li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h2><strong><span>Tax Exempt Status Update (Performance Plan)</span></strong></h2>
<p>If your organization is considered tax exempt by your state government please reach out to <a href="mailto:[email protected]">[email protected]</a> with your tax exempt form. Our team will review the form in a timely manner. </p>
<p> </p>
<p> </p>
<p> </p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<h2><strong><span>Prerequisites (Performance Plan)</span></strong></h2>
<p><span>These changes can only be made by an organization's admin. To help identify your organization's admins, please reference the articles below:</span></p>
<ul>
<li><a href="https://support.circleci.com/hc/en-us/articles/360034990033"><span>Am I an Org Admin?</span></a></li>
<li><a href="https://support.circleci.com/hc/en-us/articles/12154694676507"><span>How do I find my org admins?</span></a></li>
</ul>
<h2><strong><span>How do I update the name on my account?</span></strong></h2>
<p>Our customer success team can change your account name. Please write them at <a href="mailto:[email protected]">[email protected]</a> . Please be sure to include a recent invoice, your org name and the update contact information. </p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<h1>Overview</h1>
<p><span>Figuring out how Data Usage of the cache and workspaces are charged in CircleCI can be a little confusing. The simple answer is that <strong>we charge when data is persisted to the cache or workspace</strong>. There is some nuance to how persisting works between caching and workspaces, so this article is here to help explain.</span></p>
<p> </p>
<h2><span>Caching</span></h2>
<p><span>Persisting to the cache only occurs when changes are made to data in the cache. Since this means that we will only charge you when the cache is updated, this can be more cost-effective than using workspaces but can be less reliable, as a cache miss can occur.</span></p>
<h2><span>Workspaces</span></h2>
<p>Persisting to the workspace will occur on each build execution, which means you will be charged network usage per build. This can help keep your environments more consistent, but may not be as cost-effective as using the cache</p>
<p> </p>
<h2>Additional Resources:</h2>
<ul>
<li><a href="https://support.circleci.com/hc/en-us/articles/360004632473" target="_blank" rel="noopener">No Cache Found and Skipping Cache Generation</a></li>
<li><a href="https://support.circleci.com/hc/en-us/articles/360012618473" target="_blank" rel="noopener">Creating a "daily" cache</a></li>
<li><a href="https://support.circleci.com/hc/en-us/articles/360007547173" target="_blank" rel="noopener">Can I cache my dependencies on CircleCI?</a></li>
</ul>
<p> </p>
Loading