F.e. normally you use "develop", but today you want to use "patchXYZ"... Without changing the pipeline, is there a way to prompt the user for the branch name? If not, what is the best practice with the Concourse for this flow?
In Concourse, is it possible AT ALL to select a git resource branch interactively in web UI or fly CLI?
1k Views Asked by Sergey Aldoukhov At
1
There are 1 best solutions below
Related Questions in CONCOURSE
- Concourse pipeline variables on resources
- /sourcedir.tar.gz: Cannot write: Broken pipe
- Concourse git-prs error run check step: check: resource script '/opt/resource/check []' failed: exit status 1
- Concourse resource to manage custom snapshot versions
- Concourse CI using 2 github domains
- Can Octopus Deploy choose an unused environment?
- Concourse Pipeline for running ansible playbook
- concourse woker failing with error mounting subsystem 'cpuset' in '/sys/fs/cgroup/cpuset': operation not permitted
- Concourse integration with Gerrit
- Destroy Concourse pipeline that is named like an instanced pipeline
- How do I upgrade the Java Version in a SonarScan?
- I try to load a CSV file from my local machine to IBM Cloud db2 but I face this error continuously
- Concourse Pipeline Not Retrieving Configuration Values from AWS Secrets Manager
- Maven build keeps failing in Concourse Pipeline with a "Forked VM termination error"
- Manifest file secret storage cloud foundary
Related Questions in CONCOURSE-GIT-RESOURCE
- Concourse git-prs error run check step: check: resource script '/opt/resource/check []' failed: exit status 1
- Concourse resource to manage custom snapshot versions
- Concourse CI using 2 github domains
- Concourse Pipeline for running ansible playbook
- Pre steps in docker build with Concourse
- Concourse - Pipeline returns "Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref"
- Get only the pr form a git branch in concourse
- Coordinate Concourse CI Same-Repo Checks?
- Set a Variable in Concourse Pipeline
- Concourse git-resource paths list causes hangup in pipeline
- is there a way to skip archived concourse pipelines and unpause only un archived pipelines?
- Concourse resource `check_every: never` time: invalid duration "never"
- concourse git-resource : tag_filter and tag_regex not working
- concourse pipeline - throwing error for sub folders "not a valid repository name"
- In Concourse, is it possible AT ALL to select a git resource branch interactively in web UI or fly CLI?
Related Questions in CONCOURSE-PIPELINE
- Concourse pipeline variables on resources
- Concourse resource to manage custom snapshot versions
- Concourse CI using 2 github domains
- How do I upgrade the Java Version in a SonarScan?
- Maven build keeps failing in Concourse Pipeline with a "Forked VM termination error"
- Pull and run docker image from docker hub using Concourse pipeline
- Unable to build the image using the repo gcr.io/cloud-builders/docker in concourse
- Pre steps in docker build with Concourse
- testing-library/react failed tsx file in concourse pipeline
- Concourse - Pipeline returns "Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref"
- Maven Test is not running in quark-concourse pipeline
- Get only the pr form a git branch in concourse
- Once off configuration builds in concourse
- Coordinate Concourse CI Same-Repo Checks?
- Concourse cannot run on macBook M1chip
Related Questions in CONCOURSE-FLY
- Concourse CI using 2 github domains
- Pull and run docker image from docker hub using Concourse pipeline
- Pre steps in docker build with Concourse
- How to give input parameter to the concourse pipeline on the pipeline page and trigger the job similar to jenkins
- fly watch on current job inside on_error?
- Setting Up Concourse with external url
- Resource Type vs Resource in Concource CI
- Error on Concurse while integrating Cypress. Cypress executable not found
- is there a way to skip archived concourse pipelines and unpause only un archived pipelines?
- How can I display the url of a page in concourse pipeline so that I can click the url in the pipeline to jump to the corresponding page
- Concourse Tutorial : create resource config: base resource type not found: docker-image
- In Concourse, is it possible AT ALL to select a git resource branch interactively in web UI or fly CLI?
- Accessing Concourse REST API from resource
- Does Concourse CI log who manually triggers and aborts builds?
- What is the Concourse (fly) CLI command to list all the available resource types?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You cannot change the branch name from the web UI and I think that it is actually a good idea, a pipeline should represent always the same branch.
What I suggest is to have two types of pipelines for a given project:
projectA-main, and it follows the main branch of the repo (main, master, develop,...). it is long-lived.projectA-patchXYZ.We now need a way to avoid the pain (and mistakes) to manually maintain the different pipelines. This is actually easy to do, using Concourse
((vars))(see documentation).You would still have only one pipeline file, but templatized using these
((vars)). For your example with the git branch name:Then you would set the pipeline with fly, expanding that variable:
(see the fly documentation for
-y).Once done, you should remember to destroy that branch pipeline, otherwise they will build up, eating resources.
Or you could keep resetting the same branch pipeline, effectively obtaining what you wanted. In this case the pipeline name should stay the same, something like
Last note: when having more than one pipeline for a given project, one must also think about side effects: effects that are visible outside the pipeline.
Classic example is pushing an artifact to S3. The two pipelines (main and branch) will put stuff in the same place, which might not be what you want.
In this case, the same
((branch))trick can be used in the regexp for the S3 resource.You can have a look at my sample pipelines at marco-m/concourse-pipelines and you might find useful my marco-m/concourse-in-a-box, an all-in-one Concourse CI/CD system based on Docker Compose, with Minio S3-compatible storage and HashiCorp Vault secret manager. This enables to learn Concourse pipelines from scratch in a simple and complete environment.