A pure bash, feature rich command line interface for CircleCI.
Sample use cases:
git push
to GitHub notifies you about the eventualCircleCI build success or failure)
alias gpn='f() { git push && { sleep 10 ; circleci notify; } &; }; f'
gpn
circleci builds --filter '.[] | select(.status=="success") | .build_num'
circleci-cli
and/or other CLIs (e.g. find failed builds and re-trigger them, find successful builds and feedinto a dashboard)brew
:$ brew tap rockymadden/rockymadden
$ brew install circleci-cli
curl
:$ curl -O https://raw.githubusercontent.com/rockymadden/circleci-cli/master/src/circleci
$ chmod 755 circleci
PROTIP: You are responsible for having
stedolan/jq
andgithub/hub
on your$PATH
.
make
:$ git clone git@github.com:rockymadden/circleci-cli.git
$ cd circleci-cli
$ make install bindir=/path/to/bin etcdir=/path/to/etc
PROTIP: You are responsible for having
stedolan/jq
andgithub/hub
on your$PATH
.
Ensure you have a CircleCI API token and use said token one ofthe following ways:
init
:$ circleci init
export CIRCLECI_CLI_TOKEN='token'
$ circleci --help
Usage:
circleci artifacts <project> <build>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci await <project> <build>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--resolution|-r <seconds>]
[--trace|-x]
circleci browse <project> [build]
[--trace|-x]
circleci build <project> <build>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci builds <project>
[--compact|-c] [--filter|-f <filter>] [--limit|-l <limit>] [--monochrome|-m]
[--offset|-o <offset>] [--trace|-x]
circleci cancel <project> <build>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci init
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--token|-t <token>]
[--trace|-x]
circleci me
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci notify <project> <build>
[--resolution|-r <seconds>] [--trace|-x]
circleci project <project>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci projects
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci retry <project> <build>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--trace|-x]
circleci trigger <project> <branch>
[--compact|-c] [--filter|-f <filter>] [--monochrome|-m] [--parameter-key|-K <key>]
[--parameter-value|-V <value>] [--revision|-R <revision>] [--trace|-x]
Configuration Commands:
init Initialize
Core Commands:
artifacts List the artifacts produced by a given build for a given project
build Details of a given build for a given project
builds Details of all builds for a given project
cancel Cancel a given build for a given project
me Details of the given user
project Details of a given project
projects List projects of the given user
retry Retry a given build for a given project
trigger Trigger a new build of a given branch for a given project
Convenience Commands:
await Await success or failure of a given build for a given project
browse Open CircleCI page of a given project
notify Await success or failure of a given build for a given project and create an OS X
notification with the details
More Information:
chat https://rockymadden-slack.herokuapp.com/
repo https://github.com/rockymadden/circleci-cli
PROTIPS:
--
can be used as a placeholder for the current project, when inside a GitHub-based git repo.--
can be used as a placeholder for the most recent build.--
can be used as a placeholder for the current branch, when inside a git repo.--compact
option is a wrapper around the jq--compact-output
option--filter
option is passed directly to jq as afilter--monochrome
option a wrapper around the jq--monochrome-output
optionartifacts
:$ # Implicit project and build:
$ circleci artifacts
$ # Placeheld project and build:
$ circleci artifacts -- --
$ # Placeheld project and explicit build:
$ circleci artifacts -- 1
$ # Explicit project and build:
$ circleci artifacts rockymadden/circleci-cli 1
await
:$ # Implicit project and build:
$ circleci await
$ # Placeheld project and build:
$ circleci await -- --
$ # Placeheld project and explicit build:
$ circleci await -- 1
$ # Explicit project and build:
$ circleci await rockymadden/circleci-cli 1
$ # With filter:
$ circleci await --filter='.build_num'
browse
:$ # Implicit project and build:
$ circleci browse
$ # Placeheld project and build:
$ circleci browse -- --
$ # Placeheld project and explicit build:
$ circleci browse -- 1
$ # Explicit project and build:
$ circleci browse rockymadden/circleci-cli 1
build
:$ # Implicit project and build:
$ circleci build
$ # Placeheld project and build:
$ circleci build -- --
$ # Placeheld project and explicit build:
$ circleci build -- 1
$ # Explicit project and build:
$ circleci build rockymadden/circleci-cli 1
$ # With filter:
$ circleci build --filter='.build_num'
builds
:$ # Implicit project:
$ circleci builds
$ # Placeheld project:
$ circleci builds --
$ # Explicit project:
$ circleci builds rockymadden/circleci-cli
$ # With filter:
$ circleci builds --filter='.[] | .build_num'
cancel
:$ # Implicit project and build:
$ circleci cancel
$ # Placeheld project and build:
$ circleci cancel -- --
$ # Placeheld project and explicit build:
$ circleci cancel -- 1
$ # Explicit project and build:
$ circleci cancel rockymadden/circleci-cli 1
$ # With filter:
$ circleci cancel --filter='.status'
me
:$ # With filter:
$ circleci me --filter='.login'
notify
:$ # Implicit project and build:
$ circleci notify
$ # Placeheld project and build:
$ circleci notify -- --
$ # Placeheld project and explicit build:
$ circleci notify -- 1
$ # Explicit project and build:
$ circleci notify rockymadden/circleci-cli 1
project
:$ # Implicit project:
$ circleci project
$ # Placeheld project:
$ circleci project --
$ # Explicit project:
$ circleci project rockymadden/circleci-cli
$ # With filter:
$ circleci project --filter='.username + "/" + .reponame'
projects
:$ # With filter:
$ circleci projects --filter='.[] | .username + "/" + .reponame'
retry
:$ # Implicit project and build:
$ circleci retry
$ # Placeheld project and build:
$ circleci retry -- --
$ # Placeheld project and explicit build:
$ circleci retry -- 1
$ # Explicit project and build:
$ circleci retry rockymadden/circleci-cli 1
$ # With filter:
$ circleci retry --filter='.status'
trigger
:$ # Implicit project and branch:
$ circleci trigger
$ # Placeheld project and branch:
$ circleci trigger -- --
$ # Placeheld project and explicit branch:
$ circleci trigger -- master
$ # Explicit project and branch:
$ circleci trigger rockymadden/circleci-cli master
$ # With build parameters:
$ circleci trigger --parameter-key=key1 --parameter-value=val1 --parameter-key=key2 --parameter-value=val2
$ # With build parameters (short form):
$ circleci trigger -K key1 -V val1 -K key2 -V val2
$ # With revision:
$ circleci trigger --revision=634f9656ccf6e0cad7385782e776569bddbf84d6
$ # With revision (short form):
$ circleci trigger -R 634f9656ccf6e0cad7385782e776569bddbf84d6
$ # With filter:
$ circleci trigger --filter='.vcs_revision'
$ # With filter (short form):
$ circleci trigger -f '.vcs_revision'
The MIT License (MIT)
Copyright (c) 2016 Rocky Madden (https://rockymadden.com/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
问题: 用vue-cli脚手架创建项目(vue init webpack xxx)的时候报错:vue-cli · Failed to download repo vuejs-templates/webpack: EPERM: operation not permitted, utime ‘/Users/userName/.vue-templates/webpack/.circleci’ 解决: 查
CircleCI Documentation This is the public repository for CircleCI Docs, astatic website generated by Jekyll. If you find anyerrors in our docs or have suggestions, please follow our ContributingGuide
Ember-CircleCI CircleCI configuration generator for your Ember projects. The generated configuration is compatible with applications and addons.In addition, it uses parallel jobs to optimize CI time.
gradlew测试命令在CircleCI上失败。当我在本地执行相同的命令时,它工作正常,所有的测试用例都通过了。我附上yml文件,从CircleCI和我的测试类日志。 这是我的yml文件。 当我检查CircleCI的日志时,这些日志是: 执行转换IdtyTransform- com . mind valley . MVA . log in module . loginactivitytest co
我已经集成了CircleCI来在我的应用程序上运行Espresso测试。我从另一个在线github存储库中获取了以下circle.yml文件,并将android构建工具和android版本更改为25。但是,当我在CircleCI服务器上运行构建时,我收到以下错误。我已经在yml文件中授予了执行权限。 我的应用回购结构是 circle.yml(圈.yml): gradle/wrapper/gradl
我正在尝试使用circleci将一个示例应用程序部署到使用google cloudrun的gke。我在google cloud中创建了一个集群,并希望在容器中构建和部署一个映像。如果我手动操作,效果会很好。但我希望建立一个自动化的CI/CD管道,并因此使用CircleCI来实现。 现在跳过测试和代码覆盖部分,我想为gke部署构建一个管道 这是Circleci的config.yaml文件。我试图使用
问题内容: 我正在尝试在Rails应用程序中使用Elasticsearch设置CircleCI。我认为已配置了映像,但是如何在CI中连接到该映像? 到目前为止,我已经尝试过… https://github.com/elastic/elasticsearch/issues/23866 错误信息 圈YAML配置 elasticsearch初始化器 问题答案: 来自Elastic的官方Docker映像预