我在我的 azure-pipelines 模板中引用存储库,如下所示:
resources:
repositories:
- repository: MyRepo
type: git
name: MyRepoName
ref: MyRepoRef
Run Code Online (Sandbox Code Playgroud)
我想知道是否可以读取引用存储库内的文件内容,该存储库内是另一个正在管道中执行的 yaml。
在我的 azure devops 管道中,我有一个任务 AzureCLI@2,它将 api 部署到 apim。如何使用 az apim api执行相同的任务来更新 api?我知道有一个操作可以做到这一点,但文档没有显示如何操作,而且我没有找到任何示例。我正在使用管道中生成的开放 api 文件来创建,并且我想用它来更新 api。
我开始研究 node js,我尝试将 ionic 应用程序与我创建的后端 nodejs 应用程序连接,但我收到此错误:
选项https://localhost:3000/insert net::ERR_SSL_PROTOCOL_ERROR
import { Component, OnInit } from '@angular/core';
import { Http } from '@angular/http';
import { map } from 'rxjs/operators';
@Component({
selector: 'app-cadastro-unidade',
templateUrl: './cadastro-unidade.page.html',
styleUrls: ['./cadastro-unidade.page.scss'],
})
export class CadastroUnidadePage implements OnInit {
constructor(private http: Http) { }
ngOnInit() {
}
InsereDados(){
let data = {
};
this.http.post('https://localhost:3000/insert', data).pipe(
map(res => res.json())
).subscribe(response => {
console.log('POST Response:', response);
});
}
}
app.get('/insert', function(req, res, next) {
var uri = "xxxx" …Run Code Online (Sandbox Code Playgroud)