mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Switch from gitLabel to gitChangeDocumentLabel
since we will have two labels in future. One for scanning changeDocumentIds and another one for scanning transportRequestIds
This commit is contained in:
parent
71ca78e0a9
commit
bb2ed27c10
@ -19,7 +19,7 @@ range and the pattern can be configured. For details see 'parameters' table.
|
||||
| `endpoint` | yes | | |
|
||||
| `gitFrom` | no | `origin/master` | |
|
||||
| `gitTo` | no | `HEAD` | |
|
||||
| `gitLabel` | no | `ChangeDocument\s?:` | regex pattern |
|
||||
| `gitChangeDocumentLabel` | no | `ChangeDocument\s?:` | regex pattern |
|
||||
|
||||
* `script` - The common script environment of the Jenkinsfile running. Typically the reference to the script calling the pipeline step is provided with the `this` parameter, as in `script: this`. This allows the function to access the [`commonPipelineEnvironment`](commonPipelineEnvironment.md) for retrieving, for example, configuration parameters.
|
||||
* `changeDocumentId` - The id of the change document to transport. If not provided, it is retrieved from the git commit history.
|
||||
@ -27,7 +27,7 @@ range and the pattern can be configured. For details see 'parameters' table.
|
||||
* `endpoint` - The address of the Solution Manager.
|
||||
* `gitFrom` - The starting point for retrieving the change document id
|
||||
* `gitTo` - The end point for retrieving the change document id
|
||||
* `gitLabel` - A pattern used for identifying lines holding the change document id.
|
||||
* `gitChangeDocumentLabel` - A pattern used for identifying lines holding the change document id.
|
||||
|
||||
## Step configuration
|
||||
The following parameters can also be specified as step parameters using the global configuration file:
|
||||
|
@ -28,7 +28,7 @@ public class ChangeManagement implements Serializable {
|
||||
def changeDocumentId = getChangeDocumentId(
|
||||
config.gitFrom,
|
||||
config.gitTo,
|
||||
config.gitLabel,
|
||||
config.gitChangeDocumentLabel,
|
||||
config.gitFormat
|
||||
)
|
||||
script.echo "[INFO] ChangeDocumentId '${changeDocumentId}' retrieved from git commit(s)."
|
||||
|
@ -102,7 +102,7 @@ public class ChangeManagementTest extends BasePiperTest {
|
||||
|
||||
def params = [ gitFrom: 'origin/master',
|
||||
gitTo: 'HEAD',
|
||||
gitLabel: 'ChangeDocument\\s?:',
|
||||
gitChangeDocumentLabel: 'ChangeDocument\\s?:',
|
||||
gitFormat: '%b']
|
||||
|
||||
def changeID = new ChangeManagement(nullScript, gitUtilsMock(true, changeIds)).getChangeDocumentId(params)
|
||||
|
@ -16,7 +16,7 @@ import com.sap.piper.cm.ChangeManagementException
|
||||
'failIfStatusIsNotInDevelopment',
|
||||
'gitFrom',
|
||||
'gitTo',
|
||||
'gitLabel',
|
||||
'gitChangeDocumentLabel',
|
||||
'gitFormat'
|
||||
]
|
||||
|
||||
@ -28,7 +28,7 @@ import com.sap.piper.cm.ChangeManagementException
|
||||
'failIfStatusIsNotInDevelopment',
|
||||
'gitFrom',
|
||||
'gitTo',
|
||||
'gitLabel',
|
||||
'gitChangeDocumentLabel',
|
||||
'gitFormat'
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user