criterion_id | string Get data from a specific criterion |
assessment | boolean Default: false Flag to indicate whether the criteria shall consider only assessment-related tools |
[- {
- "id": "QC.Sty",
- "type": "software",
- "tools": [
- {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
]
}
]
Provides a ready-to-use Jenkins pipeline based on the v2 series of jenkins-pipeline-library.
report_to_stdout | boolean Default: false Flag to indicate whether the pipeline shall print via via stdout the reports produced by the tools (required by QAA module) |
name | string <[A-Za-z0-9_.-]> Name that identifies the pipeline |
Array of objects (JePL_config) Details about the pipeline configuration | |
object (JePL_composer) Details about the composition of the services required for the pipeline execution | |
object (JePL_jenkinsfile) Details about the Jenkins Pipeline as Code |
{- "name": "sqaaas-api-spec",
- "config_data": [
- {
- "config": {
- "project_repos": [
- {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}
], - "credentials": [
- {
- "id": "my-dockerhub-token",
- "type": "username_password",
- "username_var": "GIT_USER",
- "password_var": "GIT_PASS"
}
]
}, - "sqa_criteria": {
- "property1": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}, - "property2": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}
}, - "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "timeout": 1
}
], - "composer_data": {
- "version": "3.7",
- "services": {
- "property1": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}, - "property2": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}
}
}, - "jenkinsfile_data": {
- "stages": [
- {
- "when": {
- "branches": [
- "master"
]
}, - "pipeline_config": {
- "config_file": "./.sqa/config.yml",
- "base_repository": "master",
- "credentials_id": "userpass_dockerhub",
- "jepl_validator_docker_image": "eoscsynergy/jpl-validator:1.1.0"
}
}
]
}
}
{- "id": "dd7d8481-81a3-407f-95f0-a2f1cb382a4b"
}
[- {
- "id": "dd7d8481-81a3-407f-95f0-a2f1cb382a4b",
- "name": "sqaaas-api-spec",
- "config_data": [
- {
- "config": {
- "project_repos": [
- {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}
], - "credentials": [
- {
- "id": "my-dockerhub-token",
- "type": "username_password",
- "username_var": "GIT_USER",
- "password_var": "GIT_PASS"
}
]
}, - "sqa_criteria": {
- "property1": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}, - "property2": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}
}, - "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "timeout": 1
}
], - "composer_data": {
- "version": "3.7",
- "services": {
- "property1": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}, - "property2": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}
}
}, - "jenkinsfile_data": {
- "stages": [
- {
- "when": {
- "branches": [
- "master"
]
}, - "pipeline_config": {
- "config_file": "./.sqa/config.yml",
- "base_repository": "master",
- "credentials_id": "userpass_dockerhub",
- "jepl_validator_docker_image": "eoscsynergy/jpl-validator:1.1.0"
}
}
]
}
}
]
Creates a pipeline for assessment (QAA module).
optional_tools | Array of strings Optional tools that shall be accounted |
object (Repository) | |
object (Repository) | |
object (AssessmentDeployment) | |
object (AssessmentFAIR) | |
Array of objects (CriterionWorkflow) |
{- "repo_code": {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}, - "repo_docs": {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}, - "deployment": {
- "repo_deploy": {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}, - "deploy_tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}, - "fair": {
- "fair_tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}, - "criteria_workflow": [
- {
- "id": "QC.Sty",
- "tools": [
- {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
]
}
]
}
{- "id": "dd7d8481-81a3-407f-95f0-a2f1cb382a4b"
}
Returns the reporting and badging data from the execution of the assessment pipeline.
pipeline_id required | string ID of the pipeline to get |
{- "repository": [
- {
- "name": "sqaaas-api-spec",
- "description": "OpenAPI specification for the SQA as a Service",
- "languages": [
- "Shell"
], - "tag": "2.5.0",
- "topics": [
- "openapi",
- "sqaaas"
], - "stargazers_count": 2,
- "watchers_count": 2,
- "contributors_count": 2,
- "forks_count": 2
}
], - "report": {
- "property1": {
- "valid": false,
- "filtered_reason": [ ],
- "subcriteria": {
- "property1": {
- "description": "All code repositories MUST have a README file",
- "valid": true,
- "evidence": [
- {
- "valid": true,
- "message": "README file does not exist",
- "plugin": {
- "name": "report2sqaaas-plugin-licensee",
- "version": "1.0.0"
}, - "tool": {
- "name": "flake8",
- "lang": "Python",
- "version": "4.0.1",
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "ci": {
- "name": "string",
- "status": "SUCCESS",
- "stdout_command": [
- "string"
], - "stdout_text": "string",
}, - "level": "REQUIRED"
}, - "standard": {
- "title": "A set of Common Software Quality Assurance Baseline Criteria for Research Projects",
- "version": "v4.0",
}, - "data_unstructured": { }
}
], - "hint": "The Open Source Initiative (OSI) sets out the requirements for software to be legally declared as open source. Use one of the <a href=\"https://opensource.org/licenses\" target=\"_blank\">OSI popular licenses</a> for this check to be successful.\n",
- "required_for_next_level_badge": true
}, - "property2": {
- "description": "All code repositories MUST have a README file",
- "valid": true,
- "evidence": [
- {
- "valid": true,
- "message": "README file does not exist",
- "plugin": {
- "name": "report2sqaaas-plugin-licensee",
- "version": "1.0.0"
}, - "tool": {
- "name": "flake8",
- "lang": "Python",
- "version": "4.0.1",
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "ci": {
- "name": "string",
- "status": "SUCCESS",
- "stdout_command": [
- "string"
], - "stdout_text": "string",
}, - "level": "REQUIRED"
}, - "standard": {
- "title": "A set of Common Software Quality Assurance Baseline Criteria for Research Projects",
- "version": "v4.0",
}, - "data_unstructured": { }
}
], - "hint": "The Open Source Initiative (OSI) sets out the requirements for software to be legally declared as open source. Use one of the <a href=\"https://opensource.org/licenses\" target=\"_blank\">OSI popular licenses</a> for this check to be successful.\n",
- "required_for_next_level_badge": true
}
}, - "coverage": {
- "percentage": 60,
- "total_subcriteria": 5,
- "success_subcriteria": 0
}
}, - "property2": {
- "valid": false,
- "filtered_reason": [ ],
- "subcriteria": {
- "property1": {
- "description": "All code repositories MUST have a README file",
- "valid": true,
- "evidence": [
- {
- "valid": true,
- "message": "README file does not exist",
- "plugin": {
- "name": "report2sqaaas-plugin-licensee",
- "version": "1.0.0"
}, - "tool": {
- "name": "flake8",
- "lang": "Python",
- "version": "4.0.1",
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "ci": {
- "name": "string",
- "status": "SUCCESS",
- "stdout_command": [
- "string"
], - "stdout_text": "string",
}, - "level": "REQUIRED"
}, - "standard": {
- "title": "A set of Common Software Quality Assurance Baseline Criteria for Research Projects",
- "version": "v4.0",
}, - "data_unstructured": { }
}
], - "hint": "The Open Source Initiative (OSI) sets out the requirements for software to be legally declared as open source. Use one of the <a href=\"https://opensource.org/licenses\" target=\"_blank\">OSI popular licenses</a> for this check to be successful.\n",
- "required_for_next_level_badge": true
}, - "property2": {
- "description": "All code repositories MUST have a README file",
- "valid": true,
- "evidence": [
- {
- "valid": true,
- "message": "README file does not exist",
- "plugin": {
- "name": "report2sqaaas-plugin-licensee",
- "version": "1.0.0"
}, - "tool": {
- "name": "flake8",
- "lang": "Python",
- "version": "4.0.1",
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "ci": {
- "name": "string",
- "status": "SUCCESS",
- "stdout_command": [
- "string"
], - "stdout_text": "string",
}, - "level": "REQUIRED"
}, - "standard": {
- "title": "A set of Common Software Quality Assurance Baseline Criteria for Research Projects",
- "version": "v4.0",
}, - "data_unstructured": { }
}
], - "hint": "The Open Source Initiative (OSI) sets out the requirements for software to be legally declared as open source. Use one of the <a href=\"https://opensource.org/licenses\" target=\"_blank\">OSI popular licenses</a> for this check to be successful.\n",
- "required_for_next_level_badge": true
}
}, - "coverage": {
- "percentage": 60,
- "total_subcriteria": 5,
- "success_subcriteria": 0
}
}
}, - "badge": {
- "software": {
- "criteria": {
- "property1": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}, - "property2": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}
}, - "data": {
- "createdAt": "2021-04-07T10:34:02.960Z",
- "createdBy": "e3h49VVbQRKQphuAAmxpgQ",
- "badgeClass": "sBS3EsJQRAC0ENTmvETtQw",
- "issuer": "aS1lWKgIR4u8bGjPZUzAyg",
- "recipient": {
- "identity": "sha256$5cb2939f3ae83961b31407fbfd2978e5c642177e50227eb0c7f550c0653803dc",
- "hashed": true,
- "type": "email",
}, - "issuedOn": "2021-04-07T10:07:00.000Z"
}, - "share": "<html>..</html>",
}, - "services": {
- "criteria": {
- "property1": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}, - "property2": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}
}, - "data": {
- "createdAt": "2021-04-07T10:34:02.960Z",
- "createdBy": "e3h49VVbQRKQphuAAmxpgQ",
- "badgeClass": "sBS3EsJQRAC0ENTmvETtQw",
- "issuer": "aS1lWKgIR4u8bGjPZUzAyg",
- "recipient": {
- "identity": "sha256$5cb2939f3ae83961b31407fbfd2978e5c642177e50227eb0c7f550c0653803dc",
- "hashed": true,
- "type": "email",
}, - "issuedOn": "2021-04-07T10:07:00.000Z"
}, - "share": "<html>..</html>",
}, - "fair": {
- "criteria": {
- "property1": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}, - "property2": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}
}, - "data": {
- "createdAt": "2021-04-07T10:34:02.960Z",
- "createdBy": "e3h49VVbQRKQphuAAmxpgQ",
- "badgeClass": "sBS3EsJQRAC0ENTmvETtQw",
- "issuer": "aS1lWKgIR4u8bGjPZUzAyg",
- "recipient": {
- "identity": "sha256$5cb2939f3ae83961b31407fbfd2978e5c642177e50227eb0c7f550c0653803dc",
- "hashed": true,
- "type": "email",
}, - "issuedOn": "2021-04-07T10:07:00.000Z"
}, - "share": "<html>..</html>",
}
}
}
{- "id": "dd7d8481-81a3-407f-95f0-a2f1cb382a4b",
- "name": "sqaaas-api-spec",
- "config_data": [
- {
- "config": {
- "project_repos": [
- {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}
], - "credentials": [
- {
- "id": "my-dockerhub-token",
- "type": "username_password",
- "username_var": "GIT_USER",
- "password_var": "GIT_PASS"
}
]
}, - "sqa_criteria": {
- "property1": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}, - "property2": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}
}, - "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "timeout": 1
}
], - "composer_data": {
- "version": "3.7",
- "services": {
- "property1": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}, - "property2": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}
}
}, - "jenkinsfile_data": {
- "stages": [
- {
- "when": {
- "branches": [
- "master"
]
}, - "pipeline_config": {
- "config_file": "./.sqa/config.yml",
- "base_repository": "master",
- "credentials_id": "userpass_dockerhub",
- "jepl_validator_docker_image": "eoscsynergy/jpl-validator:1.1.0"
}
}
]
}
}
pipeline_id required | string ID of the pipeline to get |
report_to_stdout | boolean Default: false Flag to indicate whether the pipeline shall print via via stdout the reports produced by the tools (required by QAA module) |
name | string <[A-Za-z0-9_.-]> Name that identifies the pipeline |
Array of objects (JePL_config) Details about the pipeline configuration | |
object (JePL_composer) Details about the composition of the services required for the pipeline execution | |
object (JePL_jenkinsfile) Details about the Jenkins Pipeline as Code |
{- "name": "sqaaas-api-spec",
- "config_data": [
- {
- "config": {
- "project_repos": [
- {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}
], - "credentials": [
- {
- "id": "my-dockerhub-token",
- "type": "username_password",
- "username_var": "GIT_USER",
- "password_var": "GIT_PASS"
}
]
}, - "sqa_criteria": {
- "property1": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}, - "property2": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}
}, - "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "timeout": 1
}
], - "composer_data": {
- "version": "3.7",
- "services": {
- "property1": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}, - "property2": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}
}
}, - "jenkinsfile_data": {
- "stages": [
- {
- "when": {
- "branches": [
- "master"
]
}, - "pipeline_config": {
- "config_file": "./.sqa/config.yml",
- "base_repository": "master",
- "credentials_id": "userpass_dockerhub",
- "jepl_validator_docker_image": "eoscsynergy/jpl-validator:1.1.0"
}
}
]
}
}
{- "upstream_status": 0,
- "upstream_reason": "string"
}
Returns the content of JePL's config.yml file.
pipeline_id required | string ID of the pipeline to get |
[- {
- "config": {
- "project_repos": [
- {
- "branch": "master",
- "credentials_id": {
- "secret_id": "my_gitlab_secret",
- "user_id": "my_gitlab_user",
- "token": "my_gitlab_token"
}
}
], - "credentials": [
- {
- "id": "my-dockerhub-token",
- "type": "username_password",
- "username_var": "GIT_USER",
- "password_var": "GIT_PASS"
}
]
}, - "sqa_criteria": {
- "property1": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}, - "property2": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}
}, - "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "timeout": 1
}
]
Returns the content of JePL's config file.
pipeline_id required | string ID of the pipeline to get |
[- {
- "file_name": {
- "file_name": "config.yml"
}, - "content": {
- "property1": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}, - "property2": {
- "repos": [
- {
- "container": "testing",
- "commands": [
- "mvn checkstyle:check"
], - "tox": {
- "testenv": [
- "cover"
], - "tox_file": "tox.ini"
}, - "tool": {
- "name": "fair-eva",
- "lang": "fair",
- "version": "2.0.0",
- "jepl_support": true,
- "docker": {
- "image": "string",
- "dockerfile": "string",
- "reviewed": "2019-08-24",
- "oneshot": true
}, - "executable": "string",
- "args": [
- {
- "type": "subcommand",
- "id": "string",
- "description": "Detect the license of the given project",
- "value": "detect",
- "option": "string",
- "summary": "string",
- "format": "string",
- "selectable": true,
- "repeatable": false,
- "args": [
- { }
]
}
]
}
}
], - "when": {
- "branch": {
- "pattern": "release-\\\\d+",
- "comparator": "GLOB"
}, - "building_tag": true
}
}
}
}
]
Returns the content of the list of scripts generated for the commands builder.
pipeline_id required | string ID of the pipeline to get |
[- {
- "file_name": "script.sh",
- "content": "(\ncd workdir ; npm install\n)"
}
]
Returns the content of JePL's docker-compose.yml file.
pipeline_id required | string ID of the pipeline to get |
[- {
- "version": "3.7",
- "services": {
- "property1": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}, - "property2": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}
}
}
]
Returns the content of JePL's composer file.
pipeline_id required | string ID of the pipeline to get |
{- "file_name": {
- "file_name": "docker-compose.yml"
}, - "content": {
- "version": "3.7",
- "services": {
- "property1": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}, - "property2": {
- "build": {
- "context": "./dir",
- "dockerfile": "Dockerfile-alternate",
- "args": {
- "property1": "string",
- "property2": "string"
}
}, - "image": {
- "name": "eoscsynergy/sqaaas-api-spec:1.0.0",
- "registry": {
- "push": true,
- "credential_id": "my-dockerhub-cred"
}
}, - "hostname": "sqaaas-host",
- "volumes": [
- {
- "type": "bind",
- "source": "./",
- "target": "./sqaaas-build"
}
], - "command": "sleep 600000",
- "environment": {
- "JPL_IGNOREFAILURES": "defined",
- "JPL_DOCKERPUSH": "docs service1 service4"
}, - "oneshot": true
}
}
}
}
Returns the content of JePL's Jenkinsfile file.
pipeline_id required | string ID of the pipeline to get |
[- {
- "stages": [
- {
- "when": {
- "branches": [
- "master"
]
}, - "pipeline_config": {
- "config_file": "./.sqa/config.yml",
- "base_repository": "master",
- "credentials_id": "userpass_dockerhub",
- "jepl_validator_docker_image": "eoscsynergy/jpl-validator:1.1.0"
}
}
]
}
]
Returns the content of Jenkinsfile file for the given pipeline.
pipeline_id required | string ID of the pipeline to get |
{- "file_name": "Jenkinsfile",
- "content": "@Library(['github.com/indigo-dc/jenkins-pipeline-library@release/2.1.0']) _\n\ndef projectConfig\n\npipeline {\n agent any\n\n stages {\n stage('SQA baseline criterion: QC.Sty') {\n when {\n branch pattern: 'sqaaas', comparator: ''\n }\n steps {\n script {\n projectConfig = pipelineConfig(\n configFile: '.sqa/config.yml',\n scmConfigs: [ localBranch: true ]\n )\n buildStages(projectConfig)\n }\n }\n post {\n cleanup {\n cleanWs()\n }\n }\n }\n stage('SQA baseline criterion: QC.Doc') {\n when {\n branch pattern: 'build', comparator: ''\n }\n steps {\n script {\n projectConfig = pipelineConfig(\n configFile: '.sqa/config.snappy-peach-chicken.yml',\n scmConfigs: [ localBranch: true ]\n )\n buildStages(projectConfig)\n }\n }\n post {\n cleanup {\n cleanWs()\n }\n }\n }\n }\n}"
}
Executes the given pipeline by means of the Jenkins API.
pipeline_id required | string ID of the pipeline to get |
issue_badge | boolean Default: false Flag to indicate whether a badge shall be issued if the pipeline succeds |
repo_url | string <uri> URL of the upstream repository to fetch the code from |
repo_branch | string Branch name of the upstream repository to fetch the code from |
keepgoing | boolean Default: false Flag to indicate that the pipeline will run until the end |
{- "upstream_status": 0,
- "upstream_reason": "string"
}
Create a pull request with the generated JePL files.
pipeline_id required | string ID of the pipeline to get |
repo required | string <uri> URL of the upstream repo |
branch | string Brach from the upstream repo used as the base for the pull request |
{- "branch": "string"
}
{
}
Returns the badge data associated with the pipeline.
pipeline_id required | string ID of the pipeline to get |
{- "criteria": {
- "property1": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}, - "property2": {
- "to_fulfill": [ ],
- "missing": [ ],
- "fulfilled": [ ]
}
}, - "data": {
- "createdAt": "2021-04-07T10:34:02.960Z",
- "createdBy": "e3h49VVbQRKQphuAAmxpgQ",
- "badgeClass": "sBS3EsJQRAC0ENTmvETtQw",
- "issuer": "aS1lWKgIR4u8bGjPZUzAyg",
- "recipient": {
- "identity": "sha256$5cb2939f3ae83961b31407fbfd2978e5c642177e50227eb0c7f550c0653803dc",
- "hashed": true,
- "type": "email",
}, - "issuedOn": "2021-04-07T10:07:00.000Z"
}, - "share": "<html>..</html>",
}
Returns the console output from the pipeline execution.
pipeline_id required | string ID of the pipeline to get |
validate | boolean Default: false Flag to indicate whether the returned output shall be validated using sqaaas-reporting tool |
{- "QC.Lic": [
- {
- "status": "SUCCESS",
- "stdout_command": "+ docker-compose -f .sqa/docker-compose.yml --project-directory /jenkins/workspace/ava-maven-app.assess.sqaaas_main/ exec -T qc.lic_boozy-smalt-maltese /usr/bin/env sh .sqa/script.paltry-taupe-reindeer.sh",
- "tool": "licensee",
- "validator": "licensee",
- "validation": {
- "valid": true,
- "data_unstructured": { }
}
}
]
}