Skip to content

seven6306/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNBL Jenkins CI/CD

Overview


Workflow

Please refer to http://10.6.75.10:8081/

Description

This build code server is based on Jenkins agent, It's a job proxy server, build on docker container.

Agent Server Connection

  1. Agent Connect
  2. Click Launch agent from browser button, will download the slave-agent.jnlp
  3. Run slave-agent.jnlp to connect the master server.
  4. Permanently accept the application access.
  5. When status changed to connected, Enjoy it!

Working Space

D:\Jenkins\workspace

Python Tool Directory

D:\python_script

Veb Tools Directory

D:\Veb30_7


BIOS Auto Build

  1. Job View:

  2. Schedule:

    • A.M. 01:00
  3. Build Directory

    e.g., D:\Jenkins\workspace\KINGLER1P-BUILD-BIOS-DAIRY

  4. Python Tools:

    • Rebuild.bat
    • ProjectSelector.py
    • BuildResult.py
    • BuildRetry.py
    • CheckSetup.py
    • EnvironInjector.py

BIOS Auto Release

  1. Job View:

  2. Build Directory

    e.g., D:\Jenkins\workspace\KINGLER1P-BUILD-BIOS-RELEASE

  3. Afu Tools:

    • D:\afu_tools
    • case1 - KINGLER
    • case2 - AS60G1
    • case3 - EXEGGCUTE
  4. Python Tools:

    • Rebuild.bat
    • ProjectSelector.py
    • BuildResult.py
    • EnvironInjector.py
    • Func7zip.py
    • ArchivePackage.py

BIOS Dairy Report Mechanism

When all the project scheduled build finished, the job PROJECT-BUILD-BIOS-CHECK will start to check the file build_message below each dairy build project directory, to generate a data for groovy script: groovy-html-report.template, more detail to refer to Jenkins Send Mail Mechanism.

  1. Job View:

  2. Schedule:

    • A.M. 05:00
  3. Collect Tool:

    • CollectResults.py
  4. Collect File:

    • build_message

    e.g., D:\Jenkins\workspace\KINGLER1P-BUILD-BIOS-DAIRY\build_message

  5. Backup Cache:

    D:\Jenkins\cache

    • The path will backup the last check build_message use to while project build failed, it will to read this file to prevent data losing.
  6. Pipeline:

    D:\Jenkins_script\Jenkinsfile.server.reports

  7. Physical Path:

    D:\Jenkins\workspace\PROJECT-BUILD-BIOS-CHECK


BIOS Check Setup Item Mechanism

Auto compare the Setup.Type between backup and build directory (contains all struct), currently work project only KINGLER1P.

  1. Backup Directory:

    D:\SetupBackup

    • The path will backup the last check * currently build Setup.Type*, the backup is use to compare with next build Setup.Type.
  2. Check Tool:

    • CheckSetup.py

Project Directory Janitor

The Janitor job will scheduled clean the directory that not be in used, To keep the workspace neatly clean.

  1. Job View:

  2. Schedule:

    • A.M. 05:30
  3. Clean Tool:

    • JobsJanitor.py
  4. Workspace:

    D:\Jenkins\workspace

  5. Pipeline:

    D:\Jenkins_script\Jenkinsfile.server.janitor

  6. Physical Path:

    D:\Jenkins\workspace\PROJECT-DIR-JANITOR


Send Mail Mechanism

Settings: Editable Email Template Management

  1. Groovy Script:

    D:\Jenkins_script

  2. Result Template:

    • template_svn.jelly
    • According build result, if fail then send result mail to BIOS team, else not.
  3. Collect Result Pipline:

    • Jenkinsfile.server.reports
    • The job on jenkins use to collect each dairy build result and arrange these results to groovy variables.
    • At last send the report list to BIOS team.
  4. Report Template:

    • groovy-html-report.template
    • The template will decorate the result data from CollectResults.py then parse to job environment variables.

BIOS Team Mail Address:

About

Develop python scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages