Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !288

Ignore signing for other branches than master

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge fix_deploy into master Jun 12, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: jmini

After changes #287 and merge master -> 3.1.x I got this error:

[INFO] --- maven-gpg-plugin:1.6:sign (sign-artifacts) @ openapi-generator-project ---
gpg: keyblock resource `/home/travis/build/OpenAPITools/openapi-generator/sec.gpg': file open error
gpg: skipped "[secure]": secret key not available
gpg: signing failed: secret key not available

Source: https://api.travis-ci.org/v3/job/391192011/log.txt


Input from @jimschubert on Gitter:

Travis doesn't allow unencrypting on non-master branches you'll need to modify that script to publish without signing, only conditionally. snapshots don't need to be signed.


This PR does the described modification.

I have tried the command from my local computer:

  • mvn clean deploy -DskipTests=true -B -U --settings CI/settings.xml
  • ./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" uploadArchives --no-daemon
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_deploy