We have a base GitLab CI template which includes by default certain artifacts. Now we need to include this template in one of the pipelines we have and in a job we want not to pass the artifacts.
We tried this:
artifacts: [] EDIT
Here my example:
base.yaml
build: stage: build script: - echo "build..." artifacts: expire_in: 3 weeks reports: dotenv: VERSION.env paths: - '$env:BUILD_OUTPUT_DIR\**\webconfigs' - '$env:MSBUILD_OUTPUT_DIR\**\_PublishedWebsites\**\*.zip' child.yaml
include: 'base.yaml' build:child: extends: [build] before_script: [] script: - *run-nuget-restore - *build-release artifacts: [] # I don't need any of the atributes of the base template, but this does not work but it's not valid! How can I set the artifacts attributes to empty?