Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexus release doesn't always work #4

Open
TacB0sS opened this issue Apr 26, 2018 · 0 comments
Open

Nexus release doesn't always work #4

TacB0sS opened this issue Apr 26, 2018 · 0 comments

Comments

@TacB0sS
Copy link

TacB0sS commented Apr 26, 2018

Main build gradle:

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.1'
        classpath 'com.adaptc.gradle:nexus-workflow:0.6'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
ext."oss-releases.username" = System.getenv('OSSRH_USER_NAME')
ext."oss-releases.password" = System.getenv('OSSRH_PASSWORD')
ext."oss-releases.url" = "https://oss.sonatype.org/index.html#stagingRepositories"

apply plugin: 'nexus-workflow'

Running from command line (Jenkins):

sleep 60s
bash gradlew nexusStagingRelease 
        
sleep 60s
bash gradlew nexusStagingRelease 

output of first execution:

13:28:43 :nexusStagingRelease
13:28:43 Determining all open repositories
13:28:45 Closing 1 open repositories
13:28:49 1 repositories closed
13:28:49 Waiting 30 seconds until the closing is done
13:29:24 No closed repositories to promote (release)

output of second execution:

13:30:27 :nexusStagingRelease
13:30:27 Determining all open repositories
13:30:30 No open repositories to close
13:30:36 Promoting (releasing) 1 closed repositories
13:30:41 1 repositories promoted
13:30:41 Waiting 30 seconds until the promotion is done
13:31:11 Dropping 1 released repositories
13:31:22 1 repositories dropped

I would guess that the repo is dropped before it is released...

can you assist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant