Jenkinsfile: remove duplicate function
@@ -616,33 +616,6 @@ ${WORKSPACE}/build/doc/man ./"""
}]
}
-/**
- * Build and publish jna bindings to maven repository
- *
- * Publishes maven artifacts to staging repository, closes and releases it.
- */
-def buildAndPublishMaven() {
- def stageName = 'publishMavenArtifacts'
- return [(stageName): {
- stage(stageName) {
- withDockerEnv(DOCKER_IMAGES.focal) {
- withCredentials([file(credentialsId: 'maven-signing-key', variable: 'KEY'),
- string(credentialsId: 'maven-signing-passphrase', variable: 'PASS'),
- usernamePassword(credentialsId: 'sonatype-credentials', passwordVariable: 'SONATYPE_PASSWORD', usernameVariable: 'SONATYPE_USERNAME')]) {
- checkout scm
- dir('src/bindings/jna') {
- sh """\
-gradle -Pversion=${RELEASE_VERSION} \
--PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} \
--Psigning.secretKeyRingFile=${KEY} -Psigning.keyId=07235980 -Psigning.password=\"${PASS}\" \
-publishToSonatype closeAndReleaseSonatypeStagingRepository"""
- }
- }
- }
- }
- }]
-}
-
/**
* Build and publish jna bindings to maven repository
*
