Build and publish XDS released packages

Fixed

Description

There are 2 steps:

  1. add jobs in Jenkins of build.automotivelinux.org to build XDS packages : xds-server, xds-agent, xds-cli and xds-gdb

  2. then published only tagged / released version of resulting zip archives for example on https://download.automotivelinux.org/AGL/ 

Note that for now XDS packages are published on IoT.bzh github, for example : https://github.com/iotbzh/xds-server/releases

 

 

Below are the list of commands to build and package xds-server
(just replace xds-server by xds-agent or xds-cli or xds-gdb to build accordingly xds-agent, xds-cli and xds-gdb)

Note that these commands (and more) are documented in XDS chapter of AGL doc website (here [[1]|http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_Prerequisites.html] and [[2]|http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_xds-server/3_build.html]) ; at least when AGL doc website will be regenerated because I just pushed changes in xds/src/xds-docs that are not yet visible in online doc.

 

Install dependencies tools:

  1. Install various tools

    sudo apt-get install git make npm curl git zip unzip wget # Install Go source /etc/os-release wget -O - "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x52B59B1571A79DBC054901C0F6BC817356A3D45E" | sudo apt-key add - sudo bash -c "cat >> /etc/apt/sources.list.d/golang.list <<EOF deb [http://ppa.launchpad.net/longsleep/golang-backports/ubuntu] $\{VERSION_CODENAME} main EOF" sudo apt-get update sudo apt-get install golang-go # Install nodejs LTS version sudo npm install --global n sudo n lts

     

Build:

  1. Go to directory where you want (for example : cd $HOME/xds )

    ROOTDIR=`pwd` mkdir -p $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds cd $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds git clone https://gerrit.automotivelinux.org/gerrit/src/xds/xds-server cd xds-server export V=1 make package-all

    NOTE: the directory structure above is important!

     

> we can work out the jenkins job together so you know where to poke at if you need changes to the build.

Let me know when Jenkins jobs will be setup and don't hesitate to contact me if you encounter any problem.

 

[1]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_Prerequisites.html
[2]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-2/1_xds-server/3_build.html

 

Environment

None

Activity

Show:

Marec Frederic 
June 6, 2018 at 2:54 PM

Marec Frederic 
May 31, 2018 at 7:46 AM

Add modification in ci-xds-verify from ci-management repository

https://gerrit.automotivelinux.org/gerrit/#/c/14147/

Sebastien Douheret 
May 25, 2018 at 8:29 AM

Jan-Simon created jjb templates to build xds-server (see commit : https://gerrit.automotivelinux.org/gerrit/gitweb?p=ci-management.git;a=commit;h=2353fe40cad9d9cc230f0617c879100f5b484bf3 ).

Such templates should be duplicated and adapted to build others XDS packages: xds-agent, xds-cli and xds-gdb.
Re-assigned issue to that will take care of this task.

Sebastien Douheret 
April 30, 2018 at 5:11 PM

Artifact of testsdkbuild/7 is correct.
Looks good to me.

Jan-Simon Moeller 
April 26, 2018 at 1:31 PM

https://build.automotivelinux.org/view/old-agl-ci-jobs/job/testsdkbuild/2/console  testjob. Will send a template for ci-management repo for review and extension.

Details

Assignee

Reporter

Labels

Contract ID

Time tracking

1h logged

Components

Priority

Created March 28, 2018 at 1:31 PM
Updated June 14, 2018 at 10:36 PM
Resolved June 6, 2018 at 2:54 PM

Flag notifications