Questions tagged [circleci-2.0]
267 questions
44
votes
4 answers
CircleCi 2.0 working with project inside the subdirectory
I am trying to integrate my springboot tutorial project with CircleCi.
My project is inside a subdirectory inside a Github repository and I get the following error from CircleCi.
Goal requires a project to execute but there is no POM in this
…

Kevin Amiranoff
- 13,440
- 11
- 59
- 90
18
votes
2 answers
Rails: rake db:structure:load times out on CircleCI 2.0
Currently, rake db:schema:load is run to setup the database on CircleCI. In migrating from using schema.rb to structure.sql, the command has been updated to: rake db:structure:load.
Unfortunately, it appears to hang and does not return:
$ bin/rake…

Kache
- 15,647
- 12
- 51
- 79
13
votes
4 answers
CircleCI run multi line command
Excerpt from a CircleCI config file:
deploy:
machine:
enabled: true
steps:
- run:
name: AWS EC2 deploy
command: |
ssh -o "StrictHostKeyChecking no" ubuntu@xxx.xxx.xxx.xxx "cd ~/circleci-aws; git pull; npm i; npm…

ChrisRich
- 8,300
- 11
- 48
- 67
12
votes
4 answers
Android Firebase app distribution - Service credentials file does not exist. Please check the service credentials path and try again
I'm trying to migrate from Crashlytics Beta to Firebase App Distribution.
CircleCi in the Middle.
The build failes in CircleCi with the following error:
What went wrong:
Execution failed for task ':FiverrApp:appDistributionUploadRelease'.
…

Udi Oshi
- 6,787
- 7
- 47
- 65
11
votes
3 answers
Fastlane Match failed to connect using personal access token and username
I'm having a bit of trouble connecting to a private repo in order to get the certs and profiles. Here is some of the code that is running in a fastlane lane within the circle-ci job/workflow. I would imagine this would be possible because of…

Lamour
- 3,002
- 2
- 16
- 28
8
votes
3 answers
yaml: did not find expected key
Error parsing config file: yaml: line 22: did not find expected key
Cannot find a job named build to run in the jobs: section of your configuration file.
I got those errors, but I'm really new to yaml so I can't really find reaons why It's not…

Phillip YS
- 784
- 3
- 10
- 33
7
votes
0 answers
Cannot use environment variable in Circleci orb
I am trying to create a Circleci workflow which builds and uploads a java WAR to my organizations existing S3 artifact storage bucket repository. First, the project is built and some information is saved in a file, as well as VERSION being put into…

ThisIsNoZaku
- 2,213
- 2
- 26
- 37
7
votes
4 answers
Simple CircleCI 2.0 configuration fails for global NPM package installation
I have a Dockerfile that works fine:
FROM node:10
RUN npm set unsafe-perm true
RUN npm install -g '@oresoftware/r2g@0.0.132'
but the same CircleCI config.yml file that mirrors the above Dockerfile does not work:
{
"version": 2,
"jobs": {
…

Alexander Mills
- 90,741
- 139
- 482
- 817
7
votes
1 answer
Chromedriver Devtools port number error
I'm getting the following error while trying to run tests using capybara, selenium and chromedriver-helper. The tests run fine locally on a mac using the same version of chromedriver. I've tried setting the remote debugging port explicitly in my…

keoghpe
- 406
- 5
- 18
6
votes
1 answer
circleCI CLI - Cannot find a job named `build` to run in the `jobs:` section of your configuration file
I'm using the circleCI CLI locally to test my .circleci/config.yml. This is what it looks like:
version: 2.1
jobs:
test:
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run: echo 'test step'
workflows:
…

richflow
- 1,902
- 3
- 14
- 21
6
votes
2 answers
Installing a GitHub Package in CircleCI
For my project, I am trying to install (not publish!) a npm package from GitHub Packages. It is hosted on a private repository, which is in an org. I have made a personal access token with the required permission to read from that repo and org. All…

TLListenreich
- 103
- 1
- 7
6
votes
1 answer
agent key RSA SHA256: ... returned incorrect signature type
I'm trying to use CircleCI on a Go project on GitHub with the default template for Go projects.
For reference, here's what the default .circleci/config.yml looks like :
version: 2
jobs:
build:
docker:
- image:…

Nato Boram
- 4,083
- 6
- 28
- 58
5
votes
1 answer
How do we conditionally run a CircleCI workflow?
I have followed the guide described in Conditional steps in jobs and conditional workflows and written the below code for my CircleCI pipeline.
version: 2.1
workflows:
version: 2.1
workflowone:
when:
condition: false
jobs:
-…

Babar Baig
- 383
- 2
- 15
5
votes
1 answer
Permission denied when restoring cache in CircleCi job
Whenever my job run, they always take around 40s to download and install libreoffice. I'm gonna to store this into cache and restore cache to reuse it in next job.
- restore_cache:
key: cache-libre-6.3-b # Restore…

bxdoan
- 1,349
- 8
- 22
5
votes
2 answers
Rails project not loading CSS in test environment causing problems with circleCI tests
I am having issues running tests with cucumber in CircleCI because the CSS files are not loading properly.
I ran the project in the test environment RAILS_ENV=test rails s and it is not loading the CSS (even though I can see the CSS generated by…

marimaf
- 5,382
- 3
- 50
- 68