Updated pipeline to use latest build container image features
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ydeng/renamebycsv/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ydeng/renamebycsv/pipeline/head This commit looks good
				
			This commit is contained in:
		
							
								
								
									
										11
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -1,19 +1,14 @@ | |||||||
| pipeline { | pipeline { | ||||||
|     agent any |     agent any | ||||||
|     stages { |     stages { | ||||||
|         stage("clean") { |  | ||||||
|             steps { |  | ||||||
|                 sh 'rm -rf ./dist/*' |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|         stage("install") { |         stage("install") { | ||||||
|             steps { |             steps { | ||||||
|                 sh 'mamba env update --file environment.yml' |                 sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env' | ||||||
|                 sh 'echo "mamba activate renamebycsv" >> ~/.bashrc' |  | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         stage("build") { |         stage("build") { | ||||||
|             steps { |             steps { | ||||||
|  |                 sh 'rm -rf ./dist/*' | ||||||
|                 sh "python -m build" |                 sh "python -m build" | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| @@ -25,7 +20,7 @@ pipeline { | |||||||
|         } |         } | ||||||
|         stage("archive") { |         stage("archive") { | ||||||
|             steps { |             steps { | ||||||
|                 archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl' |                 archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         stage("publish package") { |         stage("publish package") { | ||||||
|   | |||||||
| @@ -9,3 +9,4 @@ dependencies: | |||||||
|   - setuptools=67.6 |   - setuptools=67.6 | ||||||
|   - twine=4.0 |   - twine=4.0 | ||||||
|   - cryptography=38.0.4 |   - cryptography=38.0.4 | ||||||
|  | prefix: ./env | ||||||
		Reference in New Issue
	
	Block a user