Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
Java Client API
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
Java Client API
Commits
5abe5f80
Commit
5abe5f80
authored
Apr 23, 2017
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI
parent
44ad36bf
Pipeline
#807
passed with stage
in 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
13 deletions
+67
-13
.ci-maven-settings.xml
.ci-maven-settings.xml
+22
-0
.gitlab-ci.yml
.gitlab-ci.yml
+23
-0
pom.xml
pom.xml
+22
-13
No files found.
.ci-maven-settings.xml
0 → 100644
View file @
5abe5f80
<settings
xmlns=
"http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd"
>
<servers>
<server>
<id>
ossrh
</id>
<username>
${env.OSSRH_USER}
</username>
<password>
${env.OSSRH_PASS}
</password>
</server>
</servers>
<profiles>
<profile>
<id>
ossrh
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<gpg.executable>
${env.GPG_EXECUTABLE}
</gpg.executable>
<gpg.passphrase>
${env.GPG_PASSPHRASE}
</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
.gitlab-ci.yml
0 → 100644
View file @
5abe5f80
stages
:
-
compile
-
deploy
run tests in branches
:
stage
:
compile
image
:
maven:3-jdk-8
script
:
-
MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except
:
-
master
-
tags
publish artifacts
:
stage
:
deploy
image
:
maven:3-jdk-8
script
:
-
echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
-
gpg --list-keys
-
mvn clean deploy --settings .ci-maven-settings.xml -B -U
only
:
-
master
-
tags
pom.xml
View file @
5abe5f80
...
...
@@ -34,8 +34,12 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<jdk.target>
1.6
</jdk.target>
<jdk.source>
1.6
</jdk.source>
<jdk.target>
1.8
</jdk.target>
<jdk.source>
1.8
</jdk.source>
<maven-gpg-plugin.version>
1.5
</maven-gpg-plugin.version>
<nexus-staging-maven-plugin.version>
1.6.8
</nexus-staging-maven-plugin.version>
<show.deprecations>
true
</show.deprecations>
<scribe.version>
1.3.7
</scribe.version>
</properties>
...
...
@@ -44,14 +48,16 @@
<build>
<plugins>
<plugin>
<inherited>
true
</inherited>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.1
</version>
<version>
3.
6.
1
</version>
<configuration>
<source>
${jdk.source}
</source>
<target>
${jdk.target}
</target>
<optimize>
true
</optimize>
<!--<showDeprecation>${show.deprecations}</showDeprecation> -->
<showWarnings>
true
</showWarnings>
<showDeprecation>
true
</showDeprecation>
<failOnWarning>
true
</failOnWarning>
</configuration>
</plugin>
<plugin>
...
...
@@ -130,8 +136,8 @@
<version>
4.3.6
</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>
release
</id>
...
...
@@ -169,7 +175,7 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-gpg-plugin
</artifactId>
<version>
1.5
</version>
<version>
${maven-gpg-plugin.version}
</version>
<executions>
<execution>
<id>
sign-artifacts
</id>
...
...
@@ -184,15 +190,18 @@
</build>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>
ossrh
</id>
<name>
Sonatype Releases
</name>
<url>
https://oss.sonatype.org/service/local/staging/deploy/maven2
</url>
</repository>
<snapshotRepository>
<id>
ossrh
</id>
<name>
Sonatype Snapshots
</name>
<url>
https://oss.sonatype.org/content/repositories/snapshots
</url>
<uniqueVersion>
true
</uniqueVersion>
</snapshotRepository>
<repository>
<id>
ossrh
</id>
<url>
https://oss.sonatype.org/service/local/staging/deploy/maven2/
</url>
</repository>
</distributionManagement>
</project>
\ No newline at end of file
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment