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
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ Please note that it is now recommended to declare the _same_ `format_version` in
121
121
122
122
#### GoCD server version from 19.4.0 and beyond
123
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.
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. In addition to that, [hg](#hg-material-update) will also support `branch` attribute.
125
125
126
126
Using a newer `format_version` includes all the behavior of the previous versions too.
127
127
@@ -533,14 +533,16 @@ All scm materials can have filter object:
533
533
"auto_update": false,
534
534
"name": "gitMaterial1",
535
535
"type": "git",
536
-
"shallow_clone": true
536
+
"shallow_clone": true,
537
+
"username": "user1",
538
+
"encrypted_password": "encrypted_value"
537
539
}
538
540
```
539
541
<aname="git-material-update"/>
540
542
541
543
For **GoCD >= 19.4.0 and `format_version: 5` and above**:
542
544
543
-
You need to specify`username` and `encrypted_password`explicitly as such
545
+
You are advised to utilize`username` and `encrypted_password`for passing in material credentials as:
544
546
545
547
```json
546
548
{
@@ -590,14 +592,17 @@ Instead of `encrypted_password` you may specify `password` but `encrypted_passwo
590
592
"destination": "dir1",
591
593
"auto_update": false,
592
594
"name": "hgMaterial1",
593
-
"type": "hg"
595
+
"type": "hg",
596
+
"username": "user1",
597
+
"encrypted_password": "encrypted_value",
598
+
"branch": "feature"
594
599
}
595
600
```
596
601
<aname="hg-material-update"/>
597
602
598
603
For **GoCD >= 19.4.0 and `format_version: 5` and above**:
599
604
600
-
You need to specify`username` and `encrypted_password`explicitly as such
605
+
You are advised to utilize`username` and `encrypted_password`for passing in material credentials as:
601
606
602
607
```json
603
608
{
@@ -606,9 +611,16 @@ You need to specify `username` and `encrypted_password` explicitly as such
606
611
"encrypted_password": "encrypted_value"
607
612
}
608
613
```
609
-
610
614
Instead of `encrypted_password` you may specify `password` but `encrypted_password` makes more sense considering that the value is stored in SCM.
611
615
616
+
In addition to that, you can also leverage `branch` attribute to specify the branch for material
0 commit comments