You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-10Lines changed: 44 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,13 @@ you can find examples of correct environments at the [bottom](#environment).
119
119
120
120
Please note that it is now recommended to declare the _same_`format_version` in each `*.gopipeline.json` or `*.goenvironment.json` file.
121
121
122
-
#### GoCD server version from 19.3.0 and beyond
122
+
#### GoCD server version from 19.4.0 and beyond
123
+
124
+
Supports `format_version` value of `5`. In this version, support of `username` and `encrypted_password` for [git](#git-material-update) and [hg](#hg-material-update) material has been added.
125
+
126
+
Using a newer `format_version` includes all the behavior of the previous versions too.
127
+
128
+
#### GoCD server version from 19.3.0 to 19.4.0
123
129
124
130
Supports `format_version` value of `4`. In this version, support has been added to control the [display order of pipelines](#display-order-of-pipelines).
125
131
@@ -530,14 +536,30 @@ All scm materials can have filter object:
530
536
"shallow_clone": true
531
537
}
532
538
```
539
+
<aname="git-material-update"/>
540
+
541
+
For **GoCD >= 19.4.0 and `format_version: 5` and above**:
542
+
543
+
You need to specify `username` and `encrypted_password` explicitly as such
544
+
545
+
```json
546
+
{
547
+
"url": "http://my.git.repository.com",
548
+
"branch": "feature12",
549
+
"username": "user1",
550
+
"encrypted_password": "encrypted_value"
551
+
}
552
+
```
553
+
554
+
Instead of `encrypted_password` you may specify `password` but `encrypted_password` makes more sense considering that the value is stored in SCM.
533
555
534
556
## Svn
535
557
536
558
```json
537
559
{
538
560
"url": "http://svn",
539
561
"username": "user1",
540
-
"password": "pass1",
562
+
"encrypted_password": "encrypted_value",
541
563
"check_externals": true,
542
564
"filter": {
543
565
"ignore": [
@@ -552,8 +574,7 @@ All scm materials can have filter object:
552
574
}
553
575
```
554
576
555
-
Instead of plain `password` you may specify `encrypted_password` with encrypted content
556
-
which usually makes more sense considering that value is stored in SCM.
577
+
Instead of `encrypted_password` you may specify `password` but `encrypted_password` makes more sense considering that the value is stored in SCM.
557
578
558
579
## Hg
559
580
@@ -572,14 +593,29 @@ which usually makes more sense considering that value is stored in SCM.
572
593
"type": "hg"
573
594
}
574
595
```
596
+
<aname="hg-material-update"/>
597
+
598
+
For **GoCD >= 19.4.0 and `format_version: 5` and above**:
599
+
600
+
You need to specify `username` and `encrypted_password` explicitly as such
601
+
602
+
```json
603
+
{
604
+
"url": "repos/myhg",
605
+
"username": "user1",
606
+
"encrypted_password": "encrypted_value"
607
+
}
608
+
```
609
+
610
+
Instead of `encrypted_password` you may specify `password` but `encrypted_password` makes more sense considering that the value is stored in SCM.
575
611
576
612
## Perforce
577
613
578
614
```json
579
615
{
580
616
"port": "10.18.3.102:1666",
581
617
"username": "user1",
582
-
"password": "pass1",
618
+
"encrypted_password": "encrypted_value",
583
619
"use_tickets": false,
584
620
"view": "//depot/dev/src... //anything/src/...",
585
621
"filter": {
@@ -595,8 +631,7 @@ which usually makes more sense considering that value is stored in SCM.
595
631
}
596
632
```
597
633
598
-
Instead of plain `password` you may specify `encrypted_password` with encrypted content
599
-
which usually makes more sense considering that value is stored in SCM.
634
+
Instead of `encrypted_password` you may specify `password` but `encrypted_password` makes more sense considering that the value is stored in SCM.
600
635
601
636
## Tfs
602
637
@@ -605,7 +640,7 @@ which usually makes more sense considering that value is stored in SCM.
605
640
"url": "url3",
606
641
"username": "user4",
607
642
"domain": "example.com",
608
-
"password": "pass",
643
+
"encrypted_password": "encrypted_value",
609
644
"project": "projectDir",
610
645
"filter": {
611
646
"ignore": [
@@ -620,8 +655,7 @@ which usually makes more sense considering that value is stored in SCM.
620
655
}
621
656
```
622
657
623
-
Instead of plain `password` you may specify `encrypted_password` with encrypted content
624
-
which usually makes more sense considering that value is stored in SCM.
658
+
Instead of `encrypted_password` you may specify `password` but `encrypted_password` makes more sense considering that the value is stored in SCM.
0 commit comments