mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
Rename externalPipelineExecute to pipelineExecute
This commit is contained in:
parent
bbe799fd19
commit
88ac3ae43e
@ -1,4 +1,4 @@
|
||||
# externalPipelineExecute
|
||||
# pipelineExecute
|
||||
|
||||
## Description
|
||||
Loads a pipeline from a git repository. The idea is to set up a pipeline job in Jenkins that loads a minimal pipeline, which in turn loads the shared library and then uses this step to load the actual pipeline.
|
||||
@ -37,5 +37,5 @@ none
|
||||
## Example
|
||||
|
||||
```groovy
|
||||
externalPipelineExecute repoUrl: "https://github.com/MyOrg/MyPipelineRepo.git", branch: 'feature1', path: 'path/to/Jenkinsfile', credentialsId: 'MY_REPO_CREDENTIALS'
|
||||
pipelineExecute repoUrl: "https://github.com/MyOrg/MyPipelineRepo.git", branch: 'feature1', path: 'path/to/Jenkinsfile', credentialsId: 'MY_REPO_CREDENTIALS'
|
||||
```
|
@ -4,7 +4,7 @@ pages:
|
||||
- 'Library steps':
|
||||
- commonPipelineEnvironment: steps/commonPipelineEnvironment.md
|
||||
- handlePipelineStepErrors: steps/handlePipelineStepErrors.md
|
||||
- externalPipelineExecute: steps/externalPipelineExecute.md
|
||||
- pipelineExecute: steps/pipelineExecute.md
|
||||
- toolValidate: steps/toolValidate.md
|
||||
- mtaBuild: steps/mtaBuild.md
|
||||
- neoDeploy: steps/neoDeploy.md
|
||||
|
@ -5,7 +5,7 @@ import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.rules.ExpectedException
|
||||
|
||||
class ExternalPipelineExecuteTest extends PiperTestBase {
|
||||
class PipelineExecuteTest extends PiperTestBase {
|
||||
|
||||
@Rule
|
||||
public ExpectedException thrown = new ExpectedException().none()
|
||||
@ -77,7 +77,7 @@ class ExternalPipelineExecuteTest extends PiperTestBase {
|
||||
execute() {
|
||||
|
||||
node() {
|
||||
externalPipelineExecute repoUrl: "https://test.com/myRepo.git"
|
||||
pipelineExecute repoUrl: "https://test.com/myRepo.git"
|
||||
}
|
||||
|
||||
}
|
||||
@ -93,7 +93,7 @@ class ExternalPipelineExecuteTest extends PiperTestBase {
|
||||
execute() {
|
||||
|
||||
node() {
|
||||
externalPipelineExecute repoUrl: "https://test.com/anotherRepo.git", branch: 'feature', path: 'path/to/Jenkinsfile', credentialsId: 'abcd1234'
|
||||
pipelineExecute repoUrl: "https://test.com/anotherRepo.git", branch: 'feature', path: 'path/to/Jenkinsfile', credentialsId: 'abcd1234'
|
||||
}
|
||||
|
||||
}
|
||||
@ -109,7 +109,7 @@ class ExternalPipelineExecuteTest extends PiperTestBase {
|
||||
execute() {
|
||||
|
||||
node() {
|
||||
externalPipelineExecute()
|
||||
pipelineExecute()
|
||||
}
|
||||
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
import com.sap.piper.Utils
|
||||
|
||||
/**
|
||||
* externalPipelineExecute
|
||||
* pipelineExecute
|
||||
* Load and executes a pipeline from another git repository.
|
||||
*
|
||||
*/
|
||||
def call(Map parameters = [:]) {
|
||||
|
||||
handlePipelineStepErrors (stepName: 'externalPipelineExecute', stepParameters: parameters) {
|
||||
handlePipelineStepErrors (stepName: 'pipelineExecute', stepParameters: parameters) {
|
||||
|
||||
def utils = new Utils()
|
||||
|
Loading…
x
Reference in New Issue
Block a user