From 7f8fa2f96af929f6602887901a7c159a13155089 Mon Sep 17 00:00:00 2001 From: Bob Du Date: Sat, 3 Feb 2024 20:17:19 +0800 Subject: [PATCH] chore: add Jenkinsfile (#244) Signed-off-by: BobDu --- Jenkinsfile | 10 ++++++++++ Jenkinsfile.bak | 14 -------------- 2 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 Jenkinsfile delete mode 100644 Jenkinsfile.bak diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..644ebc8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +/* + See the documentation for more options: + https://github.com/jenkins-infra/pipeline-library/ +*/ +buildPlugin( + useContainerAgent: true, + configurations: [ + [platform: 'linux', jdk: 21], + [platform: 'windows', jdk: 17], +]) diff --git a/Jenkinsfile.bak b/Jenkinsfile.bak deleted file mode 100644 index 3415dd2..0000000 --- a/Jenkinsfile.bak +++ /dev/null @@ -1,14 +0,0 @@ -def mvnCmd = "mvn install:install-file -DgroupId=com.dingtalk.open -DartifactId=taobao-sdk-java-auto -Dversion=1.0 -Dpackaging=jar -Dfile=./maven/taobao-sdk-java-auto/taobao-sdk-java-auto_1479188381469-20191227.jar" - -node('maven'){ - disableConcurrentBuilds() - checkout scm - - stage('Install'){ - sh mvnCmd - } - - stage('Build'){ - buildPlugin() - } -} \ No newline at end of file