Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack

Documentation

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correct the encryption command for the password

...

  1. Run `mvn clean deploy` to test the configuration of the snapshots deployment
  2. Add .travis.yml and maven-settings.xml files below to the root of your project
Code Block
languagexml
firstline1
titlemaven-settings.xmlfirstline1
linenumberstrue
<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>openmrs-repo-snapshots</id>
         <username>${env.OPENMRS_REPO_USERNAME}</username>
         <password>${env.OPENMRS_REPO_PASSWORD}</password>
      </server>
   </servers>
</settings>


Code Block
languagetext
firstline1
title.travis.ymlfirstline1
linenumberstrue
before_install: "git clone -b travis `git config --get remote.origin.url` target/travis"
after_script: "mvn deploy --settings target/travis/settings.xml"
language: java
branches:
  except:
    - travis
jdk:
 - openjdk7
 - oraclejdk7
script: mvn clean install --batch-mode
matrix:
  allow_failures:
   jdk: oraclejdk7
  env:
      global:

...

Code Block
languagebash
titleEncrypt Travis variables
linenumberstrue
travis encrypt OPENMRS_REPO_USERNAME=nexus_username --add env.global
travis encrypt OPENMRS_REPO_PASSWORD=nexus_usernamepassword --add env.global


Info

NOTE: You need to encrypt the username and password for each repository, as the encrypted values are repository specific 

...

Content by Label
showSpace
showLabelsfalse
max5
spacesdocs
showSpacefalse
sortmodified
falsereversetrue
typepage
cqllabel in ("deploy","travis","nexus","snapshots") and type = "page" and space = "docs"
labelstravis nexus snapshots deploy

Page properties
hiddentrue


 
Related issues