-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding runTest Api and also java_opts and maven_opts (#91)
Adding runTest Api and adding envVar as a param to spawn API
- Loading branch information
1 parent
5a23264
commit b74c5f4
Showing
4 changed files
with
76 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
def call(Map args) { | ||
stage("Run Tests") { | ||
if (!args.commands) { | ||
error "Missing manadatory parameter: commands, please specify the command to run test" | ||
} | ||
def image = args.image | ||
if (!image) { | ||
image = config.runtime() ?: 'oc' | ||
} | ||
spawn(image: image, version: config.version(), commands: args.commands) | ||
} | ||
} |
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,5 @@ | ||
import io.openshift.Utils; | ||
|
||
def call() { | ||
return Utils.usersNamespace() | ||
} |