FailedConsole Output

Started by GitLab push by Elian Kraja
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-010-2-pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > 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
 > 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/*
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 1b7fd86ec22366ba540a1592a8fd8d054bae57ce (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 1b7fd86ec22366ba540a1592a8fd8d054bae57ce
Commit message: "added openapi-cli image version"
 > 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-010-2-pipeline/apis
[Pipeline] {
[Pipeline] checkout
using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git@forge.etsi.org:mec/gs010-2-app-pkg-lcm-api.git # timeout=10
Fetching upstream changes from git@forge.etsi.org:mec/gs010-2-app-pkg-lcm-api.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress git@forge.etsi.org:mec/gs010-2-app-pkg-lcm-api.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse remotes/origin/stf606-draft^{commit} # timeout=10
 > git branch -a -v --no-abbrev --contains 5769938032176e50c7d4a981e2639a70c22cf798 # timeout=10
Checking out Revision 5769938032176e50c7d4a981e2639a70c22cf798 (origin/stf606-draft)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 5769938032176e50c7d4a981e2639a70c22cf798
Commit message: "Update MEC010-2_AppLcm.json"
 > git rev-list --no-walk b35f6233e6934eda65e452db988fcf6fae4227c6 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] dir
Running in /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-010-2-pipeline/scripts
[Pipeline] {
[Pipeline] checkout
using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > 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
 > 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/*
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 1b7fd86ec22366ba540a1592a8fd8d054bae57ce (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 1b7fd86ec22366ba540a1592a8fd8d054bae57ce
Commit message: "added openapi-cli image version"
[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 ------
Found previous log. Removing it
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 1.
Some errors found, see below the details.

---- Errors detected ----
---- Validating ./MEC010p2_v221_definitions.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.yaml... Something went wrong when processing /specs/MEC010p2_v221_definitions.yaml: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0
---- Validating ./MEC010-2_AppPkgMgmt.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppPkgMgmt.json... [1] ../specs/MEC010-2_AppPkgMgmt.json:3008:21 at #/components/schemas/CreateAppPkg/properties/appPkgPath/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 3006 | }, 3007 | "appPkgPath": { 3008 | "type": "uri" | ^^^^^ 3009 | }, 3010 | "appPkgVersion": { Error was generated by the spec rule. [2] ../specs/MEC010-2_AppPkgMgmt.json:1294:17 at #/paths/~1subscriptions/post/callbacks/notification/{$request.body#~1subscription.href}/post/responses Operation must have at least one `4xx` response. 1292 | } 1293 | }, 1294 | "responses": { | ^^^^^^^^^^^ 1295 | "204": { 1296 | "description": "No content" Warning was generated by the operation-4xx-response rule. s/MEC010-2_AppPkgMgmt.json: validated in 246ms ❌ Validation failed with 1 error and 1 warning. run `openapi lint --generate-ignore-file` to add all problems to the ignore file.
---- Validating ./MEC010p2_v221_definitions.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.json... Something went wrong when processing /specs/MEC010p2_v221_definitions.json: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0


---- Complete log of validation ----
---- Validating ./MEC010-2_AppGrant.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppGrant.yaml... s/MEC010-2_AppGrant.yaml: validated in 114ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppLcm.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppLcm.yaml... s/MEC010-2_AppLcm.yaml: validated in 210ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppPkgMgmt.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppPkgMgmt.yaml... s/MEC010-2_AppPkgMgmt.yaml: validated in 203ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010p2_v221_definitions.yaml: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.yaml... Something went wrong when processing /specs/MEC010p2_v221_definitions.yaml: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0
---- Validating ./MEC010-2_AppGrant.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppGrant.json... s/MEC010-2_AppGrant.json: validated in 93ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppLcm.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppLcm.json... s/MEC010-2_AppLcm.json: validated in 215ms Woohoo! Your OpenAPI definition is valid. 🎉
---- Validating ./MEC010-2_AppPkgMgmt.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010-2_AppPkgMgmt.json... [1] ../specs/MEC010-2_AppPkgMgmt.json:3008:21 at #/components/schemas/CreateAppPkg/properties/appPkgPath/type `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". Did you mean: null ? 3006 | }, 3007 | "appPkgPath": { 3008 | "type": "uri" | ^^^^^ 3009 | }, 3010 | "appPkgVersion": { Error was generated by the spec rule. [2] ../specs/MEC010-2_AppPkgMgmt.json:1294:17 at #/paths/~1subscriptions/post/callbacks/notification/{$request.body#~1subscription.href}/post/responses Operation must have at least one `4xx` response. 1292 | } 1293 | }, 1294 | "responses": { | ^^^^^^^^^^^ 1295 | "204": { 1296 | "description": "No content" Warning was generated by the operation-4xx-response rule. s/MEC010-2_AppPkgMgmt.json: validated in 246ms ❌ Validation failed with 1 error and 1 warning. run `openapi lint --generate-ignore-file` to add all problems to the ignore file.
---- Validating ./MEC010p2_v221_definitions.json: No configurations were defined in extends -- using built in recommended configuration by default. validating s/MEC010p2_v221_definitions.json... Something went wrong when processing /specs/MEC010p2_v221_definitions.json: - This doesn’t look like an OpenAPI document. . /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20 throw new Error('This doesn’t look like an OpenAPI document.
'); ^ Error: This doesn’t look like an OpenAPI document. at Object.detectOpenAPI (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/oas-types.js:20:15) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:47:40 at Generator.next (<anonymous>) at /usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:4:12) at lintDocument (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:44:12) at Object.<anonymous> (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:31:16) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/@redocly/openapi-cli/node_modules/@redocly/openapi-core/lib/lint.js:5:58) Node.js v17.8.0


------ Content of the folder ------
LICENSE
MEC010-2_AppGrant.json
MEC010-2_AppGrant.yaml
MEC010-2_AppLcm.json
MEC010-2_AppLcm.yaml
MEC010-2_AppPkgMgmt.json
MEC010-2_AppPkgMgmt.yaml
MEC010p2_v221_definitions.json
MEC010p2_v221_definitions.yaml
openapi-validation.log
README.md
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] updateGitlabCommitStatus
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // gitlabBuilds
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE