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 {
|
||||
buildDiscarder(logRotator(numToKeepStr: '25'))
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
ansiColor('xterm')
|
||||
timestamps()
|
||||
}
|
||||
|
||||
@ -19,7 +18,7 @@ def call(Map configurations) {
|
||||
|
||||
stage("Source Codes Checkout") {
|
||||
steps {
|
||||
scripts {
|
||||
script {
|
||||
def sourceFetcher = new SourceFetcher(this)
|
||||
sourceFetcher.fetch(configurations)
|
||||
}
|
||||
@ -36,7 +35,7 @@ def call(Map configurations) {
|
||||
|
||||
stage("Commit Linting If Enabled") {
|
||||
steps {
|
||||
scripts {
|
||||
script {
|
||||
def enabled = "${configurations.COMMIT_MESSAGE_LINT_ENABLED}"
|
||||
|
||||
if (enabled == "true") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user