Merge pull request #37 from hsbt/add-template
added missing template for build_wrapper(revised)
This commit is contained in:
commit
78d18b7ce9
|
@ -0,0 +1,30 @@
|
|||
class <%= name.capitalize %>Wrapper < Jenkins::Tasks::BuildWrapper
|
||||
display_name "<%= name.capitalize %> build wrapper"
|
||||
|
||||
# Invoked with the form parameters when this extension point
|
||||
# is created from a configuration screen.
|
||||
def initialize(attrs = {})
|
||||
|
||||
end
|
||||
|
||||
# Perform setup for a build
|
||||
#
|
||||
# invoked after checkout, but before any `Builder`s have been run
|
||||
# @param [Jenkins::Model::Build] build the build about to run
|
||||
# @param [Jenkins::Launcher] launcher a launcher for the orderly starting/stopping of processes.
|
||||
# @param [Jenkins::Model::Listener] listener channel for interacting with build output console
|
||||
def setup(build, launcher, listener)
|
||||
|
||||
end
|
||||
|
||||
# Optionally perform optional teardown for a build
|
||||
#
|
||||
# invoked after a build has run for better or for worse. It's ok if subclasses
|
||||
# don't override this.
|
||||
#
|
||||
# @param [Jenkins::Model::Build] the build which has completed
|
||||
# @param [Jenkins::Model::Listener] listener channel for interacting with build output console
|
||||
def teardown(build, listener)
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue