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