从 GitHub 仓库中将devops-java-samplefork 到您⾃⼰的 GitHub 帐户。 https:///kubesphere/devops-java-sample.git 如果上述官网链接比较慢的话可以fork我的Gitee地址 https://gitee.com/lybbbb/devops-java-sample 然后修改这个文件: 备注 Jenkinsfile 中 mvn 命令的参数 -o,表示开启离线模式。本教程中已经...
.├── pom.xml ├── readme.md └── src └── main ├── java │ └── com │ └── example │ └── demo │ ├── Greeting.java │ └── GreetingResource.java └── resources ├── META-INF │ ├── beans.xml │ └── microprofile-config.properties ├── WE...
SpringBoot demo for DevOps on KubeSphere. Contribute to kubesphere/devops-java-sample development by creating an account on GitHub.
Listing remote references...> git config --get remote.origin.url # timeout=10> git --version # timeout=10> git --version #'git version 2.11.0'using GIT_ASKPASS to set credentials> gitls-remote -h -- https://gitee.com/Qiao-Zhi/devops-maven-sample.git # timeout=10Fetching upstream...
<name>devops-sample :: HelloWorld Demo</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <!-- Sonar --> <!-- The destination file for the code coverage report has to be set...
{sh'git config --global user.email "kubesphere@yunify.com" 'sh'git config --global user.name "kubesphere" 'sh'git tag -a $TAG_NAME -m "$TAG_NAME" 'sh'git push http://$GIT_USERNAME:$GIT_PASSWORD@github.com/$GITHUB_ACCOUNT/devops-java-sample.git --tags --ipv4'}sh'docker tag ...
开发人员把做好的 devops-java-sample 项目代码通过 git 推送到 gitee,然后 Jenkins 通过 gitee webhook下来,(前提是配置好),自动从拉取 gitee 上面拉取代码然后进行 build,编译、生成镜像、然后把镜像推送到 Harbor 仓库;然后在部署的时候通过 k8s 拉取 Harbor 上面的代码进行创建容器和服务,最终发布完成,然后可以...
APP_NAME = 'devops-java-sample' SONAR_CREDENTIAL_ID = 'sonar-token' TAG_NAME = "SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER" } stages { stage('checkout') { steps { container('maven') { git branch: 'master', url: 'https://github.com/kubesphere/devops-java-sample.git' ...
#devops-java-sample A Java sample for devops on kubesphere ##基于springboot构建流水线示例项目 Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Source Control Management) 的一部分,根据该文件内的流水线配置信息快速构建工程内的 CI/CD 功能模块,比如阶段 (Stage),步骤 (Step) 和任务...
# Sample Output Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: spring-boot-actuator-example/pom.xml modified: spring-boot-actuator-example/src/main/java/com/howto...