加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.rancher-pipeline.yml 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
暖暖的阳光 提交于 2021-04-16 18:06 . Update .rancher-pipeline.yml file
stages:
- name: build
steps:
- runScriptConfig:
image: java:8
shellScript: |
echo "pipeline id : ${CICD_PIPELINE_ID}"
echo "BUILD_NUMBER: $BUILD_NUMBER"
echo "git tag : ${CICD_GIT_TAG}"
echo "git branch : ${CICD_GIT_BRANCH}"
echo "BRANCH_NAME : $BRANCH_NAME"
echo "CICD_EXECUTION_SEQUENCE: ${CICD_EXECUTION_SEQUENCE}"
echo "repo name : ${CICD_GIT_REPO_NAME}"
echo "git ref : ${CICD_GIT_REF}"
echo "CICD_TRIGGER_TYPE : ${CICD_TRIGGER_TYPE}"
echo "CICD_EVENT ${CICD_EVENT}"
echo "CICD_PROJECT_ID ${CICD_PROJECT_ID}"
echo "CICD_LOCAL_REGISTRY ${CICD_LOCAL_REGISTRY}"
echo "CICD_EXECUTION_ID ${CICD_EXECUTION_ID}"
echo "CICD_CLUSTER_ID ${CICD_CLUSTER_ID}}"
echo "\n\n\n"
ls -alh
chmod 777 -Rf *
pwd
chmod +x aicode/gradlew
./aicode/gradlew clean :build -x test
- publishImageConfig:
dockerfilePath: ./aicode/Dockerfile
buildContext: .
tag: aicode/test
pushRemote: true
registry: index.docker.io
- name: deploy
steps:
- applyYamlConfig:
path: ./aicode/k8s/aicode.yml
timeout: 60
notification: {}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化