[SOLVED] Using segger studio project in Jenkins

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [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 Source Code

    1. _ES_BUILD = r"\bin\emBuild.exe"
    2. [..]
    3. def BuildConfig(self, sConfigName, hProject):
    4. sProjectPath = hProject.GetProjectPath()
    5. tStart = time.time()
    6. Status = subprocess.run([self._sESBasePath + _ES_BUILD, "-config", sConfigName, sProjectPath], stdout=subprocess.PIPE)
    7. tEnd = time.time()
    8. tTotal = tEnd - tStart
    9. _Debug_Out_Str("BuildTime: {:.3f}s".format(tTotal))
    10. 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: segger.com/ticket/

    Or you can contact us via e-mail.