Compare commits

..

No commits in common. "6ad573dc9d4a5b7fcd685d437694c43de0faa8e3" and "1d38b19adb1650cbeb08a2c2ebd53223ce9396f2" have entirely different histories.

4 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,7 @@ ARG PIP_INDEX
ENV PIP_INDEX_URL $PIP_INDEX_URL
ENV PIP_INDEX $PIP_INDEX
ENV PIP_TARGET /pip
ENV PIP_DEFAULT_TARGET /pip
ENV PYTHONPATH /pip
RUN mkdir /app

6
Jenkinsfile vendored
View File

@ -16,8 +16,7 @@ pipeline {
path: "ci/general",
engineVersion: 1,
secretValues: [
[envVar: 'PIP_USER', vaultKey: 'SONATYPE_READONLY_USER'],
[envVar: 'PIP_PASSWORD', vaultKey: 'SONATYPE_READONLY_USER_PASSCODE']
[envVar: 'NEXUS_TOKEN', vaultKey: 'SONATYPE_DEPLOYMENT_USER_TOKEN']
]
]
]]) {
@ -33,8 +32,7 @@ pipeline {
--insecure=true \
--insecure-registry=docker-registry.default:5000 \
--cache=true \
--build-arg PIP_INDEX_URL=https://${PIP_USER}:${PIP_PASSWORD}@artifact.it.getyardstick.com/repository/meazurelearning-pypi/simple \
--build-arg PIP_INDEX=https://${PIP_USER}:${PIP_PASSWORD}@artifact.it.getyardstick.com/repository/meazurelearning-pypi/pypi \
--build-arg NEXUS_TOKEN=${NEXUS_TOKEN} \
--cache-repo=docker-registry.default:5000/${REPOSITORY} \
--destination ${env.REPOSITORY}:\$(echo ${BRANCH_NAME} | grep -Eo 'feature/([A-Za-z]+-[0-9]*)' | grep -Eo '[A-Za-z]+-[0-9]*' || \
echo ${BRANCH_NAME} | grep -Eo '(release|hotfix)/[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+' | grep -Eo '[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+' || \

View File

@ -3,7 +3,7 @@ from typing import TYPE_CHECKING
from pydantic import BaseModel
from typing import Any, List
from pulp import LpProblem, LpVariable, LpStatus, lpSum, COIN
from pulp import LpProblem, LpVariable, LpStatus, lpSum
import logging
@ -46,7 +46,7 @@ class Problem(BaseModel):
# creating problem multi-objective functions
objective_functions = solver_run.objective_function.for_problem(self, solver_run)
self.problem.sequentialSolve(objective_functions, None, None, COIN(gapRel=0.2, timeLimit=300))
self.problem.sequentialSolve(objective_functions)
return self.problem

4
pip.conf Normal file
View File

@ -0,0 +1,4 @@
[global]
index = https://gDFaNrUq:GD7Y8tLmE6wYMZAE_JC-SWcImC7TLHB2ut_WLL4w8hBC@artifact.it.getyardstick.com/repository/meazurelearning-pypi/pypi
index-url = https://gDFaNrUq:GD7Y8tLmE6wYMZAE_JC-SWcImC7TLHB2ut_WLL4w8hBC@artifact.it.getyardstick.com/repository/meazurelearning-pypi/simple
target = /pip