From d78197c2199a10a1d89288e45c7bccde6337b201 Mon Sep 17 00:00:00 2001 From: Tomer Figenblat Date: Wed, 17 May 2023 20:29:30 +0300 Subject: [PATCH] ci: added tfigenbl as a jenkins deployment approver Signed-off-by: Tomer Figenblat --- Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d69848e..348cd9d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,26 +4,26 @@ 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-dependency-analytics', 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') @@ -31,21 +31,21 @@ node('rhel7'){ stash name:'zip', includes:filesToPush[0].path } } - + if(publishToMarketPlace.equals('true')){ timeout(time:5, unit:'DAYS') { - input message:'Approve deployment?', submitter: 'jmaury' + input message:'Approve deployment?', submitter: 'jmaury, tfigenbl' } - + 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')