GithubHelp home page GithubHelp logo

circleci-public / circleci-cli-orb Goto Github PK

View Code? Open in Web Editor NEW
2.0 11.0 11.0 33 KB

Easily install and use the CircleCI CLI, on CircleCI

Home Page: https://circleci.com/orbs/registry/orb/circleci/circleci-cli

License: MIT License

Shell 100.00%
circleci-orbs circleci-cli circleci

circleci-cli-orb's Introduction

CircleCI CLI Orb CircleCI Build Status CircleCI Orb Version GitHub license CircleCI Community

Quickly and easily install and configure the CircleCI command-line interface (CLI), on CircleCI, for running "local" jobs and interacting with CircleCI configuration, orbs, and CircleCI's GraphQL API.

Usage

For full usage guidelines, see the orb registry listing.

Examples

executor-command-example

Run a job inside the CircleCI CLI container, via this orb's executor. In another job, use the orb to install the CLI.

version: 2.1

jobs:
  use-executor:
    executor: cli/default
    steps:
      - run: echo "this job is using the orb's default executor"
  use-install-command:
    docker:
      - image: 'circleci/circleci-cli:latest'
    steps:
      - cli/install
      - run: echo "the CLI is now installed"
orbs:
  cli: circleci/[email protected]

workflows:
  cli-orb-example:
    jobs:
      - use-executor
      - use-install-command

Contributing

We welcome issues to and pull requests against this repository!

For further questions/comments about this or other orbs, visit CircleCI's orbs discussion forum.

circleci-cli-orb's People

Contributors

brivu avatar dsayling avatar gep13 avatar iynere avatar jaryt avatar lokst avatar nelias avatar pjwilliams2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circleci-cli-orb's Issues

Version parameter on install job does nothing

Orb version

0.1.9 and older

What happened

Specify an explicit version to install in the install job

  - circleci-cli/install:
      version: v0.1.15224

The job outputs that you want to install version v0.1.15224, but doesn't actually reference it in the install command. It just installs the latest

Selected version of CircleCI CLI is v0.1.15224
A different version of the CircleCI CLI is installed (Build Agent version: 1.0.72666-eaa68b41
Built: 2021-06-14T14:18:26+0000); updating it
Starting installation.
Installing CircleCI CLI v0.1.15338
Installing to /usr/local/bin
/usr/local/bin/circleci
CircleCI CLI version 0.1.15338+850f9ac (release) has been installed to /usr/local/bin/circleci

Expected behavior

When you specify a version for the install job, it should install that version.

circleci-cli/install doesn't install the circleci tool

Orb version

0.1.9

What happened

The src/scripts/install.sh script simply doesn't install the CLI tool if it's missing.
It only does things if it already exists:

  • either the installed version is the version we want, and it does nothing
  • either it install a different version

But it expects the CLI tool to be already present, which seems wrong.

Expected behavior

If circleci is not available, I would expect it to install the tool with the provided version

Default executor doesn't exit after receiving an exit code 0

Orb version

1.0.0

What happened

I was using this orb's "default" executor and when I switched to use v1.0.0 from v0.1.22 of this orb my job just kept running without completing after receiving an exit code 0.

This message was also in the output:
WARNING: terminal is not fully functional

Expected behavior

The job should have exited after receiving an exit code 0.

circleci reports the image used here as deprecated

Orb version

0.1.9

What happened

Using a configuration that looks like the following:

orbs:
  cli: circleci/[email protected]

jobs:
  validate_orbs:
    executor: cli/default
    steps:
      - checkout
...

I get this error message in the circleci's own app:
image

Expected behavior

No deprecation messages, obviously :) Please, consider upgrading to cimg/base or adding a new base image with circleci-cli installed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.