Skip to content

Commit dd6869d

Browse files
authored
Merge branch 'master' into master
2 parents d808e1a + 825d32c commit dd6869d

File tree

4 files changed

+29
-24
lines changed

4 files changed

+29
-24
lines changed

Jenkinsfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ pipeline {
218218
//sh("npm set @zowe:registry https://api.bintray.com/npm/ca/brightside/")
219219
sh("npm set @zowe:registry https://registry.npmjs.org")
220220

221-
sh("npm install -g @zowe/cli@latest")
221+
sh("npm install -g @zowe/cli@daily")
222222
sh("zowe --version")
223223
}
224224
}
@@ -536,6 +536,9 @@ pipeline {
536536
expression {
537537
return BRANCH_NAME == MASTER_BRANCH
538538
}
539+
expression {
540+
return GIT_COMMIT =! GIT_PREVIOUS_SUCCESSFUL_COMMIT
541+
}
539542
}
540543
}
541544
steps {
@@ -587,6 +590,9 @@ pipeline {
587590
expression {
588591
return BRANCH_NAME == MASTER_BRANCH
589592
}
593+
expression {
594+
return GIT_COMMIT =! GIT_PREVIOUS_SUCCESSFUL_COMMIT
595+
}
590596
}
591597
}
592598
steps {

docs/pages/cdp/cdp-Deploying-using-individual-actions.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ The `zowe cics-deploy push bundle` command performs a set of actions to deploy a
1313

1414
* undeploy the old version of the CICS bundle in CICS
1515
* upload the new version of the CICS bundle to z/OS
16-
* run `npm install` on z/OS to resolve Node.js application dependencies
17-
* deploy the CICS bundle in CICS.
16+
* resolve Node.js application dependencies on z/OS
17+
* deploy the CICS bundle in CICS
1818

1919
However, there may be situations where you need more control of these actions or perform alternate actions. The following sections describe how each of these actions can be performed independently, enabling you to form a sequence of commands to achieve your needs.
2020

2121
### Undeploy a CICS bundle
2222

23-
Undeploying a CICS bundle disables the CICS bundle resource (BUNDLE) in CICS. Disabling the CICS bundle causes the resources defined in it to also be disabled. For Node.js applications, CICS sends a SIGTERM signal that can be handled in the application to stop in a controlled manner, such as stopping new requests and completing existing requests. Once the CICS bundle has been disabled it is then discarded in CICS.
23+
Undeploying a CICS bundle disables the CICS bundle resource (BUNDLE) in CICS. Disabling the BUNDLE causes the resources defined in it to also be disabled. For Node.js applications, CICS sends a SIGTERM signal that can be handled in the application to stop in a controlled manner, such as stopping new requests and completing existing requests. Once the CICS bundle has been disabled it is then discarded in CICS.
2424

2525
```console
2626
zowe cics-deploy undeploy bundle --name Express
@@ -38,17 +38,17 @@ zowe cics-deploy undeploy bundle --name Express --target-state disabled
3838

3939
Before uploading the CICS bundle to z/OS, you need to ensure the target directory is empty in order to prevent merging with a previously deployed version of the CICS bundle.
4040

41-
There are several ways to run shell commands and scripts on z/OS, such as SSH, batch jobs, and Zowe. When using Zowe, an SSH connection is established using information in the Zowe ssh profile, and then the shell .profile for the user will be run to setup the environment. The command is then run in the directory specified by the `--cwd` option. The return code from the Zowe CLI will be the same as that returned by the command run on z/OS, enabling you to take action in your script in error scenarios.
41+
There are several ways to run shell commands and scripts on z/OS, such as SSH, batch jobs, and Zowe. When using Zowe, an SSH connection is established using information in the Zowe ssh profile, and the shell .profile for the user is run to setup the environment. The command is then run in z/OS in the directory specified by the `--cwd` option. The return code from the command is used to set the Zowe CLI return code, enabling you to take action in your script in error scenarios.
4242

4343
For example, to remove the target directory:
4444

4545
```console
46-
zowe zos-uss issue ssh "rm -Rv *" --cwd "/var/cicsts/bundles/myexpressapp_1.0.0" && echo RC=$?
46+
zowe zos-uss issue ssh "rm -Rv *" --cwd "/var/cicsts/bundles/myexpressapp_1.0.0" || echo "RC=$?"
4747
```
4848

4949
{% include tip.html content="You can run several commands in one request using the syntax described in [sh — Invoke a shell](https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/sh.htm)." %}
5050

51-
Typically you will need to upload some files as binary, some as text, and exclude others that are not required to run the application. In addition, it is best practice to tag files on z/OS as binary or with their text codepage to allow for correct codepage translation by editors and environments such as Node.js. You can specify these requirements in a `.zosattributes` file and use the Zowe CLI to upload and tag files in a single command.
51+
When uploading the CICS bundle to z/OS, you may need to upload some files as binary, some as text, and exclude others that are not required to run the application. In addition, it is best practice to tag files on z/OS as binary or with their text codepage to allow for correct codepage translation by editors and environments such as Node.js and Java. You can specify these requirements in a `.zosattributes` file and use the Zowe CLI to upload and tag files in a single command.
5252

5353
For example, create file **~/myExpressApp/.zosattributes** in the CICS bundle:
5454

@@ -76,10 +76,10 @@ node_modules -
7676
Then upload the CICS bundle to z/OS:
7777

7878
```console
79-
zowe zos-files upload dir-to-uss ~/myExpressApp/ /var/cicsts/bundles/myexpressapp_1.0.0 --recursive --attributes ~/myExpressApp/.zosattributes
79+
zowe zos-files upload dir-to-uss ~/myExpressApp/ "/var/cicsts/bundles/myexpressapp_1.0.0" --recursive --attributes ~/myExpressApp/.zosattributes
8080
```
8181

82-
### Run npm on z/OS
82+
### Resolve Node.js application dependencies on z/OS
8383

8484
A Node.js application typically depends on packages that are described in `package.json`. The dependencies can be installed by running `npm install` in the z/OS directory containing `package.json`, for example:
8585

@@ -92,11 +92,11 @@ zowe zos-uss issue ssh "npm install" --cwd "/var/cicsts/bundles/myexpressapp_1.0
9292
Deploying a CICS bundle defines a CICS bundle resource (BUNDLE), then installs it, and finally enables it. When the CICS bundle is enabled, the Node.js application is started. For example:
9393

9494
```console
95-
zowe cics-deploy deploy bundle --name Express --bundle-directory /var/cicsts/bundles/myexpressapp_1.0.0
95+
zowe cics-deploy deploy bundle --name Express --bundle-directory "/var/cicsts/bundles/myexpressapp_1.0.0"
9696
```
9797

9898
Alternatively, to define and install the BUNDLE but not enable it:
9999

100100
```console
101-
zowe cics-deploy deploy bundle --name Express --bundle-directory /var/cicsts/bundles/myexpressapp_1.0.0 --target-state disabled
101+
zowe cics-deploy deploy bundle --name Express --bundle-directory "/var/cicsts/bundles/myexpressapp_1.0.0" --target-state disabled
102102
```

docs/pages/cdp/cdp-Deploying-your-first-nodejs-app.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
2929
npm start
3030
```
3131

32-
The Node.js application will start. You can call the application from a browser using URL [http://localhost:3000/](http://localhost:3000/), and press CTRL+C to stop it.
32+
The Node.js application will start. You can call the application from a browser using URL [http://localhost:3000/](http://localhost:3000/). To stop the application in the console press CTRL+C.
3333

3434
4. Package the Node.js application into a [CICS bundle](cdp-cics-bundles).
3535

@@ -41,7 +41,7 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
4141
zowe cics-deploy generate bundle --port 3000 --overwrite
4242
```
4343

44-
The output will show the directories and files created to form a CICS bundle. For example:
44+
The output will indicates the directories and files created to form a CICS bundle. For example:
4545

4646
<pre class="messageText">
4747
define : NODEJSAPP "myexpressapp" with startscript "./bin/www"
@@ -61,7 +61,7 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
6161

6262
A progress bar is shown with status messages as the CICS bundle is deployed and the application is started. This can take a few minutes. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Troubleshooting-General).
6363

64-
This results in a CICS BUNDLE resource named `Express` to be created, installed and enabled in CICS. If the BUNDLE `Express` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the Node.js application is started.
64+
This results in a CICS BUNDLE resource named `Express` being defined, installed and enabled in CICS. If the BUNDLE `Express` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the Node.js application is started.
6565

6666
6. Test the Node.js application.
6767

@@ -73,4 +73,4 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
7373

7474
The Node.js application is packaged into a CICS bundle on the workstation, uploaded to a directory on z/OS, and is running in CICS.
7575

76-
{% include tip.html content="[Best practice for developing Node.js applications](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0/applications/developing/node/best-practice.html) provides guidance on setting and using environment variables and graceful application termination." %}
76+
{% include tip.html content="When writing your own application, follow the guidance in [Best practice for developing Node.js applications](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0/applications/developing/node/best-practice.html) to use environment variables and enable the application to terminate gracefully." %}

docs/pages/cdp/cdp-Provision-a-CICS-region-using-zospt.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ folder: cdp
99
toc: true
1010
---
1111

12-
The [z/OS Provisioning Toolkit](https://developer.ibm.com/mainframe/products/zospt/) (z/OS PT) provides a command line utility to provision CICS regions and other development environment on z/OS. This tutorial requires z/OS PT version 1.1.5 or above to be installed.
12+
The [z/OS Provisioning Toolkit](https://developer.ibm.com/mainframe/products/zospt/) (z/OS PT) provides a command line utility and z/OSMF workflows to provision CICS regions and other development environments on z/OS. This tutorial requires z/OS PT version 1.1.5 or above to be installed.
1313

1414
### Prepare a z/OS PT image
1515

16-
A z/OS PT image contains the configuration and files necessary to provision the CICS region. This is typically prepared by the CICS system administrator for use by many developers. The [configuration properties](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/cics/zospt-cics-properties.html) for the CICS image should include:
16+
A z/OS PT image contains the configuration and files necessary to provision a CICS region. This is typically prepared by the CICS system administrator. The CICS image should include the following properties. Other properties are available to customise the CICS region to your requirements - see [Configuration properties for CICS images](https://www.ibm.com/support/knowledgecenter/en/SSXH44E_1.0.0/zospt/cics/zospt-cics-properties.html).
1717

1818
| zosptfile&nbsp;entry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Usage |
1919
| --- | -- |
20-
| `FROM cics_55` | Provision a CICS TS V5.5 region. |
20+
| `FROM cics_55` | Provision a CICS TS V5.5 region. Required to support Node.js applications. |
2121
| `ENV DFH_CICS_TYPE=MAS` | The CICS region should be managed by CPSM. |
2222
| `ENV DFH_CICSPLEX=` | The name of the CICSplex. |
23-
| `ENV DFH_NODE_HOME=` | The installation directory for IBM SDK for Node.js - z/OS. |
23+
| `ENV DFH_NODE_HOME=` | The installation directory for IBM SDK for Node.js - z/OS. Required to support Node.js applications. |
2424
| `COPY bundles bundles` | Create an empty bundles directory in the provisioned file system to contain CICS bundles. |
2525

2626
For example, to create the z/OS PT image source directory and configuration file, and build it ready for developers to provision CICS regions:
@@ -71,12 +71,11 @@ zospt build $ZOSPTIMAGE -t cics_55_nodejs
7171

7272
The output is in JSON format and includes values for the CICS region application ID, and the z/OS directory within which your CICS bundles can be uploaded. For example:
7373

74-
```json
74+
<pre class="messageText">
7575
"DFH_REGION_APPLID": "CICPY000",
76-
"DFH_REGION_ZFS_DIRECTORY": "/u/cicprov/mnt/CICPY000",
77-
```
76+
"DFH_REGION_ZFS_DIRECTORY": "/u/cicprov/mnt/CICPY000",</pre>
7877

79-
4. Update your Zowe cics-deploy profile options.
78+
4. Update your Zowe CLI cics-deploy profile options.
8079

8180
Update `--scope` to be the value from DFH_REGION_APPLID, and `--bundle-directory` to be a bundles subdirectory of DFH_REGION_ZFS_DIRECTORY. For example:
8281

@@ -104,7 +103,7 @@ zowe zos-uss issue ssh "zospt start my_cics_region"
104103

105104
### Deprovision your CICS region
106105

107-
The CICS region can be stopped and removed using the following command. This will remove the z/OS directory used to upload your CICS bundles:
106+
The CICS region can be stopped and removed using the following commands. This will remove the z/OS directory used to upload your CICS bundles:
108107

109108
```console
110109
zowe zos-uss issue ssh "zospt stop my_cics_region"

0 commit comments

Comments
 (0)