Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ee4j-build] First working release job



On 4 October 2018 at 22:32, Bill Shannon <bill.shannon@xxxxxxxxxx> wrote:
Tomas Kraus wrote on 10/04/2018 07:09 AM:
> Hi All,
> I've got 1st release job working on new Jenkins:
> https://jenkins.eclipse.org/jaxb-impl/job/jaxb-fi-release/
>
> release script from this job is attached.

There's so much magic in that script, I'm not sure what to do to adapt it
for my job.

For example, what do I do about this:

# Setup jaxb-impl-bot account information
git config --global user.email "jaxb-impl-bot@xxxxxxxxxxx"
git config --global user.name "Eclipse JAXBimpl Bot"

Does every project have an automatically created "bot" user?

And then for this:

echo '-[ Deploy artifacts to staging repository
]-------------------------------------'
mvn -U -C -s /home/jenkins/.m2/settings-jaxb-impl.xml \
    -DskipTests -Ddoclint=none -Prelease \
    clean package source:jar javadoc:jar gpg:sign install:install ${MVN_DEPLOY_ARGS}

You're using a "release" profile, but the parent pom has an "oss-release"
profile.  Does that mean you had to duplicate all that configuration in
your pom?  If you had renamed your profile to "oss-release" would it have
been simpler?  Can Maven be told to use two profiles and "merge" them?

What's the difference between "install:install" and "install"?
Ditto "deploy:deploy"?

Aren't some of those Maven steps implied by install or deploy?

If this just deploys to a staging repository, how does it get pushed out
to the real repository?

Good question and one I intended to ask too. I assume we are using something like Nexus someplace but it wasn't clear to me how to log on to it to close/promote the artifact?

More specifically, if I would like to do something like the following, what would the serverId and nexusUrl be:

<plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <version>1.6.8</version>
          <extensions>true</extensions>
          <configuration>
            <serverId>--------------
            <nexusUrl>--------------
            <autoReleaseAfterClose>true</autoReleaseAfterClose>
          </configuration>
</plugin>




If the artifact I deploy is a SNAPSHOT release, do I need to change anything
in the above mvn command?
_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ee4j-build


Back to the top