Commit bba3e41c authored by Denis Konovalyenko's avatar Denis Konovalyenko

Cleanup [skip ci].

parent d47491fb
......@@ -39,11 +39,9 @@ variables:
OPENSSL_CLI_OPTS: "enc -aes-256-cbc -K ${OPENSSL_ENC_KEY} -iv ${OPENSSL_ENC_IV}"
GPG_CONF: ".gnupg/gpg.conf"
GPG_AGENT_CONF: ".gnupg/gpg-agent.conf"
# TODO: adjust the line below to refer to the appropriate Okapi project ID.
OKAPI_PROJECT_ID: "9038636"
# TODO: Replace 2 lines below with appropriate ("dev") values when everything is get ready.
OKAPI_SNAPSHOTS_BRANCH: "gitlab-integration"
SNAPSHOTS_BRANCH: "gitlab-integration"
OKAPI_PROJECT_ID: "9036176"
OKAPI_SNAPSHOTS_BRANCH: "dev"
SNAPSHOTS_BRANCH: "dev"
# CI_DEBUG_TRACE: "true" # WARNING: all secret variables will be exposed to a job output!
verification:
......@@ -54,6 +52,7 @@ verification:
- ${HOME}/.m2/repository/
- ${HOME}/target/
script:
- BUILD_STATUS=running BUILD_KEY=push ${CI_GITLAB_PATH}/build-status
- mvn verify ${MAVEN_CLI_OPTS}
.deployment: &deployment
......@@ -66,11 +65,11 @@ verification:
policy: pull
script:
- openssl ${OPENSSL_CLI_OPTS} -d -in ${CI_GITLAB_PATH}/code-signing-key.asc.enc -out ${CI_GITLAB_PATH}/code-signing-key.asc
- gpg --batch --import ${CI_GITLAB_PATH}/code-signing-key.asc
- gpg --quiet --batch --import ${CI_GITLAB_PATH}/code-signing-key.asc
- echo "use-agent" > ${HOME}/{GPG_CONF}
- echo "pinentry-mode loopback" >> ${HOME}/${GPG_CONF}
- echo "allow-loopback-pinentry" > ${HOME}/${GPG_AGENT_CONF}
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles release #--quiet
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles sign_and_deploy,release #--quiet
snapshot:
<<: *deployment
......
<?xml version="1.0"?>
<settings>
<servers>
<!--<server>-->
<!--<id>sonatype</id>-->
<!--<username>${MAVEN_REPO_USER}</username>-->
<!--<password>${MAVEN_REPO_PASS}</password>-->
<!--</server>-->
<server>
<id>nexus</id>
<username>${MAVEN_REPO_USER_FOR_NEXUS}</username>
<password>${MAVEN_REPO_PASS_FOR_NEXUS}</password>
<id>sonatype</id>
<username>${MAVEN_REPO_USER}</username>
<password>${MAVEN_REPO_PASS}</password>
</server>
<!--<server>-->
<!--<id>gitlab</id>-->
<!--<configuration>-->
<!--<httpHeaders>-->
<!--<property>-->
<!--<name>Job-Token</name>-->
<!--<value>${CI_JOB_TOKEN}</value>-->
<!--</property>-->
<!--</httpHeaders>-->
<!--</configuration>-->
<!--</server>-->
</servers>
<profiles>
......@@ -35,29 +19,11 @@
</properties>
</profile>
<profile>
<id>release</id>
<id>sign_and_deploy</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
</properties>
<!--<repositories>-->
<!--<repository>-->
<!--<id>ossrh</id>-->
<!--<name>Releases Repository for Downloads</name>-->
<!--<url>http://91.211.13.180:8081/nexus/content/repositories/releases/</url>-->
<!--<snapshots>-->
<!--<enabled>false</enabled>-->
<!--</snapshots>-->
<!--</repository>-->
<!--<repository>-->
<!--<id>ossrhs</id>-->
<!--<name>Snapshots Repository for Downloads</name>-->
<!--<url>http://91.211.13.180:8081/nexus/content/repositories/snapshots/</url>-->
<!--<snapshots>-->
<!--<enabled>true</enabled>-->
<!--</snapshots>-->
<!--</repository>-->
<!--</repositories>-->
</profile>
</profiles>
</settings>
......@@ -42,43 +42,19 @@
<url>https://bitbucket.org/okapiframework/xliff-toolkit/src</url>
</scm>
<!--<distributionManagement>-->
<!--<repository>-->
<!--<id>sonatype</id>-->
<!--<name>Sonatype Releases</name>-->
<!--<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>-->
<!--</repository>-->
<!--<snapshotRepository>-->
<!--<id>sonatype</id>-->
<!--<name>Sonatype Snapshots</name>-->
<!--<url>https://oss.sonatype.org/content/repositories/snapshots</url>-->
<!--</snapshotRepository>-->
<!--</distributionManagement>-->
<distributionManagement>
<repository>
<id>nexus</id>
<name>Nexus Releases for Uploads</name>
<url>http://91.211.13.180:8081/nexus/content/repositories/releases/</url>
<id>sonatype</id>
<name>Sonatype Releases</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>Nexus Snapshots for Uploads</name>
<url>http://91.211.13.180:8081/nexus/content/repositories/snapshots/</url>
<id>sonatype</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<!--<distributionManagement>-->
<!--<repository>-->
<!--<id>gitlab</id>-->
<!--<url>https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/maven</url>-->
<!--</repository>-->
<!--<snapshotRepository>-->
<!--<id>gitlab</id>-->
<!--<url>https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/maven</url>-->
<!--</snapshotRepository>-->
<!--</distributionManagement>-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.deploy.skip>false</maven.deploy.skip>
......@@ -169,38 +145,9 @@
</build>
<profiles>
<profile>
<id>release</id>
<id>sign_and_deploy</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
......@@ -214,23 +161,20 @@
</goals>
</execution>
</executions>
<!--<configuration>-->
<!--<skip>false</skip>-->
<!--<lockMode>never</lockMode>-->
<!--<defaultKeyring>false</defaultKeyring>-->
<!--<useAgent>false</useAgent>-->
<!--<gpgArguments>-->
<!--<gpgArgument>&#45;&#45;batch</gpgArgument>-->
<!--<gpgArgument>&#45;&#45;no-tty</gpgArgument>-->
<!--<arg>&#45;&#45;no-random-seed-file</arg>-->
<!--<arg>&#45;&#45;no-permission-warning</arg>-->
<!--</gpgArguments>-->
<!--</configuration>-->
<configuration>
<skip>false</skip>
<lockMode>never</lockMode>
<defaultKeyring>false</defaultKeyring>
<useAgent>false</useAgent>
<gpgArguments>
<arg>--no-random-seed-file</arg>
<arg>--no-permission-warning</arg>
</gpgArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<!--<version>2.8.2</version>-->
<configuration>
<skip>true</skip>
</configuration>
......@@ -250,12 +194,8 @@
</execution>
</executions>
<configuration>
<!--<serverId>sonatype</serverId>-->
<!--<nexusUrl>https://oss.sonatype.org/</nexusUrl>-->
<serverId>nexus</serverId>
<nexusUrl>http://91.211.13.180:8081/nexus/</nexusUrl>
<!--<serverId>gitlab</serverId>-->
<!--<nexusUrl>https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/maven/</nexusUrl>-->
<serverId>sonatype</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- Set this to true and the release will automatically proceed and sync to Central Repository will follow -->
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
......@@ -263,5 +203,41 @@
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment