Skip to content

Commit b794245

Browse files
aline version
1 parent 2c38831 commit b794245

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

Jenkinsfile

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,20 @@ pipeline {
4646
env.versionTag = version
4747
echo "Using version from version-beta.conf: ${env.versionTag}"
4848
}
49-
// sh """
50-
// sed -i -r "s/superclient/superclient-beta/g" pyproject.toml
51-
// """
5249
sh "sed -i \'s/version = \"[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\"/version = \"${env.versionTag}\"/g\' pyproject.toml"
53-
// sh """
54-
// C_INCLUDE_PATH=/usr/include/librdkafka LIBRARY_PATH=/usr/include/librdkafka /tmp/.local/bin/pdm build
55-
// """
5650
sh '''
5751
pip install toml
5852
5953
cat <<EOF > update_name.py
60-
import toml
61-
data = toml.load('pyproject.toml')
62-
data['project']['name'] = 'superclient-beta'
63-
with open('pyproject.toml', 'w') as f:
64-
toml.dump(data, f)
65-
EOF
54+
import toml
55+
data = toml.load('pyproject.toml')
56+
data['project']['name'] = 'superclient-beta'
57+
with open('pyproject.toml', 'w') as f:
58+
toml.dump(data, f)
59+
EOF
6660
6761
python3 update_name.py
68-
'''
62+
'''
6963
sh 'pip install build'
7064
sh 'python -m build'
7165
sh 'ls dist/'

0 commit comments

Comments
 (0)