nativeInstallerjenkins

Use a custom executable in a Jenkins job

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

If you wish to use a custom binary executable or custom shell script in a Jenkins job, follow these steps:

  • Copy the custom binary or shell script to the installdir/apps/jenkins directory. For example:

    $ sudo cp test.sh installdir/apps/jenkins/test.sh
    
  • Change the permissions as shown below:

    $ sudo chmod +x installdir/apps/jenkins/test.sh
    

You should now be able to use the custom binary or shell script in a Jenkins job using the “Execute shell” build step and entering the complete path to the target file in the “Command” field.

Jenkins build step

Last modification August 23, 2019