Skip to content

Commit 3eafe3f

Browse files
achmelozowe-robot
andauthored
chore: env update in release (#4359)
Signed-off-by: ac892247 <[email protected]> Co-authored-by: Zowe Robot <[email protected]>
1 parent 8dd359d commit 3eafe3f

File tree

7 files changed

+61
-23
lines changed

7 files changed

+61
-23
lines changed

.github/workflows/automated-release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,23 @@ jobs:
5252
shell: bash
5353
run: |
5454
./gradlew release $RELEASE_ARGS -Prelease.useAutomaticVersion=true -Prelease.scope=${{ github.event.inputs.scope || env.DEFAULT_SCOPE }} -Pzowe.deploy.username=$ARTIFACTORY_USERNAME -Pzowe.deploy.password=$ARTIFACTORY_PASSWORD -Partifactory_user=$ARTIFACTORY_USERNAME -Partifactory_password=$ARTIFACTORY_PASSWORD
55-
released_version=$(cat gradle.properties | grep "version=" | sed "s/version=//g")
56-
sed -i "/REACT_APP_ZOWE_BUILD_INFO=/c\REACT_APP_ZOWE_BUILD_INFO=${released_version}" api-catalog-ui/frontend/.env
57-
git add api-catalog-ui/frontend/.env
58-
git commit -m "[skip ci] Update version"
59-
git push
55+
if [ -n "$RELEASE_ARGS" ]; then
56+
echo "RELEASE_ARGS is empty. Skipping api catalog .env update."
57+
else
58+
released_version=$(cat gradle.properties | grep "version=" | sed "s/version=//g")
59+
sed -i "/REACT_APP_ZOWE_BUILD_INFO=/c\REACT_APP_ZOWE_BUILD_INFO=${released_version}" api-catalog-ui/frontend/.env
60+
git add api-catalog-ui/frontend/.env
61+
git commit -m "[skip ci] Update version"
62+
git push
63+
fi
64+
6065
env:
6166
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
6267
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
6368
DEFAULT_SCOPE: 'patch'
6469
BUILD_NUMBER: ${{ github.run_number }}
6570
BRANCH_NAME: ${{ github.ref_name }}
6671
RELEASE_ARGS: ${{ github.event.inputs.enablers == 'true' && '-PreleaseEnablers' || '' }}
67-
6872
- name: Store test results
6973
uses: actions/upload-artifact@v4
7074
if: failure()

api-catalog-ui/frontend/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ REACT_APP_STATUS_UPDATE_MAX_RETRIES=10
88
REACT_APP_STATUS_UPDATE_DEBOUNCE=300
99
REACT_APP_CA_ENV=false
1010
REACT_APP_STATUS_UPDATE_SCALING_DURATION=1000
11-
REACT_APP_ZOWE_BUILD_INFO=3.3.16-SNAPSHOT
11+
REACT_APP_ZOWE_BUILD_INFO=3.3.21-SNAPSHOT
1212

apiml-package/src/main/resources/bin/start.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
# - ZWE_configs_storage_vsam_name
107107
# Optional variables:
108108

109+
add_profile() {
110+
new_profile=$1
111+
if [ -n "${ZWE_configs_spring_profiles_active}" ]; then
112+
ZWE_configs_spring_profiles_active="${ZWE_configs_spring_profiles_active},"
113+
fi
114+
ZWE_configs_spring_profiles_active="${ZWE_configs_spring_profiles_active}${new_profile}"
115+
}
116+
109117
if [ -n "${LAUNCH_COMPONENT}" ]; then
110118
JAR_FILE="${LAUNCH_COMPONENT}/apiml-lite.jar"
111119
else
@@ -180,14 +188,6 @@ if [ -n "${ZWE_configs_logging_config}" ]; then
180188
LOGBACK="-Dlogging.config=${ZWE_configs_logging_config}"
181189
fi
182190

183-
add_profile() {
184-
new_profile=$1
185-
if [ -n "${ZWE_configs_spring_profiles_active}" ]; then
186-
ZWE_configs_spring_profiles_active="${ZWE_configs_spring_profiles_active},"
187-
fi
188-
ZWE_configs_spring_profiles_active="${ZWE_configs_spring_profiles_active}${new_profile}"
189-
}
190-
191191
ATTLS_SERVER_ENABLED="false"
192192
ATTLS_CLIENT_ENABLED="false"
193193

enabler.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
version=3.3.18-SNAPSHOT
2+
version=3.3.19-SNAPSHOT

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ artifactoryPublishingMavenRepo=https://zowe.jfrog.io/zowe/libs-release-local
1717
artifactoryPublishingMavenSnapshotRepo=https://zowe.jfrog.io/zowe/libs-snapshot-local
1818

1919
# Artifacts version
20-
version=3.3.16
20+
version=3.3.21-SNAPSHOT
2121

2222
nodejsVersion=14.16.0
2323
cleanNodeModules=false

gradle/publish.gradle

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ ext.servicesToPublish = [
3636

3737
ext.zoweComponentsToPublish = ext.servicesToPublish + ext.javaLibraries
3838

39-
ext.sdksToPublish = ext.enablers + ext.javaLibraries
40-
4139
configure(subprojects.findAll { it.name in zoweComponentsToPublish }) {
4240
apply plugin: 'maven-publish'
4341
apply plugin: 'java'
@@ -84,7 +82,7 @@ if (enablerPropsFile.exists()) {
8482
//3. Get the version, or use the rootProject.version as a fallback
8583
def sdkVersion = enablerProps.getProperty("version")
8684

87-
configure(subprojects.findAll { it.name in sdksToPublish }) {
85+
configure(subprojects.findAll { it.name in enablers }) {
8886
apply plugin: 'maven-publish'
8987
apply plugin: 'java'
9088

@@ -116,7 +114,7 @@ configure(subprojects.findAll { it.name in sdksToPublish }) {
116114
}
117115
}
118116

119-
configure(subprojects.findAll { it.name in sdksToPublish }) {
117+
configure(subprojects.findAll { it.name in enablers }) {
120118
publishing {
121119
publications {
122120
mavenJava(MavenPublication) {
@@ -150,6 +148,41 @@ configure(subprojects.findAll { it.name in sdksToPublish }) {
150148
}
151149
}
152150

151+
}
152+
configure(subprojects.findAll { it.name in javaLibraries }) {
153+
publishing {
154+
publications {
155+
mavenJava(MavenPublication) {
156+
groupId 'org.zowe.apiml.sdk'
157+
version rootProject.version
158+
artifactId "${project.name}"
159+
160+
from components.java
161+
162+
pom.withXml {
163+
asNode().dependencies.'*'.findAll() {
164+
it.scope.text() == 'runtime' && project.configurations.implementation.allDependencies.find { dep ->
165+
dep.name == it.artifactId.text()
166+
}
167+
}.each { it.scope*.value = 'compile' }
168+
}
169+
}
170+
}
171+
}
172+
173+
tasks.withType(Jar) {
174+
manifest {
175+
attributes "Specification-Title": project.name
176+
attributes "Specification-Version": rootProject.version
177+
attributes "Specification-Vendor": "Zowe org"
178+
179+
attributes "Implementation-Title": project.name
180+
attributes "Implementation-Version": rootProject.version
181+
attributes "Implementation-Vendor": "Zowe org"
182+
attributes "Implementation-Vendor-Id": "org.zowe.apiml.sdk"
183+
}
184+
}
185+
153186
}
154187

155188
configure(subprojects.findAll { it.name in servicesToPublish }) {
@@ -186,7 +219,7 @@ ext.publishZoweServerTasksList = zoweComponentsToPublish.collect {
186219

187220
ext.publishTasksList = enablers.collect {
188221
":" + it + ":publish"
189-
} + ":platform:publish"
222+
}
190223

191224
//noinspection GroovyAssignabilityCheck
192225
tasks.register('publishZoweServerArtifacts') {

integration-tests/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ task runAllIntegrationTestsForZoweModulithNonHaTestingOnZos(type: Test) {
291291
'GatewayProxyTest',
292292
'GatewayCentralRegistry',
293293
'SafIdTokenTest',
294-
'ZaasTest' // These tests require ZAAS as a separate service with its own port and specific paths that are not part of the public API
294+
'ZaasTest', // These tests require ZAAS as a separate service with its own port and specific paths that are not part of the public API
295+
'NonModulithTest'
295296
)
296297
}
297298

0 commit comments

Comments
 (0)