Я использую maven:latest
docker образ для сборки моего приложения с gitlab-ci, работающим на docker executor.
Моя проблема в том, что при запуске этапа сборки журнал отображает много бесполезной информации, такой как :
Downloaded from central: https://repo.maven.apache.org/maven2/com/trilead/trilead-ssh2/1.0.0-build217/trilead-ssh2-1.0.0-build217.jar (250 kB at 174 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
Progress (4): 1.6/3.8 MB | 1.0/1.2 MB | 111/245 kB | 28 kB
Progress (4): 1.6/3.8 MB | 1.0/1.2 MB | 111/245 kB | 28 kB
Progress (4): 1.7/3.8 MB | 1.0/1.2 MB | 111/245 kB | 28 kB
Progress (4): 1.7/3.8 MB | 1.0/1.2 MB | 115/245 kB | 28 kB
Progress (4): 1.7/3.8 MB | 1.0/1.2 MB | 115/245 kB | 28 kB
Progress (4): 1.7/3.8 MB | 1.0/1.2 MB | 119/245 kB | 28 kB
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar (28 kB at 19 kB/s)
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 119/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 119/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 123/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 127/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 131/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 131/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 131/245 kB
Progress (3): 1.7/3.8 MB | 1.0/1.2 MB | 135/245 kB
Progress (4): 1.7/3.8 MB | 1.0/1.2 MB | 160/245 kB | 13 kB
Progress (4): 1.7/3.8 MB | 1.0/1.2 MB | 164/245 kB | 13 kB
Progress (4): 1.7/3.8 MB | 1.1/1.2 MB | 164/245 kB | 13 kB
Progress (4): 1.7/3.8 MB | 1.1/1.2 MB | 164/245 kB | 13 kB
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar (13 kB at 9.2 kB/s)
Или
Running before_script and script[0;m
$ yum install -y git[0;m
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-21.el7_7 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-21.el7_7 for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl >= 5.008 for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(vars) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
---> Package perl-Git.noarch 0:1.8.3.1-21.el7_7 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
---> Package rsync.x86_64 0:3.1.2-10.el7 will be installed
....
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
git x86_64 1.8.3.1-21.el7_7 ol7_latest 4.4 M
Installing for dependencies:
acl x86_64 2.2.51-15.el7 ol7_latest 81 k
cracklib x86_64 2.9.0-11.el7 ol7_latest 79 k
cracklib-dicts x86_64 2.9.0-11.el7 ol7_latest 3.6 M
cryptsetup-libs x86_64 2.0.3-6.el7 ol7_latest 338 k
....
Мой вопрос: есть ли способ игнорировать эти беспорядочные журналы?
my citlab-gi.yml:
image: maven:latest
# Services goes here
# Cache goes here
cache:
paths:
- .m2/repository
- frontend-app/node_modules/
# ENV variables goes here
# Before script goes here
before_script:
- mvn --version
# Stages definition goes here
stages:
- build
# Build stage
build:
stage: build
before_script:
- yum install -y git
- git --version
script:
- mvn clean install --settings .ci/settings.xml