Commit ae0485e2 authored by Aurelien's avatar Aurelien
Browse files

Merge branch '225-check-if-our-jobs-use-expose_as' into 'latest'

Resolve "Check if our jobs use `expose_as`"

Closes #225

See merge request r2devops/hub!178
parents a1bc7652 86838140
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ include:
  - remote: 'https://jobs.r2devops.io/0.3.0/pages.yml?scope=0.yml'
  - remote: 'https://jobs.r2devops.io/lighthouse.yml?scope=0.yml'


ci_linter:
  stage: static_tests
  image:
+8 −7
Original line number Diff line number Diff line
@@ -35,12 +35,13 @@ code using [apiDoc](https://apidocjs.com/){:target="_blank"}.

### Artifacts

Result of documentation build is [exposed
as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as){:target="_blank"} `apiDoc build` in
merge requests.
When the job is successful, the build of your documentation is available as artifact.

!!! warning
    Exposition of artifact doesn't work currently because of [this issue from
    Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129){:target="_blank"}. As soon as
    the issue will be fixed, exposed artifacts will be available in merge
    requests.
    It's also [exposed as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as){:target="_blank"}
    `apiDoc Build` in merge requests.
    Exposition of artifact currently works only if you keep `APIDOC_OUTPUT_PATH`
    default value because of [this issue from
    Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129){:target="_blank"}.
    As soon as the issue will be fixed, exposed artifacts will be available
    with any output location.
+3 −0
Original line number Diff line number Diff line
@@ -21,3 +21,6 @@ apidoc:
    expose_as: "apiDoc build"
    paths:
      - "$APIDOC_OUTPUT_PATH"
      # Below path is a workaround to provide artifact exposition in MR if
      # default output value is used. See https://r2devops.io/jobs/build/apidoc/#artifacts
      - "website_build/"
+1 −0
Original line number Diff line number Diff line
* Enable `artifact:expose_as` option to display job result in merge request
+8 −5
Original line number Diff line number Diff line
@@ -41,10 +41,13 @@ It is using the scripted installation provided from Microsoft, see [here](https:

### Artifacts

When the job is successful, the build of your project is available in an artifact. The artifact is `exposed_as` (see [expose](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as){:target="_blank"}) `dotNET Build` in your merge request.
When the job is successful, the build of your project is available as artifact.

!!! warning
    Exposition of artifact doesn't work currently because of [this issue from
    Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129){:target="_blank"}. As soon as
    the issue will be fixed, exposed artifacts will be available in merge
    requests.
    It's also [exposed as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as){:target="_blank"}
    `dotNET Build` in merge requests.
    Exposition of artifact currently works only if you keep `DOTNET_OUTPUT`
    default value because of [this issue from
    Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129){:target="_blank"}.
    As soon as the issue will be fixed, exposed artifacts will be available
    with any output location.
Loading