我在github上有一个项目,我想推送一个标签,以便詹金斯创建一个带有标签的容器,然后将结果发送到另一个容器。 我是jenkins的新手,请使用触发器(开发人员按新标签而不是创建作业时)。但是我不知道如何将标签名称放在任何变量中,然后使用它来创建容器。 对于测试,现在我正尝试将变量的值发送到电报中,但是现在我不能
<form>
<div class="form-group">
<label for="address">Lat Long of Location :</label>
<input type="text" class="form-control" id="address" placeholder="Enter Address to Find Lat Long">
<input id="submit" type="button" class="btn btn-primary" value="Get Lat Long" />
<input id="lat" type="hidden"/>
<input id="lng" type="hidden"/>
</div>
</form>
</div>
<div class="card-footer">
<label for="lati">Latitude : </label><input id="lati" type="text" disabled />
<label for="longi">Longitude : </label><input id="longi" type="text" disabled />
</div>
<div id="latlong"></div>
<div id="temp"></div>
<div id="map"></div>
</div>
</div>
simply add
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR API KEY&callback=initMap" async defer/>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: {lat: -34.397, lng: 150.644}
});
var geocoder = new google.maps.Geocoder();
document.getElementById('submit').addEventListener('click', function() {
geocodeAddress(geocoder, map);
});
}
function geocodeAddress(geocoder, resultsMap) {
var address = document.getElementById('address').value;
if( address===''){
alert("Please Enter Address to find Latitude Longitude...!!!!!!");
return false;
}
geocoder.geocode({'address': address}, function(results, status) {
if (status === 'OK') {
resultsMap.setCenter(results[0].geometry.location);
var info="<h4> Latitude and Longitude : "+results[0].geometry.location+"</h4>";
var latlo="<h3>Lat Long of "+address+" "+results[0].geometry.location+"</h3>";
var latlong1 = latlo;
document.getElementById('latlong').innerHTML=latlong1;
document.getElementById('lat').value=results[0].geometry.location.lat();
document.getElementById('lng').value=results[0].geometry.location.lng();
document.getElementById('lati').value=results[0].geometry.location.lat();
var infowindow = new google.maps.InfoWindow({
content: info
});
var marker = new google.maps.Marker({
map: resultsMap,
position: results[0].geometry.location,
title: 'LatLongfinder Result'
});
infowindow.setContent(results[0].geometry.location.lat());
infowindow.open(resultsMap, marker);
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
}
</script>
执行shell我想做这样的事情 docker build -t name_container _ + $ NameTag。