public class SMAUtility extends Object
Constructor and Description |
---|
SMAUtility() |
Modifier and Type | Method and Description |
---|---|
static String |
checkMeta(String repoItem)
We don't actually want to load the -meta.xml files, so we use this to get the real item and handle the -metas
elsewhere since both components are required for deployment.
|
static String |
findPackage(File directory)
Helper to find an existing package.xml file in the provided repository
|
static void |
printMetadataToConsole(hudson.model.BuildListener listener,
List<SMAMetadata> metadataList)
Prints a set of metadata names to the Jenkins console
|
static String |
searchForTestClass(List<String> allMetadata,
String testClassRegex)
Searches for a possible unit tests in the repository for a given set of metadata
|
static void |
writeZip(ByteArrayOutputStream zipBytes,
String location)
Helper to write the zip to a file location
|
static ByteArrayOutputStream |
zipPackage(Map<String,byte[]> deployData,
SMAPackage packageManifest,
SMAPackage destructiveChange)
Creates a zipped byte array of the deployment or rollback package
|
public static ByteArrayOutputStream zipPackage(Map<String,byte[]> deployData, SMAPackage packageManifest, SMAPackage destructiveChange) throws Exception
deployData
- packageManifest
- destructiveChange
- Exception
public static void writeZip(ByteArrayOutputStream zipBytes, String location) throws Exception
zipBytes
- location
- Exception
public static String findPackage(File directory)
directory
- public static String checkMeta(String repoItem)
repoItem
- public static void printMetadataToConsole(hudson.model.BuildListener listener, List<SMAMetadata> metadataList)
listener
- metadataList
- Copyright © 2004-2016. All Rights Reserved.