Skip to content

Commit c137e98

Browse files
Merge branch 'dev' into dev
2 parents 943e31b + 0756169 commit c137e98

File tree

3 files changed

+71
-40
lines changed

3 files changed

+71
-40
lines changed

CONTRIBUTING.md

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,38 @@ Please request new features via the issue tracker. When requesting features, try
2222

2323
If you're thinking of fixing a bug or adding new features, be sure to open an issue first. This gives us a place to have a discussion about the work.
2424

25+
### Setting up your development environment
26+
27+
First of all, install Zowe CLI. Our plug-in is designed to work with the `lts-incremental` version.
28+
```console
29+
npm config set @brightside:registry https://api.bintray.com/npm/ca/brightside
30+
npm install @brightside/core@lts-lncremental
31+
```
32+
33+
In order to make code changes to the cics-deploy plugin, you'll need to fork the repository, and build the plugin from source.
34+
35+
```console
36+
git clone https://github.com/<your_github_id>/zowe-cli-cics-deploy-plugin
37+
cd zowe-cli-cics-deploy-plugin
38+
npm install
39+
npm run build
40+
zowe plugins install .
41+
```
42+
43+
### Developing the cics-deploy plug-in
44+
45+
As a plug-in for Zowe CLI, we aim to follow their guidelines. Our plugin is based on the Imperative CLI framework.
46+
47+
| For more information about ... | See: |
48+
| ------------------------------ | ----- |
49+
| Conventions and best practices for creating packages and plug-ins for Zowe CLI | [Package and Plug-in Guidelines](https://github.com/zowe/zowe-cli/blob/master/docs/PackagesAndPluginGuidelines.md)|
50+
| Guidelines for running tests on the plug-ins that you build for Zowe CLI | [Plug-in Testing Guidelines](https://github.com/zowe/zowe-cli/blob/master/docs/PluginTESTINGGuidelines.md) |
51+
| Documentation that describes the features of the Imperative CLI Framework | [About Imperative CLI Framework](https://github.com/zowe/imperative/wiki) |
52+
53+
As per the testing guidelines above, all code should have unit tests. System tests should be written for cases where it's not necessary to interact with a remote CICS system.
54+
55+
Please make sure all tests pass before opening a PR.
56+
2557
### Licensing
2658

2759
All code must have an EPL v2.0 header. Please add the following to any new files you create:
@@ -93,24 +125,20 @@ To save you having to type the above for every commit, Git can add the `Signed-o
93125

94126
If you haven't signed each commit, then the pull request will fail to pass all checks.
95127

96-
### Build and install the cics-deploy plugin
97-
```console
98-
git clone https://github.com/IBM/zowe-cli-cics-deploy-plugin
99-
cd zowe-cli-cics-deploy-plugin
100-
npm install
101-
npm run build
102-
zowe plugins install .
103-
```
128+
## Branches and releases
104129

105-
## Developing Zowe CLI plug-ins
130+
We have three main branches in our repo:
131+
- *dev*: our main dev branch, which will work with Zowe CLI @lts-incremental. New pull requests should normally be made into this branch.
132+
- *master*: our release branch, which will work with Zowe CLI @lts-incremental. Project maintainers will merge code into here from `dev` when we're ready to release.
133+
- *zowe-dev*: a branch which works with Zowe CLI@daily so we can prepare for forthcoming major releases of Zowe CLI.
106134

107-
For guidelines on developing Zowe CLI plug-ins see the [Zowe CLI GitHub repository](https://github.com/zowe/zowe-cli). The following information is critical to working with the code, running/writing/maintaining automated tests, developing consistent syntax and ensuring that the plug-in integrates with Zowe CLI properly:
135+
### Release process
108136

109-
| For more information about ... | See: |
110-
| ------------------------------ | ----- |
111-
| General guidelines that apply to contributing to Zowe CLI and plug-ins | [Contribution Guidelines](https://github.com/zowe/zowe-cli/blob/master/CONTRIBUTING.md) |
112-
| Conventions and best practices for creating packages and plug-ins for Zowe CLI | [Package and Plug-in Guidelines](https://github.com/zowe/zowe-cli/blob/master/docs/PackagesAndPluginGuidelines.md)|
113-
| Guidelines for running tests on Zowe CLI | [Testing Guidelines](https://github.com/zowe/zowe-cli/blob/master/docs/TESTING.md) |
114-
| Guidelines for running tests on the plug-ins that you build for Zowe CLI | [Plug-in Testing Guidelines](https://github.com/zowe/zowe-cli/blob/master/docs/PluginTESTINGGuidelines.md) |
115-
| Documentation that describes the features of the Imperative CLI Framework | [About Imperative CLI Framework](https://github.com/zowe/imperative/wiki) |
116-
Versioning conventions for Zowe CLI and plug-ins| [Versioning Guidelines](https://github.com/zowe/zowe-cli/blob/master/docs/MaintainerVersioning.md) |
137+
1. Ensure all code to be released is merged into `dev`.
138+
2. Create a release branch locally based on `master`.
139+
3. Merge commits to be relaased into the release branch. Avoid cherry-picking changes so that `master` always remains a subset of `dev`.
140+
4. Update the version number in `package.json` according to [semantic versioning](https://semver.org/).
141+
- Note: if the only changes being made are to the documentation, do not update the version number. In this case the GitHub Pages site will be published when `master` is built, but no new version of the plug-in will be published.
142+
5. Make a PR to merge your release brnach into `master`. The reviewer should make sure all commits are suitable to release and version number has been updated appropriately.
143+
6. After the PR is merged, Jenkins will run a build of `master` and publish the new version to registry.npmjs.org.
144+
7. Delete the release branch.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

55
This project provides a plug-in for [Zowe CLI](https://github.com/zowe/zowe-cli) to deploy applications developed on a workstation to IBM CICS Transaction Server for z/OS (CICS). It aims to provide an experience similar to deploying to a cloud platform when deploying to CICS. It will also provide low-level commands for performing individual steps of the deployment process that could be used as part of a CI/CD pipeline.
66

7-
## Status
7+
## Installing
88

9-
The project was started in February 2019 and is at an early stage of development. It will initially focus on generating and deploying CICS bundles containing Node.js applications.
10-
11-
To try it out, install the plug-in by following the steps in [installing](https://ibm.github.io/zowe-cli-cics-deploy-plugin/installing.html).
9+
Install the plug-in by following the steps in [installing](https://ibm.github.io/zowe-cli-cics-deploy-plugin/installing.html).
1210

1311
## Documentation
1412

1513
You can find information and tutorials on using this plug-in in our [documentation](https://ibm.github.io/zowe-cli-cics-deploy-plugin/index.html).
1614

1715
## Contributing
1816

19-
Contributions are welcome - see the [contribution guidelines](CONTRIBUTING.md). If you have a question or encounter a problem, please search the [issues](https://github.com/IBM/zowe-cli-cics-deploy-plugin/issues) in this repo before raising a [New issue](https://github.com/IBM/zowe-cli-cics-deploy-plugin/issues/new).
17+
Contributions are welcome - see the [contribution guidelines](CONTRIBUTING.md). If you have a question or encounter a problem, please search the [issues](https://github.com/IBM/zowe-cli-cics-deploy-plugin/issues) before raising a [New issue](https://github.com/IBM/zowe-cli-cics-deploy-plugin/issues/new).

docs/pages/cdp/cdp-Common-Errors.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,25 @@ If you experience errors while using the cics-deploy plug-in, check the followin
2424

2525
### Application incorrectly deploys in a DISABLED state
2626

27-
*Possible cause*: The port requested by the application is already in use.
27+
*Possible cause:* The port requested by the application is already in use.
2828

29-
*Suggested action*: Choose a new port number after double-checking that it is not in use. Redeploy the application using the new value for the port.
29+
*Suggested action:* Choose a new port number after double-checking that it is not in use. Redeploy the application using the new value for the port.
3030

3131
{% include note.html content="An application in a `DISABLED` state does not necessarily indicate an error condition. The `cics-deploy deploy`, `cics-deploy push` and `cics-deploy undeploy` commands allow you to specify a `--target-state` option which you may deliberately choose to set to `DISABLED`." %}
3232

33+
### When deploying to multiple regions, the application fails to enable in the second and subsequent regions
34+
*Possible cause:* The application has deployed successfully in the first region, but subsequent regions see the requested port as in use, and cannot enable the application.
35+
36+
*Suggested action:* Confirm the error by searching for `Error: listen EADDRINUSE :::30701` in STDERR. Contact a CICS systems administrator to set up port sharing for the affected port.
37+
3338
### Command error: DFHDPLOY stopped processing due to an error
3439

35-
*Possible causes*:
40+
*Possible causes:*
3641
* The `--scope` and/or `--cicsplex` settings for the current deploy profile are wrong, and don't correctly identify a current CICS system, CICS System Group and/or a correct CICSPlex respectively.
3742
* The CMAS for the current CICSPlex is inactive.
3843
* CPSM is not functioning correctly.
3944

40-
*Representative output*:
45+
*Representative output:*
4146
<pre class="messageText">
4247
16:22:50.058844 :  DFHDPLOY CICS TS APPLICATION DEPLOYMENT  2019/04/10 4:22pm
4348
16:22:50.059562 :  RELEASE: HCI7300.   SERVICE LEVEL: HCI7300.
@@ -47,16 +52,16 @@ If you experience errors while using the cics-deploy plug-in, check the followin
4752
16:22:50.065729 :  DFHRL2055I Errors have occurred, processing terminated.
4853
</pre>
4954

50-
*Suggested actions*:
55+
*Suggested actions:*
5156

5257
* Confirm that the `--scope` and `--cicsplex` settings are correct.
5358
* Ask your CICS Systems Programmer to check that the CMAS for the current CICSPlex is alive and that CPSM is working properly.
5459

5560
### Command error: ... validation of - -cicshlq dataset failed: z/OSMF REST API Error
5661

57-
*Possible cause*: The profile setting for `--cicshlq` is incorrect.
62+
*Possible cause:* The profile setting for `--cicshlq` is incorrect.
5863

59-
*Representative output*:
64+
*Representative output:*
6065
<pre class="messageText">
6166
A failure occurred during CICS bundle deployment.
6267
Reason = Validation of --cicshlq dataset failed: z/OSMF REST API Error:
@@ -69,21 +74,21 @@ details:
6974
  - ISRZ002 Data set not cataloged - 'ANT.CICS.TS.DEV.INTEGRAT.SDFHLOAD' was not found in catalog.
7075
</pre>
7176

72-
*Suggested action*:
77+
*Suggested action:*
7378
Check that your `--cicshlq` profile setting matches the value configured for CICS high-level qualifiers in your CICS region.
7479

7580
### BUNDLE ... cannot be deployed (1)
7681

77-
*Possible cause*: CICS does not have permission to read the bundle directory.
82+
*Possible cause:* CICS does not have permission to read the bundle directory.
7883

79-
*Representative output*:
84+
*Representative output:*
8085
<pre class="messageText">
8186
11:46:15.916293 : DFHRL2300E BUNDLE(CICSJS02) cannot be deployed. The reason for the failure could not be determined.
8287
11:46:15.922147 : DFHRL2055I Errors have occurred, processing terminated.
8388
11:46:15.927066 : DFHRL2014I Disconnecting from CICSPLEX(CAPLEX).
8489
</pre>
8590

86-
*Suggested action*:
91+
*Suggested action:*
8792
Check the MSGUSR file for more specific diagnostics and if relevant, change the permissions on the offending directory.
8893

8994
<pre class="messageText">
@@ -93,9 +98,9 @@ DFHRL0110 E 04/24/2019 11:46:13 CALMAS1 COIE The CICS resource lifecycle manager
9398

9499
### BUNDLE ... cannot be deployed (2)
95100

96-
*Possible cause*: The `cics.xml` file is malformed.
101+
*Possible cause:* The `cics.xml` file is malformed.
97102

98-
*Representative output*:
103+
*Representative output:*
99104
<pre class="messageText">
100105
15:56:17.411714 : DFHRL2300E BUNDLE(CICSJS02) cannot be deployed. The reason for the failure could not be determined.
101106
15:56:17.419308 : DFHRL2055I Errors have occurred, processing terminated.
@@ -110,16 +115,16 @@ DFHRL0113 E 05/17/2019 15:56:15 CALMAS1 COIE The CICS resource lifecycle manager
110115
root directory. The manifest is not valid.
111116
</pre>
112117

113-
*Suggested action*:
118+
*Suggested action:*
114119
Check that your `cics.xml` file is well-formed.
115120

116121
## General errors
117122

118123
### Syntax error: Invalid value length for option
119124

120-
*Possible cause*: The length of the option you provided in a command was either too long or two short.
125+
*Possible cause:* The length of the option you provided in a command was either too long or two short.
121126

122-
*Representative output*:
127+
*Representative output:*
123128
<pre class="messageText">
124129
Syntax Error:
125130
Invalid value length for option:
@@ -131,5 +136,5 @@ NODETESTS
131136
The length must be between 1 and 8 (inclusive)
132137
</pre>
133138

134-
*Suggested action*:
139+
*Suggested action:*
135140
Review the error output text and reissue the original command having corrected the name of the option so that its length falls within acceptable limits.

0 commit comments

Comments
 (0)