Questions tagged [circleci-workflows]

105 questions
11
votes
5 answers

sbt always recompiles full project in CI, even with caching?

I'm struggling to use SBT for a CI process with this basic workflow: compile tests cache ~/.sbt and ~/.ivy2/cache cache all target directories in my project In a subsequent step: restore ~/.sbt and ~/.ivy2/cache restore full project, including…
drobert
  • 1,230
  • 8
  • 21
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
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: -…
5
votes
1 answer

Running more than 4 jobs in parallel with CircleCI

If I have a .circleci/config.yml file like so: version: 2 jobs: build-node8: docker: - image: oresoftware/lmx-circleci:8 steps: - checkout - run: ./scripts/circleci/run.sh build-node9: docker: - image:…
user5047085
5
votes
2 answers

CircleCI version 2.1 - "Cannot find a definition for command named 'restore-cache'"

I'm currently attempting to use the commands feature available in CircleCI version 2.1, so that I can reuse some common commands. I'm testing using the CLI command: circleci config process ./.circleci/config.latest.yaml > ./.circleci/config.yml But…
5
votes
2 answers

How can I update the max_connections config in my circleCI configuration?

I'm struggling to configure the MAX_CONNECTIONS postgres config in my circleCI configuration file. As you can see below I tried using sed to replace the max_connections value, but this didn't do anything, the max_connections remained at the default…
James111
  • 15,378
  • 15
  • 78
  • 121
4
votes
1 answer

CircleCI: Skip entire workflow

Basically I'm trying to skip the build if it's not a pull request or a certain branch, however I don't seem to be able to skip a job or a part of the workflow if this fails, so far the problem is that circleci step halt does nothing in my pipelines,…
kainlite
  • 1,024
  • 17
  • 35
4
votes
2 answers

CircleCI insert environment variable

I created my first pipeline yesterday and I wanted to replace a placeholder in my bundle.gradle file with the CIRCLE_BUILD_NUM environment variable. The only method I found find was writing my own ‘sed’ command and executing the regex in a run…
NealR
  • 10,189
  • 61
  • 159
  • 299
4
votes
2 answers

How to get the branch that the PR is heading to in CircleCI

CircleCI have a CIRCLE_BRANCH env variable that tells you the name of the branch of the PR itself. But I want the other way around, I need the branch name of the PR is trying to merge against.
Matheus Lima
  • 2,103
  • 3
  • 31
  • 49
4
votes
2 answers

How to set an Env Variable in Circle CI

I am running a DB job using Maven liquibase plugin on circle ci. I need to read the parameters like username,password, dburl etc from AWS Parameter store.But when I try to set the value returned by aws cli to a custom variable, its always…
4
votes
1 answer

Can I run a job under another job's steps in CircleCI 2.0?

Is it possible to have another job run in the context of another job? I have some jobs that have some steps in common, and I don't want to repeat these steps in the different jobs. push-production-image: docker: - image:…
Seyi Adekoya
  • 443
  • 5
  • 11
4
votes
2 answers

How to make a conditional manual approval in CircleCI 2.0 workflows

I have a simple use case where I want to make a manual approval only for a specific branch and/or tag. The workflow job with type:approval has filters like all other jobs but the job foo that requires a manual approval (or not) will use something…
Yves M.
  • 29,855
  • 23
  • 108
  • 144
3
votes
1 answer

CircleCI: build of Meteor 2.2 docker application - failing

How to get this error? I am using Meteor 2.2 with Node 12.16.1 and CircleCI compiler @ version: 2.1 with latest docker image. For a base I am using custom made docker "meteor-launchpad" I have decided to upgrade our Meteor from 1.11.1 to 2.2 Failure…
f0au3
  • 31
  • 1
3
votes
1 answer

Executing a CircleCI job only when tag matches a certain pattern

I have the following workflow definition for a CircleCI build workflows: version: 2 default: jobs: - verify - tests_3_1: requires: - verify - tests_5_0: requires: - verify -…
Kralizek
  • 1,999
  • 1
  • 28
  • 47
1
2 3 4 5 6 7