How manage to get an automated build server with jenkins for projects in Delphi How manage to get an automated build server with jenkins for projects in Delphi jenkins jenkins

How manage to get an automated build server with jenkins for projects in Delphi


You can create simple jobs "free-style job" or "pipelines". The pipelines are more powerful, but more complicated if you are starting.

You can start by creating a Job for each project. Then you can chain projects with different jenkins options. When a Job finish the other job start. See image following image.

enter image description here

You can also use to compile an existing plugin for existing RAD Studio for Jenkins. Use it in "free-style job".

The other option is to use pipelines, but you should know something about Groovy. For example, a simple pipeline with several steps would be this:

pipeline {    agent any    stages {        stage('Stage: Show message Hola Mundo') {            steps {                echo 'Paso 1. Hola Mundo'            }        }        stage('Download source from GIT') {            steps {                echo 'Downloading...'                git([url: 'https://XXX_repository_xxxx.git/gitProject', branch: 'master', credentialsId: 'a234234a-344e-2344-9440-423444xxxxxx'])            }        }        stage('Executing MSDOS file (BAT)') {            steps {                echo '-- Sample Executing BAT file'                bat '"c:\\Program Files (x86)\\Embarcadero\\Studio\\19.0\\bin\\rsvars.bat"'            }        }        stage('MSBuild a Delphi project') {            steps {                println("************ EXECUTING MSBUILD ******************")                echo '-- Lanzar la ejecuciĆ³n de rsVars ---------'                bat '"c:\\Program Files (x86)\\Embarcadero\\Studio\\19.0\\bin\\rsvars.bat"'                echo '-- MSBuils del proyecto TestLauncher -------'                bat '"c:\\local\\AutomaticTestsProject\\compilar.bat"'                            }            }        stage('Execute a test project (EXE)') {            steps {                bat 'c:\\local\\AutomaticTestsProject\\BIN\\AutomaticTestsProject.exe'            }        }        stage('Send emeil') {            steps {                emailext (                    subject: "Job '${env.JOB_NAME} ${env.BUILD_NUMBER}'",                    body: """<p>Check console output at <a href="${env.BUILD_URL}">${env.JOB_NAME}</a></p>""",                    to: "destinatary@hotmail.com",                    from: "JenkinsMachine@mail.com" )            }        }    }}