Rate This Document
Findability
Accuracy
Completeness
Readability

GitLab Pipeline Sample Code

The sample code is as follows:

stages:
  - build
  - migrating-applications  
software-migration-assessment:
  stage: migrating-applications
  tags:
    - kunpeng_scanner # This is the tag used during gitlab-runner registration. Multiple tags may be selected.
  script:
    - echo '====== Software porting assessment ======'
    # Example: devkit porting pkg-mig -i impala-2.9.0+cdh5.12.1+0-1.cdh5.12.1.p0.3.el7.x86_64.rpm -r html || [ $? -eq 1 ] && echo 'Warning: The scan report contains suggestion items.
    - devkit porting pkg-mig -i path to the software package to be scanned -r html || [ $? -eq 1 ] && echo 'Warning: The scan report contains suggestion items.
    - mv ./pkg-mig*.html ./SoftwareMigrationAssessment.html
  artifacts:
    paths:
      - SoftwareMigrationAssessment.html     
    name: pkg-mig
  • impala-2.9.0+cdh5.12.1+0-1.cdh5.12.1.p0.3.el7.x86_64.rpm indicates the path to the software package to be scanned. Replace it with the actual path.
  • You are advised to assess software porting after the build process.
  • For details about the software porting assessment report, see Viewing Analysis Results.