[SOLVED] Using segger studio project in Jenkins

  • I have SES project and I used the export makefile and it created the makefile, I went to that location and ran make it didn't work. I am wondering how to integrate my SES C project in the continuous integration.

    Did anyone successfully configured SES in CI such as Jenkins?
    all: \ Output/Debug/Exe/ble_app_template_pca10056_s140.elf\Error: make: *** No targets specified and no makefile found.Stop.

  • Hi,


    actually, we are using Jenkins + ES here at SEGGER.
    We are using emBuild, located in the "Bin" folder of ES in order to build projects.
    Please find below a snippet from our internal Python script.

    Python
    _ES_BUILD = r"\bin\emBuild.exe"
    [..]  
    def BuildConfig(self, sConfigName, hProject):
        sProjectPath = hProject.GetProjectPath()
        tStart = time.time()
        Status = subprocess.run([self._sESBasePath + _ES_BUILD, "-config", sConfigName, sProjectPath], stdout=subprocess.PIPE)
        tEnd = time.time()
        tTotal = tEnd - tStart
        _Debug_Out_Str("BuildTime: {:.3f}s".format(tTotal))
        return Status.returncode

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!