Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Stuff to Read.md #27

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 47 additions & 30 deletions Jenkinsfile.unix
Original file line number Diff line number Diff line change
@@ -1,42 +1,59 @@
/*
* Copyright © 2010 - 2013 Apama Ltd.
* Copyright © 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

pipeline {
agent any

environment {
ZIPNAME = "webmethods-${BUILD_NUMBER}.zip"
APPNAME = 'dmo00_wbm(wm107_default_is)' // This is the name o the XLD application
APP_TLA = 'DMO'
PROJECT = 'dmo00'
GROUP_ID = 'dmo00_wbm'
ZIP_PATH = '/opt/softwareag/IntegrationServer/instances/default/replicate/inbound'
XML_PATH = '/opt/softwareag/IntegrationServer/instances/default/properties'
WBM_APPNAME = 'wm107_instance_is' //WBM_APPNAME is the name of the application in webmethods
}
parameters {
choice(name: 'TARGET_INSTANCE', choices: ['default'], description: 'Pick the target IS instance the wM Code you want to deploy')
choice(name: 'TARGET_ENV', choices: ['DV'], description: 'Pick the target environment the wM Code you want to deploy')
string(name: 'BUILD_BRANCH', defaultValue: 'release/*', description: 'Name of the Branch')
}

stages {
stage('Build'){
stage('Clean Workspace'){
steps{
echo 'Cleaning the jenkins Workspace before the build'
always {
cleanWs()
}
echo "Deleting OLD artifacts if any"
sh "rm -rf zips/webmethods-*.zip"
}
}// Cleaning the jenkins Workspace before the build
stage('git commit') {
steps{
script{
gitCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
SCMREVISION = gitCommit.take(8)
currentBuild.description = APPNAME
echo """
ZIP_PATH : ${ZIP_PATH}
XML_PATH : ${XML_PATH}
ZIPNAME : ${ZIPNAME}
BUILD_BRANCH : ${BUILD_BRANCH}
SCMREVISION : ${SCMREVISION}
APPNAME : ${APPNAME}
"""
}
}
}
stage('Build deployables'){
steps {
sh "${env.SAG_HOME}/common/lib/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} build"
echo 'Starting to build webMethods assets using webMethods ABE'
sh "${env.SAG_HOME}/common/lib/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${GROUP_ID}_${WBM_APPNAME} -DAPP_TLA=${APP_TLA} -DTARGET_INSTANCE=${TARGET_INSTANCE} -DTARGET_ENV =${TARGET_ENV} build"
}
}
}// End Build deployables
stage('Deploy') {
steps {
sh "${env.SAG_HOME}/common/lib/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} deploy"
}
}
stage('Test') {
steps {
sh "${env.SAG_HOME}/common/lib/ant/bin/ant -DSAGHome=${env.SAG_HOME} -DSAG_CI_HOME=${env.SAG_CI_HOME} -DprojectName=${env.JOB_NAME} test"
junit 'report/'
}
}
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ For more information you can Ask a Question in the [Tech Community Forums](https

You can find additional information in the [Software AG Tech Community](https://tech.forums.softwareag.com/tag/webmethods).
____________________
Contact us at [Tech Community](mailto:technologycommunity@softwareag.com?subject=Github/SoftwareAG) if you have any questions.

test - test - test
Empty file added assets/IS/Packages/.gitkeep
Empty file.
34 changes: 34 additions & 0 deletions assets/IS/Packages/DMO_CICD_LSD/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="code/source"/>
<classpathentry kind="lib" path="code/jars"/>
<classpathentry kind="lib" path="lib"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="IS_CLIENT"/>
<classpathentry kind="var" path="IS_SERVER"/>
<classpathentry kind="var" path="IS_ENTTK"/>
<classpathentry kind="var" path="IS_MAIL"/>
<classpathentry kind="var" path="IS_G11N"/>
<classpathentry kind="var" path="IS_ICU4J"/>
<classpathentry kind="var" path="IS_WSDL4J"/>
<classpathentry kind="var" path="IS_CORE"/>
<classpathentry kind="var" path="IS_EDITOR"/>
<classpathentry kind="var" path="IS_UIUTILS"/>
<classpathentry kind="var" path="ECLIPSE_OSGI"/>
<classpathentry kind="var" path="ECLIPSE_EQUINOX"/>
<classpathentry kind="var" path="ECLIPSE_DRAW2D"/>
<classpathentry kind="var" path="ECLIPSE_JFACE"/>
<classpathentry kind="var" path="ECLIPSE_SWT"/>
<classpathentry kind="var" path="ECLIPSE_CORECMD"/>
<classpathentry kind="var" path="ECLIPSE_CORERUN"/>
<classpathentry kind="var" path="ECLIPSE_UIWB"/>
<classpathentry kind="var" path="ECLIPSE_PREF"/>
<classpathentry kind="var" path="ECLIPSE_JOBS"/>
<classpathentry kind="var" path="ECLIPSE_EQREG"/>
<classpathentry kind="var" path="ECLIPSE_E4_UIWB"/>
<classpathentry kind="var" path="ECLIPSE_E4_UIWB3"/>
<classpathentry kind="var" path="ECLIPSE_E4_MWB"/>
<classpathentry kind="var" path="ECLIPSE_OSGI_SVC"/>
<classpathentry kind="var" path="ECLIPSE_E4_CORE"/>
<classpathentry kind="output" path="code/classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>FibonachiTest</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DMO_CICD_LSD</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.softwareag.is.vcsintegration.ISPackageBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.softwareag.is.vcsintegration.nature</nature>
</natures>
</projectDescription>
13 changes: 13 additions & 0 deletions assets/IS/Packages/DMO_CICD_LSD/manifest.v3
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>

<Values version="2.0">
<value name="enabled">yes</value>
<value name="system_package">no</value>
<value name="version">1.0</value>
<null name="startup_services"/>
<null name="shutdown_services"/>
<null name="replication_services"/>
<null name="requires"/>
<null name="listACL"/>
<value name="webappLoad">yes</value>
</Values>
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="UTF-8"?>

<FLOW VERSION="3.0" CLEANUP="true">

<!-- nodes -->

<INVOKE TIMEOUT="" SERVICE="pub.math:addInts" VALIDATE-IN="$none" VALIDATE-OUT="$none">
<COMMENT></COMMENT>

<!-- nodes -->

<MAP MODE="INPUT">
</MAP>

<MAP MODE="OUTPUT">
<MAPTARGET>

<Values version="2.0">
<record name="xml" javaclass="com.wm.util.Values">
<value name="node_type">record</value>
<value name="node_subtype">unknown</value>
<value name="is_public">false</value>
<value name="field_type">record</value>
<value name="field_dim">0</value>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
<array name="rec_fields" type="record" depth="1">
<record javaclass="com.wm.util.Values">
<value name="node_type">record</value>
<value name="node_subtype">unknown</value>
<value name="node_comment"></value>
<record name="node_hints" javaclass="com.wm.util.Values">
<value name="field_usereditable">true</value>
<value name="field_largerEditor">false</value>
<value name="field_password">false</value>
</record>
<value name="is_public">false</value>
<value name="field_name">num1</value>
<value name="field_type">string</value>
<value name="field_dim">0</value>
<array name="field_options" type="value" depth="1">
</array>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
</record>
<record javaclass="com.wm.util.Values">
<value name="node_type">record</value>
<value name="node_subtype">unknown</value>
<value name="node_comment"></value>
<record name="node_hints" javaclass="com.wm.util.Values">
<value name="field_usereditable">true</value>
<value name="field_largerEditor">false</value>
<value name="field_password">false</value>
</record>
<value name="is_public">false</value>
<value name="field_name">num2</value>
<value name="field_type">string</value>
<value name="field_dim">0</value>
<array name="field_options" type="value" depth="1">
</array>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
</record>
<record javaclass="com.wm.util.Values">
<value name="node_type">field</value>
<value name="node_subtype">unknown</value>
<value name="is_public">false</value>
<value name="field_name">value</value>
<value name="field_type">string</value>
<value name="field_dim">0</value>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
</record>
<record javaclass="com.wm.util.Values">
<value name="node_type">record</value>
<value name="node_subtype">unknown</value>
<value name="node_comment"></value>
<record name="node_hints" javaclass="com.wm.util.Values">
<value name="field_usereditable">true</value>
<value name="field_largerEditor">false</value>
<value name="field_password">false</value>
</record>
<value name="is_public">false</value>
<value name="field_name">result</value>
<value name="field_type">string</value>
<value name="field_dim">0</value>
<array name="field_options" type="value" depth="1">
</array>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
</record>
</array>
<value name="modifiable">true</value>
</record>
</Values>
</MAPTARGET>
<MAPSOURCE>

<Values version="2.0">
<record name="xml" javaclass="com.wm.util.Values">
<value name="node_type">record</value>
<value name="node_subtype">unknown</value>
<value name="is_public">false</value>
<value name="field_name">addIntsOutput</value>
<value name="field_type">record</value>
<value name="field_dim">0</value>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
<array name="rec_fields" type="record" depth="1">
<record javaclass="com.wm.util.Values">
<value name="node_type">field</value>
<value name="node_subtype">unknown</value>
<value name="is_public">false</value>
<value name="field_name">value</value>
<value name="field_type">string</value>
<value name="field_dim">0</value>
<value name="nillable">true</value>
<value name="form_qualified">false</value>
<value name="is_global">false</value>
</record>
</array>
<value name="modifiable">true</value>
</record>
</Values>
</MAPSOURCE>

<!-- nodes -->

<MAPCOPY FROM="/value;1;0" TO="/result;1;0">
</MAPCOPY>

<MAPDELETE FIELD="/value;1;0">
</MAPDELETE>
</MAP>
</INVOKE>
</FLOW>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<FLOW VERSION="3.0" CLEANUP="true">
</FLOW>
Loading