refactor(pipelineCall): replace 'scripts' block with 'script' for consistency
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
1896034cde
commit
1b969d81a7
@ -11,7 +11,6 @@ def call(Map configurations) {
|
|||||||
options {
|
options {
|
||||||
buildDiscarder(logRotator(numToKeepStr: '25'))
|
buildDiscarder(logRotator(numToKeepStr: '25'))
|
||||||
timeout(time: 30, unit: 'MINUTES')
|
timeout(time: 30, unit: 'MINUTES')
|
||||||
ansiColor('xterm')
|
|
||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -19,7 +18,7 @@ def call(Map configurations) {
|
|||||||
|
|
||||||
stage("Source Codes Checkout") {
|
stage("Source Codes Checkout") {
|
||||||
steps {
|
steps {
|
||||||
scripts {
|
script {
|
||||||
def sourceFetcher = new SourceFetcher(this)
|
def sourceFetcher = new SourceFetcher(this)
|
||||||
sourceFetcher.fetch(configurations)
|
sourceFetcher.fetch(configurations)
|
||||||
}
|
}
|
||||||
@ -36,7 +35,7 @@ def call(Map configurations) {
|
|||||||
|
|
||||||
stage("Commit Linting If Enabled") {
|
stage("Commit Linting If Enabled") {
|
||||||
steps {
|
steps {
|
||||||
scripts {
|
script {
|
||||||
def enabled = "${configurations.COMMIT_MESSAGE_LINT_ENABLED}"
|
def enabled = "${configurations.COMMIT_MESSAGE_LINT_ENABLED}"
|
||||||
|
|
||||||
if (enabled == "true") {
|
if (enabled == "true") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user