Merge "Committing the changes of Locate cred tags to Gerrit."
authorJohn Franey <john.franey@att.com>
Tue, 11 Aug 2020 17:58:46 +0000 (17:58 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 11 Aug 2020 17:58:46 +0000 (17:58 +0000)
Jenkinsfile [new file with mode: 0644]
misc/xgen/src/main/java/org/onap/aaf/misc/xgen/XGen.java
misc/xgen/src/main/java/org/onap/aaf/misc/xgen/html/HTML5Gen.java
releases/2.7.0.yaml [new file with mode: 0644]
version.properties

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644 (file)
index 0000000..d9b0710
--- /dev/null
@@ -0,0 +1,14 @@
+#!groovy
+
+properties([[$class: 'ParametersDefinitionProperty', parameterDefinitions: [
+[$class: 'hudson.model.StringParameterDefinition', name: 'ECO_PIPELINE_ID', defaultValue: '0', description: 'Select an environment'],
+[$class: 'hudson.model.StringParameterDefinition', name: 'PHASE', defaultValue: 'BUILD, PACKAGE, SONAR, SAST', description: 'Select an instance'],
+[$class: 'hudson.model.StringParameterDefinition', name: 'TARGET_NODE', defaultValue: 'zld03318.vci.att.com', description: 'Select an environment to deploy to']
+]]])
+
+def wf = new MavenWorkflow()
+
+wf defaultPhase:'BUILD, SONAR, SAST, DAST',
+   language:'MAVEN',
+   deployType: 'SWM',
+   deployOptions:"swm:install -Dswm.target.node=${params.TARGET_NODE}"
index b68ad6e..258715e 100644 (file)
@@ -151,7 +151,9 @@ public class XGen<RT extends XGen<RT>> {
 \r
     @SuppressWarnings("unchecked")\r
     public RT text(String txt) {\r
-        forward.append(txt);\r
+       if(txt!=null) {\r
+               forward.append(txt);\r
+       }\r
         return (RT)this;\r
     }\r
     \r
@@ -182,8 +184,12 @@ public class XGen<RT extends XGen<RT>> {
         for (int i=0;i<tabs;++i) {\r
             forward.append("  ");\r
         }\r
-        forward.append(txt);\r
-        if (pretty)forward.println();\r
+        if(txt!=null) {\r
+               forward.append(txt);\r
+        }\r
+       if (pretty) {\r
+               forward.println();\r
+       }\r
         return (RT)this;\r
     }\r
 \r
index 89a39b3..7cf3929 100644 (file)
@@ -32,7 +32,7 @@ public class HTML5Gen extends HTMLGen {
 \r
     @Override\r
     public HTMLGen html(String ... attrib) {\r
-        //forward.println("<!DOCTYPE html>");\r
+        forward.println("<!DOCTYPE html>");\r
         incr("html",attrib);\r
         return this;\r
     }\r
diff --git a/releases/2.7.0.yaml b/releases/2.7.0.yaml
new file mode 100644 (file)
index 0000000..9cea6b4
--- /dev/null
@@ -0,0 +1,4 @@
+distribution_type: 'maven'
+version: '2.7.0'
+project: 'aaf-authz'
+log_dir: 'aaf-authz-maven-stage-master/448/'
index 02ce089..38e2752 100644 (file)
 # Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )
 # because they are used in Jenkins, whose plug-in doesn't support
 
-# This TAG <version>2.1.21-SNAPSHOT</version> is here to help remember to change this file.  Keep it up to date with the following "real" entries:
+# This TAG <version>2.7.0-SNAPSHOT</version> is here to help remember to change this file.  Keep it up to date with the following "real" entries:
 major=2
-minor=1
-patch=21
+minor=7
+patch=0
 
 base_version=${major}.${minor}.${patch}