Skip to content

Latest commit

 

History

History
83 lines (57 loc) · 2.13 KB

trigger-with-git.md

File metadata and controls

83 lines (57 loc) · 2.13 KB

Trigger-with-Git

Clone-the-repo

If you want to try the CI-Pipeline, first you have to clone the repo and create your own branch. (For this you need the git cmdline tool https://git-scm.com/downloads)

  1. Install git cmd tool.

    Set the proxy if needed. For example if you are behind a corporate proxy.

git config --global http.proxy [http://proxyUsername:proxyPassword@proxy.server.com:port]
  1. Create a personal access token.
Click on your user-icon on the top right. ->
Select "Settings". ->
Select "Developer settings" on the Bottom left side. ->
Select "Personal access tokens -> Tokens" on the left side. ->
Follow the instructions on the side to create a token and save it in a save space (e.g. KeePass)
  1. Clone the repo.

    If you are asked for a username and password, the password is your personal access token.

git clone https://github.com/vectorgrp/ci-siltest-demo.git
  1. Change into the folder.
cd .\ci-siltest-demo\
  1. Create your own branch.
git branch [BRANCH_NAME]
git checkout [BRANCH_NAME]

Push-and-trigger

  1. Make changes and commit the changes

    E.g.: Uncomment line 59 (“//rtb_LightIntensity_LightIntensi = 0;”) in the source code "/ECU/Appl/Simulink/LightCtrl_Model_autosar_rtw/LightCtrl_SWC.c" to cause test fails.
    Info: Some tests will set the light intensity value and expect a changed head light result. Because the light intensity is now statically set to value zero, some tests will fail.

git add [PATH_TO_CHANGED_FILES]
git commit 
git push --set-upstream origin [BRANCH_NAME]
  1. After the first push, you can use:
git add [PATH_TO_CHANGED_FILES]
git commit 
git push
  1. Follow the instructions in the next section, to observe the pipeline.

View-the-pipeline

To see the pipeline working and the CANoe4SW_SE Test-Report:

 Click "Actions" on the top. -> 
 Choose the most recent workflow run. ->
 Click on the last job "CANoe4SW_SE Tests" listed on the left side bar. ->
 View the test results.

For an image based guide, click here