Bamboo: releasing off non-master branches

@dkayiwa could you revert this then? I’m not sure where that happens.

I’ve already done that. That’s in the build config/repositories/branch.

1 Like

I’m looking now why it’s red, it’s the same problem as before.

https://openmrs.jfrog.io/openmrs/modules/org/openmrs/module/emrapi/1.24.5/

The pom file is already there. I’m going to delete it.

Make sure to remove that tag from github before attempting to redo it.

So file deleted. After you remove the tag from the github repo, you might be able to retry.

1 Like

Gosh.

Your release prepare worked, and the tag in github was created.

But unfortunately your tests failed on the release perform :confused:

So that’s how you ended up with the pom.

Is flaky test a known issue?

Yes… :expressionless: Big time sigh

Could you delete the stuff on Nexus again? I’ll clear the rest and start over as soon as I’m back at my computer.

Yes that test is a 50/50 thing.

I’m going to be testing a change to the script that allows you to skip tests during release, and also MAYBE it will only deploy everything at the end.

I will need like 20 minutes or so to test.

Yes good point, I was wondering also if the test suite should run given that the release stage is necessarily directly preceded by a full build.

Look, I don’t make the rules! I keep thinking that was very weird decision from the maven release plugin maintainers. Not only it runs the tests during the release:prepare, it will run again in release:perform.

Very confusing, if you ask me.

I think we should allow some hidden option (for ourselves) to skip tests during the release prepare/perform process. But as a general case, it is good to run a full build somewhere in there. Because strictly speaking some dependencies may have changed. As in, some snapshots have been replaced by their released versions.

Let me know when you are ready then. I will now undo things on GitHub.

I’ve deleted the files in jfrog; I think the release script allows you to use ‘-s’ to skip tests.

I saw you deleted the tags.

Let’s see if we are luckier this time: https://ci.openmrs.org/browse/EMRAPI-EMRAPI1-RTM-6

1 Like

Mmm, ok but how do I specify that from Bamboo?

Ah, you did it! Thanks a bunch, amazing!

Amazing, we have a green build!

Well, that’s a winner. Do you want to update https://wiki.openmrs.org/display/docs/Releasing+a+Module+from+Bamboo to show how to configure a branch build/release?

Lol.

Yes, I just don’t really see how/where exactly you managed to skip the tests for the release stage?

That’s an old incantation.

https://github.com/openmrs/openmrs-contrib-bamboo/blob/master/release-prepare-perform.sh#L77

We need to pass:

-Darguments=-DskipTests

Which is so intuitive. Exactly what you’d be trying.

And then I changed your build from:

release-scripts/release-prepare-perform.sh -r "${bamboo.maven.release.version}" -d "${bamboo.maven.development.version}"

To:

release-scripts/release-prepare-perform.sh -r "${bamboo.maven.release.version}" -d "${bamboo.maven.development.version}" -s

(note the -s at the end of the line)

1 Like

Done. Here:

Creating a ‘plan branch’ to handle builds and releases of another branch (than master)

1 Like

Thanks @mksd :slight_smile: