FailedConsole Output

Started by GitLab push by Pietro Piscione
Obtained Jenkinsfile from git git@forge.etsi.org:cti/forge-tools/jenkins-scripts-for-openapis.git
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on build3.forge.etsi.org in /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-028
[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-028 # 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 3bfa2c714493bb305b6b2e0db5f1221d856fd957 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3bfa2c714493bb305b6b2e0db5f1221d856fd957
Commit message: "First version of scripts for OpenApis validation"
 > git rev-list --no-walk 3bfa2c714493bb305b6b2e0db5f1221d856fd957 # 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-028/apis
[Pipeline] {
[Pipeline] checkout
using credential f9a9fd70-ea8b-4872-a9d5-d1fb1cf8123e
Cloning the remote Git repository
Cloning repository git@forge.etsi.org:mec/gs028-wai-api.git
 > git init /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-028/apis # timeout=10
Fetching upstream changes from git@forge.etsi.org:mec/gs028-wai-api.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress git@forge.etsi.org:mec/gs028-wai-api.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url git@forge.etsi.org:mec/gs028-wai-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/gs028-wai-api.git # timeout=10
Fetching upstream changes from git@forge.etsi.org:mec/gs028-wai-api.git
using GIT_SSH to set credentials 
 > git fetch --tags --progress git@forge.etsi.org:mec/gs028-wai-api.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse remotes/origin/stf606-draft^{commit} # timeout=10
 > git branch -a -v --no-abbrev --contains 056f8c6de7b970c6eb0307f48b24268ea2175c36 # timeout=10
Checking out Revision 056f8c6de7b970c6eb0307f48b24268ea2175c36 (origin/stf606-draft)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 056f8c6de7b970c6eb0307f48b24268ea2175c36
Commit message: "Update JSON version of OAS3.1.0."
 > git rev-list --no-walk 82872ed8f2a25c747edc226cf2c19d9bd3b8680a # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] dir
Running in /home/jenkins/workspace/MEC - Multi-access Edge Computing/mec-gs-028/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-028/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 3bfa2c714493bb305b6b2e0db5f1221d856fd957 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3bfa2c714493bb305b6b2e0db5f1221d856fd957
Commit message: "First version of scripts for OpenApis validation"
[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.sh ./apis
------ Switching to ./apis folder --------
------ Content of the folder ------
LICENSE
proto3
README.md
WlanInformationApi.json
WlanInformationApi.yaml
------ Validating all YAML files ------
-- Validating and linting OpenAPI file WlanInformationApi.json...
Unsupported OpenAPI version: NaN. Swagger Parser only supports versions 3.0.0, 3.0.1, 3.0.2
(node:22514) ExperimentalWarning: The http2 module is an experimental API.
Specification schema is invalid.

#/
Must be an OpenAPI 3.0.x document
--- Validator returned 1, linter returned 1.
-- Validating and linting OpenAPI file WlanInformationApi.yaml...
Unsupported OpenAPI version: NaN. Swagger Parser only supports versions 3.0.0, 3.0.1, 3.0.2
(node:22536) ExperimentalWarning: The http2 module is an experimental API.
Specification schema is invalid.

#/
Must be an OpenAPI 3.0.x document
--- Validator returned 1, linter returned 1.
-- Final validation returns 1.
[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