---
title: "Jenkins传值"
author: "marshan"
date: "2013-11-18T15:26:38Z"
tags: []
categories: ["开源软件"]
slug: "jenkins"
draft: false
lastmod: "2013-11-18T15:26:38Z"
id: 1976490
url: "https://feuyeux.iteye.com/blog/1976490"
---

x=1

echo x=$x &gt;&gt; $JENKINS\_HOME/jobs/$JOB\_NAME/builds/$BUILD\_ID/my.properties

 

xx=$(grep "x=" $JENKINS\_HOME/jobs/$JOB\_NAME/builds/$BUILD\_ID/my.properties | sed 's/.\*=//')

echo $xx

![](http://dl.iteye.com/upload/picture/pic/128453/c2fbaf1d-e0f0-367d-84d1-1cc78efc8d99.png)