Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6881319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:05:33+00:00 2026-05-27T05:05:33+00:00

How can I set up builds of Play apps and (custom) Play modules in

  • 0

How can I set up builds of Play apps and (custom) Play modules in a CI system so that when a module’s build is good, the build installs the module artifacts in a local repository and/or deploys them to a remote repository, and the apps use the artifacts in that repository?

The solution should also work well for a developer who’s working locally.

I’m using Jenkins, and running in trouble whatever way I try to do this.

Before I elaborate on all the problems I’ve encountered, I’ll wait, because it is laborious, and maybe someone else can offer how they do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:05:34+00:00Added an answer on May 27, 2026 at 5:05 am

    I have a setup in jenkins that works well from dev to production.

    First here is the configuration in the dependencies.yml for the custom module repository

    repositories:
        - modules:
            type: chain
            using:
                - localModules:
                    type: local
                    descriptor: "${application.path}/../[module]/conf/dependencies.yml"
                    artifact: "${application.path}/../[module]"
                - repoModules:
                    type: http
                    artifact: "http://mynexus/nexus/content/repositories/releases/com/myorg/[module]/[revision]/[module]-[revision].zip"
            contains:
                - com.myorg -> *
    

    With this developers and jenkins search firstly in the same repository to see if a module is present and if not, got to the nexus repository to download the artifact.

    To build my module in jenkins I use a custom sh script like this

    #!/bin/bash
    APPLICATION="myModule"
    PLAY_PATH="/usr/local/play"
    set –xe
    
    $PLAY_PATH/play deps --sync
    $PLAY_PATH/play build-module --require 1.2.3
    VERSION=`grep self conf/dependencies.yml | sed "s/.*$APPLICATION //"`
    echo "Sending $APPLICATION-$VERSION.zip to nexus repository"
    curl --request POST --user user:passwd http://mynexus/nexus/content/repositories/releases/com/myorg/$APPLICATION/$VERSION/$APPLICATION-$VERSION.zip -F "file=@dist/$APPLICATION-$VERSION.zip"  --verbose
    

    With this script you are able to push your module to nexus on each jenkins build. This is not really what I do. I use jenkins release module to push it only when I build a release. For a release I have a special script

    #!/bin/bash
    APPLICATION="myModule"
    PLAY_PATH="/usr/local/play"
    set –xe
    
    if [ -z "$RELEASE_VERSION" ]
    then
      echo "Parameter RELEASE_VERSION is mandatory"
      exit 1
    fi
    if [ -z "$DEVELOPMENT_VERSION" ]
    then
      echo "Parameter DEVELOPMENT_VERSION is mandatory"
      exit 1
    fi
    echo "Release version : $RELEASE_VERSION"
    echo "Development version : $DEVELOPMENT_VERSION"
    VERSION=`grep self conf/dependencies.yml | sed "s/.*$APPLICATION //"`
    if [ "$RELEASE_VERSION" != "$VERSION" ]
    then
      echo "Release version $RELEASE_VERSION and play version $VERSION in dependencies.yml does not match : release failed"
      exit 1
    fi
    REVISION=`svnversion .`
    echo "Tag svn repository in revision $REVISION with version $VERSION"
    svn copy -m "Version $VERSION" -r $REVISION http://mysvn/myRepo/$APPLICATION/trunk/ http://mysvn/myRepo/$APPLICATION/tags/$VERSION
    echo "svn tag applied"
    echo "Sending $APPLICATION-$VERSION.zip to nexus repository"
    curl --request POST --user user:passwd http://mynexus/nexus/content/repositories/releases/com/myorg/$APPLICATION/$VERSION/$APPLICATION-$VERSION.zip -F "file=@dist/$APPLICATION-$VERSION.zip"  --verbose
    echo "$APPLICATION-$VERSION.zip sent to nexus repository"
    echo "Update module to version $DEVELOPMENT_VERSION"
    sed -i "s/self\(.*\)$VERSION/self\1$DEVELOPMENT_VERSION/g" conf/dependencies.yml
    svn commit -m "Version $DEVELOPMENT_VERSION" conf/dependencies.yml
    svn update
    echo "Version $DEVELOPMENT_VERSION créée"
    

    This script put a tag in our svn repository, push the module to nexus and update dependencies.yml file.

    With this jenkins can build an app which depends on a local version of the module while it is not released and after that can build the app by downloading the module artifcat from the nexus repository. It is the same thing for developers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How does one build a function that can set an arbitrary value within a
Can we set the build settings for different targets in the project build settings
In Photoshop you can set a layer's blending mode to be Hue. If that
I understand that we can set the various style attributes from code behind using
I'm remaking an old warcraft 3 custom game that I used to play way
I'd like to set the builds name in Visual Studio to something like that:
How can I set up email notifications for builds and check-in's on TFS? I
I'm trying to set up continuous builds/integration for a stable of iPhone apps. I
I'm trying to build an android app that allows user to play a game
I've got Qt build for a CE 6 custom sdk. I can use VS2005

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.