How to organize full build pipeline with Gulp, Maven and Jenkins, all the way to integration tests?

前端 未结 4 530
悲哀的现实
悲哀的现实 2020-12-12 21:23

I have a project that has:

  • JS client with somewhat interesting build process. That includes compiling CSS, catenating and minifying JS and CSS, generating and
4条回答
  •  一向
    一向 (楼主)
    2020-12-12 21:32

    In my experience, the frontend maven plugin is far and away the best plugin for this type of build/deploy process. https://github.com/eirslett/frontend-maven-plugin . This is how i use it for Grunt but it supports Gulp just as well.

    
        com.github.eirslett
        frontend-maven-plugin
        ...
    
        
        
            src/main/frontend
        
    
       
        grunt build
        
            grunt
        
    
        
        generate-resources
    
        
            
            build
        
    
    
    

    One thing to be aware of it is will download node for the system it is being run on, so if you have a different OS on your build server, you'll need to make sure that is the version you have checked into version control, your local version (for me OSX) will have to be maintained local to your project.

提交回复
热议问题