dongzilu0178 2019-01-31 01:43
浏览 337

Composer找不到配置文件 - 在Windows上使用Jenkins

I have an Ant build script that is trying to execute Composer install but I get this error when executed through Jenkins:

     [exec] Composer could not find the config file: C:\ProgramData\ComposerSetup\bin
     [exec] To initialize a project, please create a composer.json file as described in the "Getting Started" section
     [exec] Result: 1
     [echo] composer update complete

Here is the target from Ant:

<target name="self-update"
        description="Self-update Composer">
    <echo message="Self-updating composer" level="debug"/>
    <exec executable="${composer.phar}">
        <arg value="self-update" />
        <arg value="--quiet" />
        <arg value="--no-interaction" />
    <echo message="composer self-update complete" level="debug"/>

However, this works fine when running the Ant build locally.

Some people say to delete the environment variables that the composer installer sets; however it does not seem to change anything.

  • 写回答

1条回答 默认 最新


      相关推荐 更多相似问题


      • ¥15 网页设计与开发html
      • ¥15 bin格式的程序文件烧录GD32F105芯片。起始地址填多少?
      • ¥15 python对txt文件的处理
      • ¥25 需要一个能在H5中实现扫码的插件
      • ¥50 ArcGIS或MATLAB实现批量计算整个tif图像的EVI
      • ¥20 两个板子之间CAN通信ID号怎么设置
      • ¥15 两个板子CAN通信的话ID号怎么设置
      • ¥15 vue使用element-ui的el-upload上传图片至服务器,服务端使用的是node.js,图片上传成功,但界面显示不出来,是跨域问题?
      • ¥15 ANSYS APDL循环结果输出
      • ¥15 ArcGIS处理MODIS 09数据,计算EVI 像元值大小问题