Started by GitLab push by Hammad Zafar Obtained Jenkinsfile.mec from git git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git Running in Durability level: MAX_SURVIVABILITY [Pipeline] node Running on build.forge.etsi.org in /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-016-pipeline [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e Cloning the remote Git repository Cloning repository git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git > git init /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-016-pipeline # timeout=10 Fetching upstream changes from git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git > git --version # timeout=10 using GIT_SSH to set credentials > git fetch --tags --progress git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git # timeout=10 Fetching upstream changes from git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git using GIT_SSH to set credentials > git fetch --tags --progress git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git +refs/heads/*:refs/remotes/origin/* skipping resolution of commit remotes/origin/stf606-draft, since it originates from another repository > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 2aabbb8d6f54e1d5b6d55c331fda9bd3814c08f9 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 2aabbb8d6f54e1d5b6d55c331fda9bd3814c08f9 Commit message: "Update cli-validate-openapis-mec.sh" > git rev-list --no-walk 1b7fd86ec22366ba540a1592a8fd8d054bae57ce # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] gitlabBuilds [Pipeline] { [Pipeline] stage [Pipeline] { (Resolve) [Pipeline] sh + echo Resolve stage Resolve stage [Pipeline] updateGitlabCommitStatus [Pipeline] dir Running in /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-016-pipeline/apis [Pipeline] { [Pipeline] checkout using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e Cloning the remote Git repository Cloning repository git@forge.etsi.org:mec/gs016-dev-app-api.git > git init /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-016-pipeline/apis # timeout=10 Fetching upstream changes from git@forge.etsi.org:mec/gs016-dev-app-api.git > git --version # timeout=10 using GIT_SSH to set credentials > git fetch --tags --progress git@forge.etsi.org:mec/gs016-dev-app-api.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url git@forge.etsi.org:mec/gs016-dev-app-api.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@forge.etsi.org:mec/gs016-dev-app-api.git # timeout=10 Fetching upstream changes from git@forge.etsi.org:mec/gs016-dev-app-api.git using GIT_SSH to set credentials > git fetch --tags --progress git@forge.etsi.org:mec/gs016-dev-app-api.git +refs/heads/*:refs/remotes/origin/* > git rev-parse remotes/origin/stf606-draft^{commit} # timeout=10 > git branch -a -v --no-abbrev --contains 6c673b9eabed0a1a514a488bbc8e7fd42d93c885 # timeout=10 Checking out Revision 6c673b9eabed0a1a514a488bbc8e7fd42d93c885 (origin/stf606-draft) > git config core.sparsecheckout # timeout=10 > git checkout -f 6c673b9eabed0a1a514a488bbc8e7fd42d93c885 Commit message: "update README" First time build. Skipping changelog. [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-016-pipeline/scripts [Pipeline] { [Pipeline] checkout using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e Cloning the remote Git repository Cloning repository git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git > git init /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-016-pipeline/scripts # timeout=10 Fetching upstream changes from git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git > git --version # timeout=10 using GIT_SSH to set credentials > git fetch --tags --progress git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git # timeout=10 Fetching upstream changes from git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git using GIT_SSH to set credentials > git fetch --tags --progress git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git +refs/heads/*:refs/remotes/origin/* skipping resolution of commit remotes/origin/stf606-draft, since it originates from another repository > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 2aabbb8d6f54e1d5b6d55c331fda9bd3814c08f9 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 2aabbb8d6f54e1d5b6d55c331fda9bd3814c08f9 Commit message: "Update cli-validate-openapis-mec.sh" [Pipeline] updateGitlabCommitStatus [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Validate) [Pipeline] updateGitlabCommitStatus [Pipeline] sh + echo Validate stage Validate stage [Pipeline] sh + bash ./scripts/cli-validate-openapis-mec.sh ./apis ------ Switching to ./apis folder -------- ------ Checking for previous logs ------ Using dockerized validator (etsiforge/swagger-cli:4.0.3) 4.0.3: Pulling from etsiforge/swagger-cli Digest: sha256:c6987d82d33715ec65ac79532768eb98152d83ed969754aa7f4a9344aea32d9a Status: Image is up to date for etsiforge/swagger-cli:4.0.3 docker.io/etsiforge/swagger-cli:4.0.3 ------ Validating all YAML files (may takes several minutes) ------ -- Final validator returns 0. No errors found, all files validate the OpenAPI definition. Below the complete log. ---- Complete log of validation ---- ---- Validating ./UEAppInterfaceApi.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/UEAppInterfaceApi.yaml... [1] ../specs/UEAppInterfaceApi.yaml:20:3 at #/tags/0/description Tag object should contain `description` field. 18 | 19 | tags: 20 | - name: "dev_app" | ^^^^^^^^^^^^^^^ 21 | 22 | paths: Warning was generated by the tag-description rule. [2] ../specs/UEAppInterfaceApi.yaml:98:15 at #/paths/~1app_contexts/post/callbacks/notification/{$request.body#~1appContext.callbackReference}/post/responses Operation must have at least one `4xx` response. 96 | notificationType: ApplicationContextDeleteNotification 97 | contextId: 'contextId123' 98 | responses: | ^^^^^^^^^ 99 | "204": 100 | $ref: '#/components/responses/204' Warning was generated by the operation-4xx-response rule. s/UEAppInterfaceApi.yaml: validated in 142ms Woohoo! Your OpenAPI definition is valid. 🎉 You have 2 warnings. ---- Validating ./UEAppInterfaceApi.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/UEAppInterfaceApi.json... [1] ../specs/UEAppInterfaceApi.json:25:5 at #/tags/0/description Tag object should contain `description` field. 23 | ], 24 | "tags": [ 25 | { | ^ 26 | "name": "dev_app" | ^^^^^^^^^^^^^^^^^ 27 | } | ^ 28 | ], 29 | "paths": { Warning was generated by the tag-description rule. [2] ../specs/UEAppInterfaceApi.json:143:17 at #/paths/~1app_contexts/post/callbacks/notification/{$request.body#~1appContext.callbackReference}/post/responses Operation must have at least one `4xx` response. 141 | } 142 | }, 143 | "responses": { | ^^^^^^^^^^^ 144 | "204": { 145 | "$ref": "#/components/responses/204" Warning was generated by the operation-4xx-response rule. s/UEAppInterfaceApi.json: validated in 138ms Woohoo! Your OpenAPI definition is valid. 🎉 You have 2 warnings. ------ Content of the folder ------ LICENSE openapi-validation.log README.md UEAppInterfaceApi.json UEAppInterfaceApi.yaml [Pipeline] updateGitlabCommitStatus [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // gitlabBuilds [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS