diff --git a/Jenkinsfile b/Jenkinsfile index 37b8ab8..65ea60f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,4 @@ pipeline { - agent { - docker { - image 'python:3' - args '-u root' - } - } environment { GITEA_CREDS = credentials('AMARILLO-JENKINS-GITEA-USER') TWINE_REPO_URL = "https://git.gerhardt.io/api/packages/amarillo/pypi" @@ -14,46 +8,6 @@ pipeline { TAG = 'latest' } stages { - stage('Create virtual environment') { - steps { - echo 'Creating virtual environment' - sh '''python -m venv .venv - . .venv/bin/activate''' - - } - } - stage('Installing requirements') { - steps { - echo 'Installing packages' - sh 'python -m pip install -r requirements.txt' - sh 'python -m pip install --upgrade build' - sh 'python -m pip install --upgrade twine' - } - } - stage('Test') { - steps { - echo 'Testing' - } - } - stage('Build package') { - steps { - echo 'Building package' - sh 'python -m build' - } - } - stage('Publish package') { - steps { - sh 'python -m twine upload --skip-existing --verbose --repository-url $TWINE_REPO_URL --username $GITEA_CREDS_USR --password $GITEA_CREDS_PSW ./dist/*' - } - } - stage('Install docker') { - steps { - echo 'Installing docker' - sh 'curl -fsSl https://get.docker.com | sh' - echo 'Starting docker daemon' - sh 'systemctl start docker' - } - } stage('Build docker image') { steps { echo 'Building image'