/sii-dir-digger

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

To build package
    $ mvn clean install

Then jenkins plugin is in file
    target/mib3-flash-board.hpi

Install it on jenkins website
    'Manage jenkins' -> 'Manage plugins' -> 'Advanced' -> 'Upload Plugin' -> 'Browse' and 'Upload'

Then create new job with parameter.
    'New item' -> 'Freestyle project' -> 'This project is parameterized' -> 'Add parameter' -> 'Mib3 board flash'

Provide this data in fields
    Name: BOARD
    Description: Board to flash
    Login: jenkins
    Host: mib3rpi.plkra.europe.delphiauto.net
    Command: mib3_jenkins_list_devices

Then click 'Build with Parameters' in this new job. You should see form like
    BOARD: <combo box>

<combo box> would be filled with data generated by script 'Command' run on remote host by ssh.
Output of this script should be rows with key-value pairs separated by semicolon ':'
Key you would see in <combo box> list.
Value would be assigned to environment variable BOARD in next build step.