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

Add continuous delivery action template #48

Merged
merged 3 commits into from
Mar 31, 2021

Conversation

timja
Copy link
Member

@timja timja commented Mar 26, 2021

@jglick
@garethjevans
@jenkinsci/github-admins

image

I plan to update incremental-tools to point to this action instead, of inlining it to the README.md

This will be features at the top on the new Actions page in every repo in this organisation with a pom.xml at the root.

The action itself was tested in https://github.com/jenkinsci/jenkins-infra-test-plugin/

anyone is welcome to add themselves for commit access to play around.

@daniel-beck
Copy link
Member

Is this something that makes sense hosted in jenkins-infra? Seems weird that it says "By timja-org".

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT it will be Jenkins by default within this org

@timja
Copy link
Member Author

timja commented Mar 26, 2021

Is this something that makes sense hosted in jenkins-infra? Seems weird that it says "By timja-org".

Correct I tested it in my org, it's just your organisation name

It can't be in jenkins-infra as it's a template for this org

@@ -0,0 +1,58 @@
# Note: additional setup is required, see https://github.com/jenkinsci/incrementals-tools#automatic-deployment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the part I have reservations about: using the template might mislead you into thinking you do not need to do anything else, when you need to

  • patch RPU
  • edit your pom.xml and maven.config
  • understand what you are getting into

I wonder if we can add some lightweight action that does a sanity check on config? If your secret is not configured, or if the repo metadata files (perhaps as retrieved by gh REST to avoid a slower full clone) do not meet the requirements, fail quickly with a helpful message.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably could be added later, the point of the comment was to point people towards the extra setup.

I would expect this to be added to the archetypes at some point and maybe to @halkeye 's plugins self service app for a one click enable:

https://plugins-self-service-3ir4b.ondigitalocean.app/

validate:
runs-on: ubuntu-latest
outputs:
should_release: ${{ steps.verify-ci-status.outputs.result == 'success' && steps.interesting-categories.outputs.interesting == 'true' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of nonsense is why we created Pipeline. 😁

with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need trailing newline

workflow-templates/cd.properties.json Outdated Show resolved Hide resolved
@jglick
Copy link
Member

jglick commented Mar 26, 2021

The action itself was tested in https://github.com/jenkinsci/jenkins-infra-test-plugin/

Maybe we can block this from the UC? In that case we would just verify that releases are making it into Artifactory and trust that the rest works normally.

@jglick
Copy link
Member

jglick commented Mar 26, 2021

Oh and BTW please https://github.com/jenkinsci/jep/edit/master/jep/229/README.adoc with any changes you make.

@timja
Copy link
Member Author

timja commented Mar 26, 2021

The action itself was tested in https://github.com/jenkinsci/jenkins-infra-test-plugin/

Maybe we can block this from the UC? In that case we would just verify that releases are making it into Artifactory and trust that the rest works normally.

That plugin is for testing the infra end 2 end. Not just CD. It needs to end up in the UC

@timja timja requested a review from jglick March 26, 2021 14:51
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us try it!

@timja
Copy link
Member Author

timja commented Mar 26, 2021

Oh and BTW please jenkinsci/jep/edit/master/jep/229/README.adoc with any changes you make.

Can you see anything that needs changing? I can't see anything there that needs it, this is all implementation detail as far as I can see. (for others this is just changing it from failing builds that don't meet the condition to skipping them, so that actions aren't full of failed builds) relates to jenkins-infra/jenkins-maven-cd-action#5

@jglick
Copy link
Member

jglick commented Mar 26, 2021

anything that needs changing

Did not check specifics, but there are various links to examples of a flow which should likely be updated to reflect the newer logic.

@timja
Copy link
Member Author

timja commented Mar 26, 2021

jenkinsci/jep#350 needs this to shipped first, can someone 🚢

@jglick
Copy link
Member

jglick commented Mar 26, 2021

Not me. @jenkinsci/jep-editors?

@timja
Copy link
Member Author

timja commented Mar 26, 2021

@jenkinsci/github-admins merge here

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

Successfully merging this pull request may close these issues.

5 participants