Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
EIP
Labrador
AuTA
Core
Commits
c2f40a28
Unverified
Commit
c2f40a28
authored
Sep 21, 2020
by
Luc Everse
Browse files
Options
Downloads
Plain Diff
Merge branch 'development' into better-assembly-analysis
parents
247992fa
965de732
Branches
better-assembly-analysis
Branches containing commit
Tags
Tags containing commit
2 merge requests
!148
Release 2.3.0
,
!139
Better assembly analysis
Pipeline
#372354
passed with warnings
Sep 21, 2020
Stage: build
Stage: test
Stage: jar
Stage: publish
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+58
-2
58 additions, 2 deletions
.gitlab-ci.yml
devops/build-slim-image
+44
-0
44 additions, 0 deletions
devops/build-slim-image
with
102 additions
and
2 deletions
.gitlab-ci.yml
+
58
−
2
View file @
c2f40a28
...
...
@@ -73,6 +73,8 @@ stages:
# - dast
-
staging
-
canary
-
jar
-
publish
-
production
-
incremental rollout 10%
-
incremental rollout 25%
...
...
@@ -127,17 +129,71 @@ trampoline-feedback:
expire_in
:
1 week
checkstyle
:
st
age
:
test
#
im
age:
$CI_REGISTRY/$CI_PROJECT_PATH/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA
image
:
wukl/auta-build:0.1.0
stage
:
test
script
:
-
./gradlew checkstyleMain checkstyleTest
spotbugs
:
st
age
:
test
#
im
age:
$CI_REGISTRY/$CI_PROJECT_PATH/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA
image
:
wukl/auta-build:0.1.0
stage
:
test
script
:
-
./gradlew :spotbugsMain :core:spotbugsMain :worker:spotbugsMain
jar-core
:
# image: $CI_REGISTRY/$CI_PROJECT_PATH/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA
image
:
wukl/auta-build:0.1.0
stage
:
jar
script
:
-
./gradlew bootJar
artifacts
:
paths
:
-
core/build/libs/core-*.jar
expire_in
:
1h
jar-worker
:
# image: $CI_REGISTRY/$CI_PROJECT_PATH/$CI_COMMIT_REF_NAME:$CI_COMMIT_SHA
image
:
wukl/auta-build:0.1.0
stage
:
jar
script
:
-
./gradlew :worker:jar
artifacts
:
paths
:
-
worker/build/libs/worker-*.jar
expire_in
:
1h
publish-core
:
image
:
registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image/master:stable
variables
:
DOCKER_TLS_CERTDIR
:
"
"
services
:
-
docker:19.03.5-dind
only
:
-
branches
stage
:
publish
dependencies
:
-
jar-core
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
devops/build-slim-image core $CI_COMMIT_REF_NAME
publish-worker
:
image
:
registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image/master:stable
variables
:
DOCKER_TLS_CERTDIR
:
"
"
services
:
-
docker:19.03.5-dind
only
:
-
branches
stage
:
publish
dependencies
:
-
jar-worker
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
devops/build-slim-image worker $CI_COMMIT_REF_NAME
# Override DAST job to exclude master branch
#dast:
# except:
...
...
This diff is collapsed.
Click to expand it.
devops/build-slim-image
0 → 100755
+
44
−
0
View file @
c2f40a28
#!/bin/bash
set
-e
COMPONENT
=
$1
TAG
=
$2
if
[
-z
"
$COMPONENT
"
]
||
[
"
$COMPONENT
"
=
all
]
then
./
$0
core
$TAG
./
$0
worker
$TAG
exit
fi
if
[
-n
"
$TAG
"
]
then
TAG
=
-
$TAG
fi
VERSION
=
$(
grep
-o
" version = '[^']*'"
build.gradle |
cut
-d
"'"
-f
2 |
tr
-d
'\n'
)
/bin/echo
-e
"
\0
33[33;1mReleasing AuTA
$COMPONENT
v
$VERSION$TAG
\0
33[0m"
if
[
$COMPONENT
=
core
]
then
ARGS
=
else
ARGS
=
'host=$COREADDRESS name=$WORKERNAME api-token=$APIKEY api-protocol=$APIPROTOCOL api-port=$APIPORT docker-api=$DOCKERAPI'
fi
docker build
--no-cache
--pull
-t
$CI_REGISTRY
/
$CI_PROJECT_PATH
/
$COMPONENT
-f
slim-
$COMPONENT
.Dockerfile
.
\
--build-arg
VERSION
=
$VERSION
--build-arg
COMPONENT
=
$COMPONENT
--build-arg
ARGS
=
"
$ARGS
"
if
[
"
$TAG
"
=
-local
]
then
exit
fi
if
[
"
$TAG
"
=
-latest
]
||
[
"
$TAG
"
=
-master
]
then
docker push
$CI_REGISTRY
/
$CI_PROJECT_PATH
/
$COMPONENT
else
docker tag
$CI_REGISTRY
/
$CI_PROJECT_PATH
/
$COMPONENT
$CI_REGISTRY
/
$CI_PROJECT_PATH
/
$COMPONENT
:
$VERSION$TAG
docker push
$CI_REGISTRY
/
$CI_PROJECT_PATH
/
$COMPONENT
:
$VERSION$TAG
fi
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