-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
61 lines (53 loc) · 1.5 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
include:
- component: $CI_SERVER_FQDN/idw/pipeline-catalog/[email protected]
inputs:
stage: publish
target_branch: main
image: $PLUGIN_BUILDER_IMAGE
# Disable the Gradle daemon for Continuous Integration servers as correctness
# is usually a priority over speed in CI environments. Using a fresh
# runtime for each build is more reliable since the runtime is completely
# isolated from any previous builds.
stages:
- build_reporting
- publish
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GIT_SUBMODULE_STRATEGY: recursive
DEFAULT_BRANCH_ROOT_URL: "$CI_PROJECT_URL/-/blob/$CI_DEFAULT_BRANCH"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- export GIT_SSH_COMMAND=/usr/bin/ssh
- git checkout "$CI_COMMIT_REF_NAME"
- export JAVA_HOME=$JAVA_11
- set_java_version
- get_iiq_binaries ./lib/sailpoint/ identityiq connector-bundle-identityiq
build:
stage: build_reporting
script:
- ./gradlew build javadoc -x checkstyleMain -x checkstyleTest
artifacts:
name: "iiqcommon-public-library"
paths:
- build/docs/**
- build/libs/**
- build/reports/**
# expire_in: 1 month
checkstyle:
stage: build_reporting
script:
- ./gradlew checkstyleMain
artifacts:
name: "checkstyle"
reports:
codequality:
- build/reports/checkstyle/main.json
deploy:
stage: publish
needs:
- job: build
artifacts: true
script:
- ./gradlew publish
rules:
- if: $CI_COMMIT_BRANCH == "main"