Skip to content

Commit ecbf252

Browse files
committed
Operand 11.0.0.9-r1 Changes
1 parent aaec4ee commit ecbf252

File tree

1,609 files changed

+2053
-836123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,609 files changed

+2053
-836123
lines changed

Jenkinsfile

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
pipeline {
2+
agent any
3+
environment {
4+
BUILD_TIMESTAMP = sh(script: ' date +"%Y%m%d-%H%M%S"', , returnStdout: true).trim()
5+
}
6+
options {
7+
timestamps ()
8+
}
9+
stages {
10+
stage('amd64 image build') {
11+
when {
12+
expression { params.BUILD_PLATFORM == 'amd64-only' || params.BUILD_PLATFORM == 'both' }
13+
}
14+
agent { label 'cf_slave' }
15+
steps {
16+
echo BRANCH_TO_BUILD
17+
deleteDir()
18+
checkout scm
19+
dir('ot4i-ace-docker') {
20+
git credentialsId: 'ffbld01_git_key', poll: false, url: '[email protected]:Cloud-Integration/ot4i-ace-docker.git', branch: "${params.BRANCH_TO_BUILD}"
21+
}
22+
dir('hip-pipeline-common') {
23+
git credentialsId: 'ffbld01_git_key', poll: false, url: '[email protected]:Cloud-Integration/hip-pipeline-common.git', branch: 'master'
24+
}
25+
dir('firefly-software-build-scripts') {
26+
git credentialsId: 'ffbld01_git_key', poll: false, url: '[email protected]:Cloud-Integration/firefly-software-build-scripts.git', branch: "${params.FIREFLY_SOFTWARE_BUILD_SCRIPTS_BRANCH}"
27+
}
28+
withCredentials([usernamePassword(credentialsId: 'cf78bbfd-e303-4969-8cfd-cd57c3902f12', passwordVariable: 'ARTIFACTORY_PASS', usernameVariable: 'ARTIFACTORY_USER'), usernamePassword(credentialsId: '37361c4d-f3f7-4bf4-97a0-48463a5d2091', passwordVariable: 'GITHUB_API_TOKEN', usernameVariable: 'GITHUB_API_USER'), usernamePassword(credentialsId: 'cf78bbfd-e303-4969-8cfd-cd57c3902f12', passwordVariable: 'NPM_PASS', usernameVariable: 'NPM_USER'), string(credentialsId: 'APPCONNECT_NPM_AUTH', variable: 'NPM_AUTH')]) {
29+
sh '''
30+
bash -c "
31+
pwd
32+
ls -l
33+
ls -l ${WORKSPACE}/jenkins-build-scripts
34+
${WORKSPACE}/jenkins-build-scripts/jenkins-build-script.sh
35+
"
36+
'''
37+
}
38+
}
39+
}
40+
stage('s390x image build') {
41+
when {
42+
expression { params.BUILD_PLATFORM == 's390x-only' || params.BUILD_PLATFORM == 'both' }
43+
}
44+
agent { label 'zlinux-ACEcc' }
45+
steps {
46+
echo BRANCH_TO_BUILD
47+
deleteDir()
48+
checkout scm
49+
dir('ot4i-ace-docker') {
50+
git credentialsId: 'ffbld01_git_key', poll: false, url: '[email protected]:Cloud-Integration/ot4i-ace-docker.git', branch: "${params.BRANCH_TO_BUILD}"
51+
}
52+
dir('hip-pipeline-common') {
53+
git credentialsId: 'ffbld01_git_key', poll: false, url: '[email protected]:Cloud-Integration/hip-pipeline-common.git', branch: 'master'
54+
}
55+
dir('firefly-software-build-scripts') {
56+
git credentialsId: 'ffbld01_git_key', poll: false, url: '[email protected]:Cloud-Integration/firefly-software-build-scripts.git', branch: "${params.FIREFLY_SOFTWARE_BUILD_SCRIPTS_BRANCH}"
57+
}
58+
withCredentials([usernamePassword(credentialsId: 'cf78bbfd-e303-4969-8cfd-cd57c3902f12', passwordVariable: 'ARTIFACTORY_PASS', usernameVariable: 'ARTIFACTORY_USER'), usernamePassword(credentialsId: '37361c4d-f3f7-4bf4-97a0-48463a5d2091', passwordVariable: 'GITHUB_API_TOKEN', usernameVariable: 'GITHUB_API_USER'), usernamePassword(credentialsId: 'cf78bbfd-e303-4969-8cfd-cd57c3902f12', passwordVariable: 'NPM_PASS', usernameVariable: 'NPM_USER'), string(credentialsId: 'APPCONNECT_NPM_AUTH', variable: 'NPM_AUTH')]) {
59+
sh '''
60+
bash -c "
61+
pwd
62+
ls -l
63+
ls -l ${WORKSPACE}/jenkins-build-scripts
64+
${WORKSPACE}/jenkins-build-scripts/jenkins-build-script.sh
65+
"
66+
'''
67+
}
68+
}
69+
}
70+
stage('Create Docker Manifests') {
71+
agent { label 'cf_slave' }
72+
steps {
73+
echo BRANCH_TO_BUILD
74+
deleteDir()
75+
checkout scm
76+
withCredentials([usernamePassword(credentialsId: 'cf78bbfd-e303-4969-8cfd-cd57c3902f12', passwordVariable: 'ARTIFACTORY_PASS', usernameVariable: 'ARTIFACTORY_USER')]) {
77+
sh '''
78+
# the docker manifest command is an experimental feature
79+
# so need to enable the docker client side experimental feature
80+
mkdir /home/jenkins/.docker
81+
echo '
82+
{
83+
"experimental": "enabled"
84+
}
85+
' > /home/jenkins/.docker/config.json
86+
bash -c "
87+
pwd
88+
ls -la
89+
${WORKSPACE}/jenkins-build-scripts/create-docker-manifests.sh
90+
"
91+
'''
92+
}
93+
}
94+
}
95+
stage ('Trigger Image Promotion Build') {
96+
steps {
97+
script {
98+
echo "Triggering image promotion build "
99+
def ImageName = "ace-server"
100+
def tag = "${TAG_VERSION}-${BUILD_TIMESTAMP}"
101+
def updateJSON = "false"
102+
if (env.BRANCH_TO_BUILD == 'master') {
103+
echo "Master branch so updating JSON doc"
104+
updateJSON = "true"
105+
}
106+
build job: 'ibm-appconnect-operator-test-images', wait: true, parameters: [
107+
[$class: 'StringParameterValue', name: "IMAGE_NAME", value: ImageName],
108+
[$class: 'StringParameterValue', name: "UPDATE_GOOD_IMAGES_JSON", value: updateJSON],
109+
[$class: 'StringParameterValue', name: 'IMAGE_TAG', value: tag]
110+
]
111+
}
112+
}
113+
}
114+
}
115+
post {
116+
fixed {
117+
slackSend channel: '#appcon-monza-feed', message: '*' + JOB_NAME + '*\n Successfully built branch - ' + BRANCH_TO_BUILD + '\nSee - ' + BUILD_URL, color: 'good'
118+
}
119+
failure {
120+
slackSend channel: '#appcon-monza-feed', message: '*' + JOB_NAME + '*:\n Failed to build branch - ' + BRANCH_TO_BUILD + '\nSee - ' + BUILD_URL, color: '#AA0114'
121+
}
122+
}
123+
}

ace_compile_bars.sh

100644100755
File mode changed.

ace_config_agent.sh

100644100755
File mode changed.

ace_config_bars.sh

100644100755
File mode changed.

ace_config_extensions.sh

100644100755
File mode changed.

ace_config_keystore.sh

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ if ls /home/aceuser/initial-config/keystore/*.key >/dev/null 2>&1; then
2222
fi
2323

2424
IFS=$'\n'
25+
KEYTOOL=/opt/ibm/ace-11/common/jdk/jre/bin/keytool
26+
if [ ! -f "$KEYTOOL" ]; then
27+
KEYTOOL=/opt/ibm/ace-11/common/jre/bin/keytool
28+
fi
2529
for keyfile in `ls /home/aceuser/initial-config/keystore/*.key`; do
2630
if [ -s "${keyfile}" ]; then
2731
if [ -z "${ACE_KEYSTORE_PASSWORD}" ]; then
@@ -48,7 +52,7 @@ if ls /home/aceuser/initial-config/keystore/*.key >/dev/null 2>&1; then
4852
fi
4953
logAndExitIfError $? "${OUTPUT}"
5054

51-
OUTPUT=$(/opt/ibm/ace-11/common/jdk/jre/bin/keytool -importkeystore -srckeystore /home/aceuser/ace-server/keystore.p12 -destkeystore /home/aceuser/ace-server/keystore.jks -srcstorepass ${ACE_KEYSTORE_PASSWORD} -deststorepass ${ACE_KEYSTORE_PASSWORD} -srcalias ${alias} -destalias ${alias} -srcstoretype PKCS12 -noprompt 2>&1)
55+
OUTPUT=$(${KEYTOOL} -importkeystore -srckeystore /home/aceuser/ace-server/keystore.p12 -destkeystore /home/aceuser/ace-server/keystore.jks -srcstorepass ${ACE_KEYSTORE_PASSWORD} -deststorepass ${ACE_KEYSTORE_PASSWORD} -srcalias ${alias} -destalias ${alias} -srcstoretype PKCS12 -noprompt 2>&1)
5256
logAndExitIfError $? "${OUTPUT}"
5357

5458
OUTPUT=$(rm /home/aceuser/ace-server/keystore.p12 2>&1)

ace_config_logging.sh

100644100755
File mode changed.

ace_config_odbcini.sh

100644100755
File mode changed.

ace_config_policy.sh

100644100755
File mode changed.

ace_config_serverconf.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)