-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8303ad7
commit 2934f82
Showing
11 changed files
with
137 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/usr/bin/env groovy | ||
import net.wooga.jenkins.pipeline.config.PipelineConfig | ||
|
||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Step buildGradlePlugin // | ||
// // | ||
// // | ||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
def call(PipelineConfig config, List<Closure> stageFactoriesList) { | ||
pipeline { | ||
agent none | ||
|
||
options { | ||
buildDiscarder(logRotator(artifactNumToKeepStr: '40')) | ||
} | ||
|
||
parameters { | ||
choice(choices: ["snapshot", "rc", "final"], description: 'Choose the distribution type', name: 'RELEASE_TYPE') | ||
choice(choices: ["", "patch", "minor", "major"], description: 'Choose the change scope', name: 'RELEASE_SCOPE') | ||
choice(choices: ["", "quiet", "info", "warn", "debug"], description: 'Choose the log level', name: 'LOG_LEVEL') | ||
booleanParam(defaultValue: false, description: 'Whether to log truncated stacktraces', name: 'STACK_TRACE') | ||
booleanParam(defaultValue: false, description: 'Whether to refresh dependencies', name: 'REFRESH_DEPENDENCIES') | ||
booleanParam(defaultValue: false, description: 'Whether to clear workspaces after build', name: 'CLEAR_WS') | ||
} | ||
|
||
stages { | ||
stage('Preparation') { | ||
agent any | ||
steps { | ||
sendSlackNotification "STARTED", true | ||
script { | ||
for(Closure stageFactory: stageFactoriesList) { | ||
def stage = stageFactory() as Closure | ||
stage.call() | ||
} | ||
} | ||
} | ||
post { | ||
cleanup { | ||
script { | ||
if (config.mainPlatform.clearWs) { | ||
cleanWs() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
sendSlackNotification currentBuild.result, true | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.