ng build挂在VSTS中

时间:2018-09-25 12:22:03

标签: angular azure-devops angular-cli azure-pipelines-build-task angular-cli-v6

我正在VSTS中使用以下构建命令在VSTS中构建我的angular 6项目

ng build --prod --base-href /myproject/ --no-progress --build-optimizer=false

建筑物的挂起率为90%,但尚未完成。 相同的命令在本地计算机上工作正常。

非常感谢。

1 个答案:

答案 0 :(得分:2)

我尝试了以下命令,它的工作正常。 看起来仅是内存分配问题

@Override
  public T deserialize(String inTopic, byte[] data) {
    try {
      T result = null; // Intialize result to null
  if (data != null) {

    DatumReader<GenericRecord> datumReader =
        new SpecificDatumReader<>(targetType.newInstance().getSchema());
    Decoder decoder = DecoderFactory.get().binaryDecoder(data, null);

    result = (T) datumReader.read(null, decoder);
    LOGGER.debug("deserialized data='{}'", result);
  }
  return result;
} catch (Exception ex) {
  throw new SerializationException("can not deserialize"+data+"exception"+ex);
}