Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ciwrappers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
ciwrappers
Commits
1c576a7d
Commit
1c576a7d
authored
2 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
moves to news maven images
parent
20e385e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-wrappers.sh
+7
-13
7 additions, 13 deletions
ci-wrappers.sh
with
7 additions
and
13 deletions
ci-wrappers.sh
+
7
−
13
View file @
1c576a7d
...
@@ -222,16 +222,7 @@ docker-wrapper-run-all() (
...
@@ -222,16 +222,7 @@ docker-wrapper-run-all() (
# Runs maven in a container as the user
# Runs maven in a container as the user
# see https://github.com/ebpro/docker-maven
# see https://github.com/ebpro/docker-maven
docker-mvn
()
(
docker-mvn
()
(
_docker_env
docker run
--rm
-it
\
_check_commands docker
docker run
\
--env
IMAGE_NAME
=
"
$IMAGE_NAME
"
\
--env
GITHUB_LOGIN
=
"
$GITHUBLOGIN
"
\
--env
GITHUB_TOKEN
=
"
$GITHUBTOKEN
"
\
--env
SONAR_URL
=
"
$SONAR_URL
"
\
--env
SONAR_TOKEN
=
"
$SONAR_TOKEN
"
\
--env
SONAR_URL
=
"
$SONAR_URL
"
\
--env
SONAR_TOKEN
=
"
$SONAR_TOKEN
"
\
--env
S6_LOGGING
=
1
\
--env
S6_LOGGING
=
1
\
--env
S6_BEHAVIOUR_IF_STAGE2_FAILS
\
--env
S6_BEHAVIOUR_IF_STAGE2_FAILS
\
--volume
"
${
HOME
}
/.m2"
:
"/home/user/.m2"
\
--volume
"
${
HOME
}
/.m2"
:
"/home/user/.m2"
\
...
@@ -239,16 +230,19 @@ docker-mvn() (
...
@@ -239,16 +230,19 @@ docker-mvn() (
--volume
"
${
HOME
}
/.gitconfig"
:
"/home/user/.gitconfig"
\
--volume
"
${
HOME
}
/.gitconfig"
:
"/home/user/.gitconfig"
\
--volume
"
$(
pwd
)
"
:
"/usr/src/mymaven"
\
--volume
"
$(
pwd
)
"
:
"/usr/src/mymaven"
\
--workdir
/usr/src/mymaven
\
--workdir
/usr/src/mymaven
\
--rm
\
--env
PUID
=
"
$(
id
-u
)
"
-e
PGID
=
"
$(
id
-g
)
"
\
--env
PUID
=
"
$(
id
-u
)
"
-e
PGID
=
"
$(
id
-g
)
"
\
--env
MAVEN_CONFIG
=
/home/user/.m2
\
--env
MAVEN_CONFIG
=
/home/user/.m2
\
"
${
MAVEN_IMAGE
:-
${
CI_MAVEN_DEFAULT_IMAGE
}
}
"
\
"
${
MAVEN_IMAGE
:-
"brunoe/maven"
}
"
\
runuser
--user
user
\
runuser
--user
user
\
--group
user
\
--group
user
\
--
mvn
--errors
--threads
1C
--color
always
--strict-checksums
\
--
mvn
--errors
--threads
1C
--color
always
--strict-checksums
\
-Duser
.home
=
/home/user
\
-Duser
.home
=
/home/user
\
--settings
/usr/src/mymaven/docker/ci-settings.xml
"
$@
"
"
$@
"
)
)
docker-mvn-8
()
(
MAVEN_IMAGE
=
brunoe/maven:8 docker-mvn
$@
)
docker-mvn-11
()
(
MAVEN_IMAGE
=
brunoe/maven:11 docker-mvn
$@
)
docker-mvn-17
()
(
MAVEN_IMAGE
=
brunoe/maven:17 docker-mvn
$@
)
docker-mvn-19
()
(
MAVEN_IMAGE
=
brunoe/maven:19 docker-mvn
$@
)
docker-sonar-analysis
()
(
docker-sonar-analysis
()
(
docker-mvn
-P
jacoco,sonar
\
docker-mvn
-P
jacoco,sonar
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment