Generate materials sections only if it exists
Added support for params and environment variables
Added support for environment and agent resources
Added support to  define pipeline resources and artifacts