我正在研究 Powerapps 与 Azure DevOps 的集成。
然而,关于它的信息有限。
是否可以将 powerapps 集成到 AzureDevops 的任务中?
基于我们有一个包含 Powerapp 的 .zip 文件,我们想要为多个环境创建构建和发布/部署。
谢谢你。
continuous-integration continuous-deployment azure-devops powerapps
我正在尝试设置一个代码构建,其中我有一个模块可以为其他构建创建依赖项。这些其他构建将使用第一个构建生成的工件,并且这些构建应该并行运行。我正在查看 CodeBuild 的文档,似乎那里没有信息。我的 buildspec.yml 示例
version: 0.2
#env:
#variables:
# key: "value"
# key: "value"
#parameter-store:
# key: "value"
# key: "value"
#git-credential-helper: yes
phases:
#install:
#If you use the Ubuntu standard image 2.0 or later, you must specify runtime-versions.
#If you specify runtime-versions and use an image other than Ubuntu standard image 2.0, the build fails.
#runtime-versions:
# name: version
# name: version
#commands:
# - command
# - command
# pre_build:
# commands:
# - mkdir artifacts
# …Run Code Online (Sandbox Code Playgroud) continuous-integration amazon-web-services continuous-deployment aws-codepipeline aws-codebuild
我想从我的构建工件中排除 web.config 文件,我可以在 CI 管道中的 .net core 构建模板中排除或在 Web 应用程序部署任务中排除,如下图所示,在此处 输入图像描述
我正在使用在 Github 上私有托管并具有 ssh 访问权限的插件。在 Github 操作中运行时,flutter pub get此命令会失败。我按照使用部署密钥的教程进行操作,并尝试了以下操作:
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Setup SSH Keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
- name: Some task that fetches dependencies
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: flutter pub get
Run Code Online (Sandbox Code Playgroud)
还尝试过:
- uses: webfactory/ssh-agent@v0.4.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Fetch flutter dependencies
run: flutter pub …Run Code Online (Sandbox Code Playgroud) continuous-integration github continuous-deployment flutter github-actions
我创建了一个简单的反应来练习 gitlab 的 CI/CD 管道。我有三份CD/CI管道工作。首先测试应用程序,然后构建然后部署到 AWS 的 S3 存储桶。成功通过测试并运行构建生产后,当它进入部署阶段时,我收到此错误:The user-provided path build does not exist.我不知道如何制作路径Gitlab's cd/ci pipeline.
这是我的 gitlab.gitlab-ci.yml文件设置
image: 'node:12'
stages:
- test
- build
- deploy
test:
stage: test
script:
- yarn install
- yarn run test
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_REGION: $AWS_REGION
S3_BUCKET_NAME: $S3_BUCKET_NAME
build:
stage: build
only:
- master
script:
- npm install
- npm run build
deploy:
stage: deploy
only:
- master
image: python:latest
script:
- pip …Run Code Online (Sandbox Code Playgroud) 我正在使用 GitLab 设置 CI CD 管道。文件.gitlab-ci.yml部署部分如下所示。
Deploy to DEV:
variables:
GCP_PROJECT_ID: <>
GOOGLE_IMAGE_NAME: <>
CLUSTER_NAME: <>
ZONE: <>
image: gcr.io/cloud-builders/kubectl
stage: deploy
before_script:
- curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- mv kustomize /usr/local/bin/
script:
- gcloud auth activate-service-account --key-file ${GOOGLE_APPLICATION_CREDENTIALS}
- gcloud container clusters get-credentials $CLUSTER_NAME --zone $ZONE --project $GCP_PROJECT_ID
- cd .k8s/overlays/dev
- kustomize edit set image <IMAGE_NAME>=gcr.io/$GCP_PROJECT_ID/$GOOGLE_IMAGE_NAME:$VERSION-$CI_COMMIT_SHORT_SHA
- kustomize build .
- kustomize build . | kubectl apply -f -
only:
refs:
- merge_request
- master …Run Code Online (Sandbox Code Playgroud) 我知道从发布管道触发构建管道是非常规的,但就我而言,这是我的需要。在 Azure DevOps 中,我有一个触发发布管道的构建管道,然后在发布中完成所有阶段后,我想触发另一个构建管道。该构建管道将负责更新我的 git 存储库中的 json 文件。为了能够访问 git 存储库并进行更改/提交,我需要使用构建管道。我有一个解决方法,可以在发布管道中克隆 git 存储库并进行更新,但这“感觉不对”。我希望找到更好的解决方案。
注意:在 git commit 消息中我将有[skip ci],所以不会有触发器或管道的无限循环......
git continuous-integration azure continuous-deployment devops
我正在尝试对 gerrit 事件执行一些操作
这个想法是当任何存储库中发生上述任何情况时,在 API 端点上获取事件。
我在 Amazon Linux ec2 实例上运行 gerrit 3.1.3 安装,并在另一台类似的 EC2 机器上运行节点服务器(具有开放 API 端点)。在 gerrit 配置中,我添加了以下几行:
[plugin "webhooks"]
connectionTimeout = 3000
socketTimeout = 2500
maxTries = 300
retryInterval = 2000
threadPoolSize = 3
[remote "wh_projectCreated"]
url = http://17.233.138.23:8080/gereve
maxTries = 1
sslVerify = false
event = patchset-created
Run Code Online (Sandbox Code Playgroud)
我已经检查过webhooks,hooks插件都安装在gerrit安装中。现在,我找不到合适的博客文章来说明如何配置和获取在 webhooks 上接收 gerrit 事件。
我还需要做什么,非常有帮助!
从我们的 Tekton 管道中,我们希望使用 ArgoCD CLI 来动态argocd app create地argocd app sync基于所构建的应用程序。我们通过向ConfigMap添加 a 来创建一个新用户,如文档中所述:accounts.tekton: apiKeyargocd-cm
kubectl patch configmap argocd-cm -n argocd -p '{"data": {"accounts.tekton": "apiKey"}}'
Run Code Online (Sandbox Code Playgroud)
然后我们为tekton用户创建了一个令牌:
argocd account generate-token --account tekton
Run Code Online (Sandbox Code Playgroud)
将此令牌作为 the password,username tekton我们做了argocd login类似的事情
argocd login $(kubectl get service argocd-server -n argocd --output=jsonpath='{.status.loadBalancer.ingress[0].hostname}') --username=tekton --password="$TOKEN";
Run Code Online (Sandbox Code Playgroud)
现在,在我们的 Tekton 管道中(但我们猜测,考虑到非管理员用户的使用,这对于所有其他 CI 来说都是相同的),如果我们运行,我们会收到以下错误argocd app create:
$ argocd app create microservice-api-spring-boot --repo https://gitlab.com/jonashackt/microservice-api-spring-boot-config.git --path deployment --dest-server https://kubernetes.default.svc …Run Code Online (Sandbox Code Playgroud) 我正在尝试从 Jenkins Job 运行 cap 部署命令。它不断抛出以下错误。我也在部署服务器中添加了 ssh 密钥。我能够从配置 Jenkins 的服务器成功部署。但是当我运行该作业时,会引发身份验证错误。这对我来说真的很重要。有人可以帮忙吗?
Started by user admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/TBuildJob
[TBuildJob] $ /bin/bash -l /tmp/jenkins16881638870572548750.sh
Deploying Job has started
Script executed from: /var/lib/jenkins/workspace/TBuildJob
jenkins
jenkins
** Invoke dev1 (first_time)
** Execute dev1
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rvm:hook (first_time)
** Execute rvm:hook
** Invoke rvm:check (first_time)
** Execute rvm:check
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as root@<server>: Authentication failed for user root@<server>
/usr/local/rvm/gems/ruby-2.3.1/gems/sshkit-1.15.1/lib/sshkit/runners/parallel.rb:15:in `rescue in …Run Code Online (Sandbox Code Playgroud)