Add pipeline and config file for testing groovy syntax
Change-Id: Ia546a50079026aa2afc28180a190f7e5ed3d5c93
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..3847c12
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'groovy'
+apply plugin: 'codenarc'
+
+def jcenterRepo = System.getenv('ARTIFACTORY_URL') ?: 'https://artifactory.mcp.mirantis.net/jcenter'
+
+sourceSets {
+ main {
+ groovy {
+ srcDirs = ['src', 'vars']
+ }
+ }
+}
+
+compileGroovy.enabled = true
+
+repositories {
+ maven {
+ url jcenterRepo
+ }
+}
+
+codenarc {
+ configFile = new File('codenarcRules.groovy')
+ reportFormat = 'text'
+}