-
Notifications
You must be signed in to change notification settings - Fork 982
Config repo pipeline show read only configurations #6363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config repo pipeline show read only configurations #6363
Conversation
|
@arvindsv @maheshp @ketan |
|
@GaneshSPatil Yes, given the work on pipeline config SPA, I think we should just hold on to this idea, to come back to if needed. |
|
@arvindsv @adityasood -- As we're not doing new pipeline config SPA, should we consider doing this? @gocd/committers Thoughts?? |
|
@GaneshSPatil I think it's worth a look. |
f8efd71 to
dd28e7a
Compare
0ddcc66 to
c9d0b04
Compare
25a2597 to
9d1e437
Compare
e4ebd2a to
41fc39b
Compare
…fig only for display
41fc39b to
743125c
Compare
Following things couldn't be tested (mentioned with reasons)
|
Testing the changeset with YAML pipeline configuration:prerequisite
format_version: 3
pipelines:
pipeline1:
group: first
label_template: ${COUNT}
lock_behavior: lockOnFailure
tracking_tool:
link: https://blah.com/${ID}
regex: (+d)*
display_order: -1
timer:
spec: 0 0 22 ? * *
only_on_changes: true
environment_variables:
plain1: value1
plain2: value2
secure_variables:
admin: AES:1PaiLQnpdzoknufcCdiJkA==:sI5UrvFmFJDvmN0NEzu8nQ==
materials:
git1:
git: https://github.com/someone/someproject
username: username
shallow_clone: true
auto_update: true
branch: master
destination: dest
encrypted_password: AES:xdrx/ilIq0/v7gFwnLJHIA==:s4GuvBFK8UL/vTzU1IqzNw==
pipeline-material:
ignore_for_scheduling: true
pipeline: up42
stage: up42_stage
subversion-1:
svn: https://subversion.url.com
username: admin
check_externals: true
auto_update: true
destination: dest-2
encrypted_password: AES:21RibmgqKr0PgZ46U3qngA==:/tX6KLB2t5RKJBSyfFGQcw==
perforce:
p4: https://perforceserver:567
username: admin
use_tickets: true
view: this-is-a-very-pretty-perforce-view
auto_update: true
destination: dest-3
encrypted_password: AES:9TANv/PaURebkL0ptKmzQQ==:1q/T4xYc8MZjTPdrBQndMw==
mercurial:
hg: https://mercurialserver.com
username: admin
auto_update: true
branch: awesome
destination: dest-4
encrypted_password: AES:Xk7kcmDfGQ1lV6iVc3/T0g==:3/PY8d7OaWV29auuwiJwiQ==
github-pr:
scm: b787b203-091c-4fbf-881d-8b7d60b3f184
blacklist:
- blha/*
destination: adsf-23
npmjs_express:
package: 513068fa-04b6-4093-82c1-1ea264eea07b
stages:
- stage:
fetch_materials: true
keep_artifacts: true
clean_workspace: true
approval:
type: success
allow_only_on_success: true
roles:
- xyz
users:
- jez
environment_variables:
env11: value11
secure_variables:
admin: AES:Sg3qhHAbAvgnEcFRLW0Csw==:d+e9SFOnrXn9ittPZRrX4Q==
jobs:
job:
timeout: 10
environment_variables:
env1: value1
secure_variables:
admin: AES:/UmQCc+mLmct5zf9lp5jig==:XEaWlN6/Gmf1CLyqR27W/w==
tabs:
tab1: /path/to/home
tab2: /path/to/home/again
resources:
- chrome
- firefox
- linux
artifacts:
- build:
source: build-src
destination: dest
- test:
source: test-src
destination: testoutput
- external:
id: blah
store_id: store
configuration:
options:
BuildFile: ''
Tag: ''
Image: some-image
tasks:
- exec:
on_cancel:
exec:
arguments:
- -f
- java
command: pkill
working_directory: something
run_if: passed
arguments:
- -alh
command: ls
working_directory: something
run_if: failed
- fetch:
on_cancel:
exec:
arguments:
- -alh
command: ls
working_directory: something
run_if: passed
is_file: true
source: asfd
destination: ''
pipeline: up42
stage: up42_stage
job: up42_job
run_if: passed
- plugin:
on_cancel:
exec:
arguments:
- -alhg
command: ls
working_directory: asdfa
run_if: passed
configuration:
id: gradle.task.plugin
version: '1'
options:
GradleHome: ''
Tasks: asdf
Daemon: 'true'
UseWrapper: 'true'
MakeWrapperExecutable: 'true'
Offline: 'true'
Debug: 'true'
AdditionalOptions: something:is-awesome
run_if: passed
parameters:
param1: value1
param2: value2 |
|
Merging all the commits from this PR as is, as the commits are made considering individual page/section changes and also include some minor bug fixes. It will be easier to revert a particular commit in-case something goes wrong. |
Show Config Repository Pipeline Configurations in read-only mode
Top Level Changes
Can not edit pipeline 'yaml-example' as it is defined in the config repository!/go/admin/pipelines/yaml-example/generalpage accessible for config repo pipelinesPipeline Config Edit Page Changes
Disable/Remove
Savebutton.Disable/Remove
Cancelbutton.Pipeline
Materials
Stage
Job
Task
Templates
Fix pages linking to the pipeline config edit page. Tracked separately at: Enable settings icon for config repo pipelines from all GoCD pages #7401
Screenshots