From 99b6eeb4705c070723a653dc54249dc1bbcf8158 Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Thu, 30 Nov 2023 10:35:07 +0100 Subject: [PATCH] Delete no longer used jenkinsfile due to #1159 --- Jenkinsfile | 64 ----------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index e6a05bb8e..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env groovy - -node('rhel7'){ - def recipientList = 'jbosstools-builds@lists.jboss.org' - def javaHome = tool 'openjdk-11' - env.JAVA_HOME = "${javaHome}" - - try { - stage('Checkout repo') { - deleteDir() - git url: 'https://github.com/redhat-developer/intellij-quarkus', - branch: "${sha1}" - } - - def props = readProperties file: 'gradle.properties' - def isSnapshot = props['projectVersion'].contains('-SNAPSHOT') - def version = isSnapshot?props['projectVersion'].replace('-SNAPSHOT', ".${env.BUILD_NUMBER}"):props['projectVersion'] + ".${env.BUILD_NUMBER}" - - stage('Build') { - sh "./gradlew assemble -PprojectVersion=${version}" - } - - stage('Package') { - sh "./gradlew buildPlugin -PprojectVersion=${version}" - } - - if(params.UPLOAD_LOCATION) { - stage('Upload') { - def filesToPush = findFiles(glob: '**/*.zip') - sh "sftp -C ${UPLOAD_LOCATION}/snapshots/intellij-quarkus/ <<< \$'put -p \"${filesToPush[0].path}\"'" - stash name:'zip', includes:filesToPush[0].path - } - } - - if(publishToMarketPlace.equals('true')){ - timeout(time:5, unit:'DAYS') { - input message:'Approve deployment?', submitter: 'jmaury,adietish,sbouchet,azerr,fbricon' - } - - def channel = isSnapshot?"nightly":"stable" - - stage("Publish to Marketplace") { - unstash 'zip' - withCredentials([[$class: 'StringBinding', credentialsId: 'JetBrains marketplace token', variable: 'TOKEN']]) { - sh "./gradlew publishPlugin -PjetBrainsToken=${TOKEN} -PprojectVersion=${version} -PjetBrainsChannel=${channel}" - } - archive includes:"**.zip" - - if (!isSnapshot) { - stage("Promote the build to stable") { - def zip = findFiles(glob: '**/*.zip') - sh "sftp -C ${UPLOAD_LOCATION}/stable/intellij-quarkus/ <<< \$'put -p \"${zip[0].path}\"'" - currentBuild.keepLog = true - currentBuild.description = "${version}" - } - } - } - } - } catch (any) { - currentBuild.result = 'FAILURE' - step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${recipientList}", sendToIndividuals: true]) - throw any - } -}