我要评分
获取效率
正确性
完整性
易理解

Jenkins Pipeline Sample Code

The sample code is as follows:

stage('generate-bc-file') {
    steps {
        echo '====== Generate BC files ======'
        sh '''
            mkdir -p /home/test/bc_files
            cd /home/test
            devkit advisor bc-gen -c make -o /home/test/bc_files
        '''
    }    
}
  • You are advised to generate the BC files before the build process.
  • /home/test/bc_files indicates the path for storing the generated BC files. Replace it with the actual path.
  • /home/test indicates the path to the source code based on which the BC files are generated. Replace it with the actual path.