From 26c7aa3c795a341c3b1afeab4925c4203bb2eef3 Mon Sep 17 00:00:00 2001 From: liangjiajie <466087152@qq.com> Date: Wed, 22 May 2024 17:00:06 +0800 Subject: [PATCH] Jenkinsfile --- Jenkinsfile | 4 ++-- deploy.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100755 deploy.sh diff --git a/Jenkinsfile b/Jenkinsfile index 5276eec..c8258ef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,9 +12,9 @@ pipeline { checkout scmGit(branches: [[name: '${tag}']], extensions: [], userRemoteConfigs: [[url: 'https://git.mashibing.com/msb_134187/ljj_spring_test.git']]) } } - stage('Execute Shell Command') { + stage('maven') { steps { - sh 'echo 123 > tt.txt' + sh './deploy.sh' } } stage('sonar质量检测') { // 阶段3:使用Sonar进行代码质量检测 diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..8a93131 --- /dev/null +++ b/deploy.sh @@ -0,0 +1 @@ +echo 123 \ No newline at end of file