For questions specifically related to the concourse task smallest unit in concourse and usage of task in Concourse pipeline- the CI system written in Go. When using this tag also include the more generic [concourse] tag where possible.
Questions tagged [concourse-task]
21 questions
2
votes
0 answers
How to access a multi branch resource attribute in a concourse job?
I'm using multi branch resourcing in a concourse pipeline like so:
resources:
- name: my-resource
type: git-multibranch
source:
uri: git@github.com.../my-resource
branches: 'feature/.*'
private_key: ...
ignore-branches: ''
How…

Ivan Ochoa Hidalgo
- 31
- 1
1
vote
1 answer
is there a way to skip archived concourse pipelines and unpause only un archived pipelines?
I am getting below error while unpause all our concourse pipelines using this below command.
Command: fly -t ci unpause-pipeline -a
unpaused 'pipeline-1'
unpaused 'pipeline-2'
unpaused 'pipeline-3'
unpaused 'pipeline-4'
unpaused…

Tamilselvan
- 55
- 5
1
vote
1 answer
How to iterate through an array in concourse
As far as I've searched I don't see any documentation for loops and arrays for Concourse CI.
I'm trying to migrate a job from Jenkins to CI and the snippet of my Jenkins file
def folders = [
"roller",
"auth",
"Django",
"gitlab",
…

Chel MS
- 386
- 1
- 10
1
vote
0 answers
How to use docker volumes in Concourse pipeline
Below is my pipeline
---
resource_types:
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
resources:
- name: pull-request
type: pull-request
check_every: 5m
# webhook_token: ((webhook-token))
…

Chel MS
- 386
- 1
- 10
1
vote
1 answer
Concourse Tutorial : create resource config: base resource type not found: docker-image
I was following along the tutorial for concourse from https://concoursetutorial.com/basics/task-hello-world/ after setting up the concourse version 7.1 using docker-compose up -d. Tried a few different hello world examples but all of them failed…

Harsh8V
- 31
- 4
1
vote
1 answer
How to combine one terminal command in Concourse task run config
How shall I combine one terminal command in Concourse task
command I use on terminal
export ENVIRONMENT=development NODE_ENV=local; mvn clean install
How to use this in Concourse run config? Are below lines correct?
run:
path:…

fly.bird
- 111
- 3
- 10
1
vote
0 answers
How can I detect the task where a job failed in Concourse given the build number?
Concourse Fly CLI had the build command which only lists the status and ID from the last N builds.
Is there a way to get the task that made the job fail for a particular build? And maybe also the output for failure details?
Or do you know another…

Gabriel Petrovay
- 20,476
- 22
- 97
- 168
1
vote
1 answer
How can I execute a Concourse task script from another resource's directory?
Having this task configuration:
config:
platform: linux
inputs:
- name: resource_to_run_in
- name: resource_with_scripts
run:
path: resource_with_scripts/script.sh
dir: resource_to_run_in
I get the following error:
Backend…

Gabriel Petrovay
- 20,476
- 22
- 97
- 168
0
votes
0 answers
Pre steps in docker build with Concourse
I have a concourse pipeline I use to build docker images using this resource. This is a code example:
- put: build-image.spilo
params:
build: git.spilo-dockerfile/
build_args: {}
tag_as_latest: true
tag_file:…

Salvatore D'angelo
- 1,019
- 3
- 14
- 39
0
votes
0 answers
Concourse - Pipeline returns "Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref"
I am running a maven release plugin in concourse pipeline. Our Git is in GitHub Enterprise and so is our Artifactory.
I am getting the resource, I am able to build it and release a snapshot to Artifactory using deploy. But when I go for the release…

code_warrior
- 1
- 3
0
votes
1 answer
Coordinate Concourse CI Same-Repo Checks?
I have a Concourse CI pattern where multiple pipelines are defined in one repo. I want to test the entire repository, and then only when certain files have changed (i.e. the pipeline-specific YAML) apply those pipelines which have changed. It mostly…
0
votes
0 answers
Tasks are not populated in concourse pipeline (Concourse version 7.8.2)
I am brand new to the concourse and trying to set up a pipeline through the pipeline but why am I getting this error on my very first pipeline, can anyone help out?
'''
jobs:
name: update-library-cache
serial: true
plan:
get: library_cache
get:…

Sanju
- 1
- 2
0
votes
0 answers
"attempts" field is invalid in concourse version 7.7.1
in concourse 7.7.1, When I setup the pipeline
plan:
- {get: abc, trigger: true}
- get: ttt
- get: library_cache
- in_parallel:
- {task: build-frontend, file: ttt/ci/tasks/build.yml, privileged: true, params: {TARGET_CFG: ((gamma)), SERVICE:…

Sanju
- 1
- 2
0
votes
1 answer
Fetching a file in a shell script within a concourse task gives file not found error
My concourse task is something like this:
name: test
plan:
- get: my-repo
- task: my-task
config:
inputs:
- name: my-repo
run:
path: sh
args: [my-repo/examples/run-this.sh]
And the shell script tries to…
0
votes
2 answers
Letting Concourse retry a build which failed because of a flaky issue
According to Concourse documentation
If any step in the build plan fails, the build will fail and subsequent steps will not be executed
It makes sense. However I'm wondering how I could deal with flaky steps.
For instance if I have a pipeline…

gturri
- 13,807
- 9
- 40
- 57