Any ideas or thoughts on this?
On 27.01.2023 16:42, Victor Sudakov wrote:
Dear Colleagues,
Some CI/CD tools support the concept of contexts or environments. In each
environment/context, you define a set of variables or secrets with
different values, and refer to the contexts from the pipeline. For example,
for Github Actions you can create the "main" and "dev" environments and
then mention them in your pipeline:
jobs:
build:
runs-on: ubuntu-latest
environment: ${{ github.ref_name }}
steps:
- name: Test secrets
run: something
env:
SUPER_SECRET: ${{ secrets.TEST_SECRET }}
and the value of secrets.TEST_SECRET will be different for different
branches.
Do you know of a plugin for Jenkins with a similar functionality for its
Multibranch Pipelines?
Jenkins has the concept of "credential domains", can they be used for this
purpose (like referring to a credential domain from the environment{} block for
example)?
--
Victor Sudakov
Systems Administrator
Streamline - Property Management Software
Website: www.streamlinevrs.com
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e91642d7-3e80-4b81-ca2b-481f74aa9a21%404vrs.com.