|
|
|
@ -27,6 +27,15 @@ def main(ctx):
|
|
|
|
|
"depends_on": ["build"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hadolint = {
|
|
|
|
|
"name": "hadolint",
|
|
|
|
|
"image": "hadolint/hadolint:latest-debian",
|
|
|
|
|
"commands": [
|
|
|
|
|
"cd Sources",
|
|
|
|
|
"hadolint --ignore DL3059 Dockerfile"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
code_inspection = {
|
|
|
|
|
"name": "code-inspection",
|
|
|
|
|
"image": "hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7",
|
|
|
|
@ -146,6 +155,7 @@ def main(ctx):
|
|
|
|
|
if ctx.build.branch == "master":
|
|
|
|
|
pipeline["steps"].append(build)
|
|
|
|
|
pipeline["steps"].append(tests)
|
|
|
|
|
pipeline["steps"].append(hadolint)
|
|
|
|
|
pipeline["steps"].append(code_inspection)
|
|
|
|
|
pipeline["steps"].append(generate_and_deploy_docs)
|
|
|
|
|
pipeline["steps"].append(generate_swashbuckle)
|
|
|
|
@ -168,6 +178,7 @@ def main(ctx):
|
|
|
|
|
|
|
|
|
|
pipeline["steps"].append(build)
|
|
|
|
|
pipeline["steps"].append(tests)
|
|
|
|
|
pipeline["steps"].append(hadolint)
|
|
|
|
|
pipeline["steps"].append(code_inspection)
|
|
|
|
|
pipeline["steps"].append(generate_and_deploy_docs)
|
|
|
|
|
pipeline["steps"].append(generate_swashbuckle)
|
|
|
|
|