Skip to content

PyPi Intergration#37

Open
yeslayla wants to merge 9 commits into
masterfrom
hotfix/packageName
Open

PyPi Intergration#37
yeslayla wants to merge 9 commits into
masterfrom
hotfix/packageName

Conversation

@yeslayla

Copy link
Copy Markdown
Contributor
  • Renamed & Reconfigured Package
    The setup.py file was updated to use the package name semver-by-branch. The metadata was also updated to work with PyPi.
  • PIPELINE: Split Release Stage in Two
    The Release stage was split into the Release Packages stage and Push Docker Image stage. The Release Packages Stage pushes packages to GitHub & PyPi while the Push Docker Image stage pushes the latest tag to DockerHub.
  • DOCUMENTATION: Updates README.md
    The README.md file was updated to reflect installation using pip from PyPi.

Update to work with PyPI

Fix pipeline

Update pipeline

Update pipeline

Update pipeline
@yeslayla yeslayla requested a review from dejonghe January 20, 2020 17:49
@yeslayla yeslayla requested a review from a team as a code owner January 20, 2020 17:49
@yeslayla yeslayla self-assigned this Jan 20, 2020
Comment thread setup.py
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
name='semver-by-branch',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If we need to change the package name, that only has to be updated here.

@dejonghe dejonghe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Everything looks good but the jenkins file doesnt look like it'll work, if it builds currently it may be because of prior builds having artifacts left around

Comment thread Jenkinsfile Outdated
Comment thread Jenkinsfile
Comment thread Jenkinsfile
Comment thread Jenkinsfile Outdated
@yeslayla yeslayla requested a review from dejonghe January 21, 2020 17:36
PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library

PIPELINE: Use jenkin's docker library
Comment thread Jenkinsfile
sh "python setup.py sdist"

stash includes: "dist/semver-${env.SEMVER_NEW_VERSION}.tar.gz", name: 'PACKAGE'
script

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you dont need script here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Required for dockerImage and docker.build

Comment thread Jenkinsfile
docker push rightbrainnetworks/auto-semver:${env.VERSION}
""")
sh("docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}")
script

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you dont need script here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Required for dockerImage object

Comment thread Jenkinsfile Outdated
@yeslayla yeslayla force-pushed the hotfix/packageName branch from 0be2ad4 to c414515 Compare June 17, 2020 01:25
@yeslayla

Copy link
Copy Markdown
Contributor Author

As a note, I tried removing the some of the script{}s in the Jenkinsfile, but they were required to use methods attached to use the docker.image and dockerImage objects.

@yeslayla yeslayla requested a review from dejonghe June 17, 2020 01:27

@dejonghe dejonghe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Trying to clear my open pr's, probably will never get implemented.

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.

2 participants